Add syncthing base

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-07-08 15:56:42 +03:00
parent 47325206d0
commit 9dfbe1203d
103 changed files with 1285 additions and 951 deletions

View File

@@ -7,7 +7,5 @@
};
};
environment.persistence."/persist".directories = [
"/var/lib/bluetooth"
];
environment.persistence."/persist".directories = [ "/var/lib/bluetooth" ];
}

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
boot = {
loader = {
@@ -14,6 +13,9 @@
initrd.systemd.enable = true;
kernelPackages = pkgs.linuxPackages_latest;
supportedFilesystems = [ "btrfs" "ntfs" ];
supportedFilesystems = [
"btrfs"
"ntfs"
];
};
}

View File

@@ -1,12 +1,16 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
environment.systemPackages = with pkgs; [ brightnessctl ];
services.udev.extraRules =
let
chgrp = "${pkgs.coreutils-full}/bin/chgrp";
chmod = "${pkgs.coreutils-full}/bin/chmod";
chgrp = "${pkgs.coreutils}/bin/chgrp";
chmod = "${pkgs.coreutils}/bin/chmod";
in
''
ACTION=="add", SUBSYSTEM=="backlight", RUN+="${chgrp} video /sys/class/backlight/%k/brightness"
@@ -17,8 +21,9 @@
users.groups =
let
members = builtins.attrNames
(lib.attrsets.filterAttrs (_: config: config.isNormalUser) config.users.users);
members = builtins.attrNames (
lib.attrsets.filterAttrs (_: config: config.isNormalUser) config.users.users
);
in
{
video.members = members;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ btop ];
}

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ fastfetch ];
}

View File

@@ -1,5 +1,4 @@
{ config, lib, ... }:
{
services.getty.extraArgs = lib.mkIf (config.services.getty.autologinUser != null) [
"--skip-login"

View File

@@ -1,3 +1 @@
{
programs.gnupg.agent.enable = true;
}
{ programs.gnupg.agent.enable = true; }

View File

@@ -1,7 +1,5 @@
{
networking.networkmanager.enable = true;
environment.persistence."/persist".directories = [
"/etc/NetworkManager/system-connections"
];
environment.persistence."/persist".directories = [ "/etc/NetworkManager/system-connections" ];
}

View File

@@ -1,10 +1,12 @@
{ inputs, ... }:
{
nix = {
settings = {
use-xdg-base-directories = true;
experimental-features = [ "nix-command" "flakes" ];
experimental-features = [
"nix-command"
"flakes"
];
};
registry.self.flake = inputs.self;

View File

@@ -1,5 +1,4 @@
{ inputs, pkgs, ... }:
{
imports = [ inputs.impermanence.nixosModules.impermanence ];
@@ -39,8 +38,6 @@
"/var/lib/systemd/coredump"
"/var/log"
];
files = [
"/etc/machine-id"
];
files = [ "/etc/machine-id" ];
};
}

View File

@@ -8,10 +8,12 @@
pulse.enable = true;
jack.enable = true;
extraConfig.pipewire-pulse = {
pulse.cmd = [{
cmd = "load-module";
args = "module-switch-on-connect";
}];
pulse.cmd = [
{
cmd = "load-module";
args = "module-switch-on-connect";
}
];
};
};
}

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
boot = {
plymouth =
@@ -9,9 +8,7 @@
{
enable = true;
inherit theme;
themePackages = with pkgs; [
(adi1090x-plymouth-themes.override { selected_themes = [ theme ]; })
];
themePackages = with pkgs; [ (adi1090x-plymouth-themes.override { selected_themes = [ theme ]; }) ];
};
initrd.verbose = false;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ ranger ];
}

View File

@@ -1,5 +1,4 @@
{ inputs, pkgs, ... }:
{
imports = [ inputs.sops-nix.nixosModules.sops ];

View File

@@ -1,5 +1,4 @@
{ inputs, ... }:
{
system = {
autoUpgrade = {

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ tree ];
}

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
users = {
mutableUsers = false;

View File

@@ -1,11 +1,10 @@
{ pkgs, ... }:
{
environment.systemPackages = [
(pkgs.writeShellApplication {
name = "nix-cleanup";
runtimeInputs = with pkgs; [
coreutils-full
coreutils
util-linux
findutils
btrfs-progs