From ca0b8e2b26f0c946ec54adbbcf9e75e7ce3dd619 Mon Sep 17 00:00:00 2001 From: deadvey Date: Sun, 18 Aug 2024 00:11:56 +0100 Subject: [PATCH] 359 current 2024-08-17 23:45:43 24.05.3642.883180e6550c 6.6.44 * --- configuration.nix | 1 + edit-config.sh | 2 +- nixos-switch.log | 28 +++++++++++++++++++++++----- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 31e09c4..8c93633 100644 --- a/configuration.nix +++ b/configuration.nix @@ -884,6 +884,7 @@ valign = bottom mpv killall zip + xfce ]; fonts.packages = with pkgs; [ diff --git a/edit-config.sh b/edit-config.sh index 52c0175..137a857 100755 --- a/edit-config.sh +++ b/edit-config.sh @@ -2,7 +2,7 @@ sudo emacs /etc/nixos/configuration.nix -nw sudo nixos-rebuild switch &>nixos-switch.log || ( cat nixos-switch.log | grep --color error && false) gen=$(nixos-rebuild list-generations | grep current) -sudo cp /etc/nixos/configuration.nix . +sudo cp /etc/nixos/configuration.nix $HOME/media/Code/git/nixos git add . git commit -m "$gen" if grep -q "error" nixos-switch.log; then diff --git a/nixos-switch.log b/nixos-switch.log index db774bf..23fce41 100644 --- a/nixos-switch.log +++ b/nixos-switch.log @@ -1,7 +1,25 @@ building Nix... building the system configuration... -activating the configuration... -setting up /etc... -reloading user units for lightdm... -reloading user units for deadvey... -restarting sysinit-reactivation.target +error: + … while calling the 'head' builtin + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1575:11: + + 1574| || pred here (elemAt values 1) (head values) then + 1575| head values + | ^ + 1576| else + + … while evaluating the attribute 'value' + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:809:9: + + 808| in warnDeprecation opt // + 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; + | ^ + 810| inherit (res.defsFinal') highestPrio; + + (stack trace truncated; use '--show-trace' to show the full trace) + + error: A definition for option `environment.systemPackages."[definition 1-entry 43]"' is not of type `package'. Definition values: + - In `/etc/nixos/configuration.nix'