diff options
author | Alan Pearce | 2019-10-08 21:44:57 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-08 21:44:57 +0200 |
commit | 0a50d682ec85bf023bebd68a3ca388001f0c0677 (patch) | |
tree | 3f725c5a36633ec5b59df37f156a03ee2a971656 /system/settings/configuration | |
parent | 40fd4964068d0b7628b6f699dab4aec200eadb0a (diff) | |
download | nixfiles-0a50d682ec85bf023bebd68a3ca388001f0c0677.tar.lz nixfiles-0a50d682ec85bf023bebd68a3ca388001f0c0677.tar.zst nixfiles-0a50d682ec85bf023bebd68a3ca388001f0c0677.zip |
mv modules settings
Diffstat (limited to 'system/settings/configuration')
-rw-r--r-- | system/settings/configuration/berlin.nix | 8 | ||||
-rw-r--r-- | system/settings/configuration/british-english.nix | 4 | ||||
-rw-r--r-- | system/settings/configuration/england.nix | 8 | ||||
-rw-r--r-- | system/settings/configuration/nix.nix | 29 | ||||
-rw-r--r-- | system/settings/configuration/user.nix | 11 |
5 files changed, 60 insertions, 0 deletions
diff --git a/system/settings/configuration/berlin.nix b/system/settings/configuration/berlin.nix new file mode 100644 index 00000000..246510c4 --- /dev/null +++ b/system/settings/configuration/berlin.nix @@ -0,0 +1,8 @@ +{ config, pkgs, ... }: + +{ time.timeZone = "Europe/Berlin"; + services.redshift = { + latitude = "52.586"; + longitude = "13.300"; + }; +} diff --git a/system/settings/configuration/british-english.nix b/system/settings/configuration/british-english.nix new file mode 100644 index 00000000..3ff93678 --- /dev/null +++ b/system/settings/configuration/british-english.nix @@ -0,0 +1,4 @@ +{ config, pkgs, ... }: + +{ i18n.defaultLocale = "en_GB.UTF-8"; +} diff --git a/system/settings/configuration/england.nix b/system/settings/configuration/england.nix new file mode 100644 index 00000000..b2f799cd --- /dev/null +++ b/system/settings/configuration/england.nix @@ -0,0 +1,8 @@ +{ config, pkgs, ... }: + +{ time.timeZone = "Europe/London"; + services.redshift = { + latitude = "52.2394"; + longitude = "-0.9416"; + }; +} diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix new file mode 100644 index 00000000..d254de0e --- /dev/null +++ b/system/settings/configuration/nix.nix @@ -0,0 +1,29 @@ +{ config, pkgs, ... }: + +{ nix = { + buildCores = 0; + + daemonNiceLevel = 19; + daemonIONiceLevel = 7; + + autoOptimiseStore = true; + gc = { + automatic = true; + options = "--delete-older-than 14d"; + }; + }; + + environment.systemPackages = with pkgs; [ + cachix + ]; + + system.autoUpgrade = { + enable = true; + flags = [ "--max-jobs" "1" ]; + }; + systemd.services.nixos-upgrade = { + script = pkgs.lib.mkForce '' + ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --no-build-output --upgrade ${toString config.system.autoUpgrade.flags} + ''; + }; +} diff --git a/system/settings/configuration/user.nix b/system/settings/configuration/user.nix new file mode 100644 index 00000000..e7362bce --- /dev/null +++ b/system/settings/configuration/user.nix @@ -0,0 +1,11 @@ +{ config, pkgs, ... }: + +{ users.extraUsers.alan = { + description = "Alan Pearce"; + isNormalUser = true; + extraGroups = [ "audio" "wheel" "lp" "adbusers" "docker" "nitrokey" "dialout" "networkmanager" ]; + shell = "/run/current-system/sw/bin/zsh"; + home = "/home/alan"; + uid = 1000; + }; +} |