From 05dd85210e465caa44ef7254f2781b2d12ba2882 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 16 Oct 2022 23:49:18 +0200 Subject: Reformat files with alejandra --- system/settings/configuration/berlin.nix | 9 ++++++--- system/settings/configuration/british-english.nix | 9 ++++++--- system/settings/configuration/england.nix | 9 ++++++--- system/settings/configuration/networking.nix | 8 +++++--- system/settings/configuration/nix.nix | 13 ++++++++----- system/settings/configuration/user.nix | 11 +++++++---- 6 files changed, 38 insertions(+), 21 deletions(-) (limited to 'system/settings/configuration') 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"; -- cgit 1.4.1