diff --git a/configuration.nix b/configuration.nix index 42b0f66..c57ff01 100644 --- a/configuration.nix +++ b/configuration.nix @@ -10,7 +10,7 @@ let GAPS_OUT = "10"; BORDER_WIDTH = "2"; BORDER_WIDTH_INT = 2; - kwafe + test error # Colours BG = "282828"; BG0_H = "1d2021"; diff --git a/edit-config.sh b/edit-config.sh index 31b0682..53741c9 100755 --- a/edit-config.sh +++ b/edit-config.sh @@ -6,7 +6,9 @@ log=$(cat nixos-switch.log) sudo cp /etc/nixos/configuration.nix . git add . git commit -m "$gen" -if (! log | grep error); then +if (log | grep error); then + echo "There was an error in your Nix Config" +else git push fi diff --git a/nixos-switch.log b/nixos-switch.log index 75f37a7..64de33d 100644 --- a/nixos-switch.log +++ b/nixos-switch.log @@ -21,12 +21,12 @@ error: error: syntax error, unexpected ID, expecting '.' or '=' - at /etc/nixos/configuration.nix:15:2: + at /etc/nixos/configuration.nix:13:7: - 14| # Colours - 15| BG = "282828"; - | ^ - 16| BG0_H = "1d2021"; + 12| BORDER_WIDTH_INT = 2; + 13| test error + | ^ + 14| # Colours building Nix... error: … while evaluating the attribute 'config' @@ -51,12 +51,12 @@ error: error: syntax error, unexpected ID, expecting '.' or '=' - at /etc/nixos/configuration.nix:15:2: + at /etc/nixos/configuration.nix:13:7: - 14| # Colours - 15| BG = "282828"; - | ^ - 16| BG0_H = "1d2021"; + 12| BORDER_WIDTH_INT = 2; + 13| test error + | ^ + 14| # Colours building the system configuration... error: … while evaluating the attribute 'config.system.build.toplevel' @@ -81,9 +81,9 @@ error: error: syntax error, unexpected ID, expecting '.' or '=' - at /etc/nixos/configuration.nix:15:2: + at /etc/nixos/configuration.nix:13:7: - 14| # Colours - 15| BG = "282828"; - | ^ - 16| BG0_H = "1d2021"; + 12| BORDER_WIDTH_INT = 2; + 13| test error + | ^ + 14| # Colours