diff options
author | Alan Pearce | 2022-10-16 23:49:18 +0200 |
---|---|---|
committer | Alan Pearce | 2022-10-16 23:56:07 +0200 |
commit | 05dd85210e465caa44ef7254f2781b2d12ba2882 (patch) | |
tree | 85ccc720e339dd5ca8d7eb3ce6a3488c78675235 /system/settings/configuration | |
parent | 472dbbdbb246cf3d8ce3a5c3c6cefaa07b7589df (diff) | |
download | nixfiles-05dd85210e465caa44ef7254f2781b2d12ba2882.tar.lz nixfiles-05dd85210e465caa44ef7254f2781b2d12ba2882.tar.zst nixfiles-05dd85210e465caa44ef7254f2781b2d12ba2882.zip |
Reformat files with alejandra
Diffstat (limited to 'system/settings/configuration')
-rw-r--r-- | system/settings/configuration/berlin.nix | 9 | ||||
-rw-r--r-- | system/settings/configuration/british-english.nix | 9 | ||||
-rw-r--r-- | system/settings/configuration/england.nix | 9 | ||||
-rw-r--r-- | system/settings/configuration/networking.nix | 8 | ||||
-rw-r--r-- | system/settings/configuration/nix.nix | 13 | ||||
-rw-r--r-- | system/settings/configuration/user.nix | 11 |
6 files changed, 38 insertions, 21 deletions
diff --git a/system/settings/configuration/berlin.nix b/system/settings/configuration/berlin.nix index 6fa4f502..bc8ed1fd 100644 --- a/system/settings/configuration/berlin.nix +++ b/system/settings/configuration/berlin.nix @@ -1,6 +1,9 @@ -{ config, pkgs, ... }: - -{ time.timeZone = "Europe/Berlin"; +{ + config, + pkgs, + ... +}: { + time.timeZone = "Europe/Berlin"; location = { latitude = 52.586; longitude = 13.300; diff --git a/system/settings/configuration/british-english.nix b/system/settings/configuration/british-english.nix index 3ff93678..4167016f 100644 --- a/system/settings/configuration/british-english.nix +++ b/system/settings/configuration/british-english.nix @@ -1,4 +1,7 @@ -{ config, pkgs, ... }: - -{ i18n.defaultLocale = "en_GB.UTF-8"; +{ + config, + pkgs, + ... +}: { + i18n.defaultLocale = "en_GB.UTF-8"; } diff --git a/system/settings/configuration/england.nix b/system/settings/configuration/england.nix index 4b54db17..2213ac74 100644 --- a/system/settings/configuration/england.nix +++ b/system/settings/configuration/england.nix @@ -1,6 +1,9 @@ -{ config, pkgs, ... }: - -{ time.timeZone = "Europe/London"; +{ + config, + pkgs, + ... +}: { + time.timeZone = "Europe/London"; services.redshift = { latitude = 52.2394; longitude = -0.9416; diff --git a/system/settings/configuration/networking.nix b/system/settings/configuration/networking.nix index 2e93a4ca..8d9f276f 100644 --- a/system/settings/configuration/networking.nix +++ b/system/settings/configuration/networking.nix @@ -1,7 +1,9 @@ -{ config, pkgs, ... }: - { - environment.systemPackages = with pkgs; [ lxqt.lxqt-policykit ]; # provides a default authentification client for policykit + config, + pkgs, + ... +}: { + environment.systemPackages = with pkgs; [lxqt.lxqt-policykit]; # provides a default authentification client for policykit services.gvfs.enable = true; # enables gvfs imports = [ diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix index f152ac27..7ae8f7f6 100644 --- a/system/settings/configuration/nix.nix +++ b/system/settings/configuration/nix.nix @@ -1,10 +1,13 @@ -{ config, pkgs, ... }: - -{ nix = { +{ + config, + pkgs, + ... +}: { + nix = { settings = { cores = 0; auto-optimise-store = true; - trusted-users = [ "@wheel" ]; + trusted-users = ["@wheel"]; }; daemonCPUSchedPolicy = "idle"; @@ -24,7 +27,7 @@ system.autoUpgrade = { enable = true; - flags = [ "--max-jobs" "2" ]; + flags = ["--max-jobs" "2"]; }; systemd.services.nixos-upgrade = { script = pkgs.lib.mkForce '' diff --git a/system/settings/configuration/user.nix b/system/settings/configuration/user.nix index 33b678e9..ccb43323 100644 --- a/system/settings/configuration/user.nix +++ b/system/settings/configuration/user.nix @@ -1,9 +1,12 @@ -{ config, pkgs, ... }: - -{ users.extraUsers.alan = { +{ + config, + pkgs, + ... +}: { + users.extraUsers.alan = { description = "Alan Pearce"; isNormalUser = true; - extraGroups = [ "audio" "wheel" "lp" "adbusers" "docker" "nitrokey" "dialout" "pipewire" "networkmanager" "video" ]; + extraGroups = ["audio" "wheel" "lp" "adbusers" "docker" "nitrokey" "dialout" "pipewire" "networkmanager" "video"]; shell = "/run/current-system/sw/bin/zsh"; initialPassword = "password"; home = "/home/alan"; |