From b44499c92e15d7c7e558b65b2844656afe92a6bf Mon Sep 17 00:00:00 2001 From: truxnell <19149206+truxnell@users.noreply.github.com> Date: Tue, 26 Mar 2024 21:11:56 +1100 Subject: [PATCH] fix: finish hax? --- .taskfiles/nix/Taskfile.yaml | 5 +- dns01.qcow2 | Bin 0 -> 1441792 bytes nixos/hosts/citadel/default.nix | 8 - nixos/hosts/common/optional/chrony.nix | 11 -- .../hosts/common/optional/dnscrypt-proxy2.nix | 41 ----- .../optional/editors/vscode/default.nix | 139 -------------- .../optional/editors/vscode/extensions.nix | 174 ------------------ nixos/hosts/common/optional/firefox.nix | 9 - nixos/hosts/common/optional/gnome.nix | 68 ------- nixos/hosts/common/optional/maddy.nix | 22 --- nixos/hosts/dns01/default.nix | 11 +- nixos/hosts/rickenbacker/default.nix | 10 +- nixos/modules/nixos/browser/default.nix | 5 + nixos/modules/nixos/browser/firefox.nix | 22 +++ nixos/modules/nixos/de/default.nix | 6 + nixos/modules/nixos/de/gnome.nix | 81 ++++++++ nixos/modules/nixos/default.nix | 3 + nixos/modules/nixos/editor/default.nix | 6 + nixos/modules/nixos/editor/vscodium.nix | 154 ++++++++++++++++ .../services/cloudflare-dyndns/default.nix | 6 +- nixos/modules/nixos/services/default.nix | 2 + .../services/dnscrypt-proxy2/default.nix | 48 +++++ .../dnscrypt-proxy2.sops.yaml | 0 .../modules/nixos/services/maddy/default.nix | 30 +++ .../nixos/services/maddy}/maddy.conf | 0 .../nixos/services/maddy}/maddy.sops.yaml | 0 nixos/profiles/role-worstation.nix | 12 +- 27 files changed, 381 insertions(+), 492 deletions(-) create mode 100644 dns01.qcow2 delete mode 100644 nixos/hosts/common/optional/chrony.nix delete mode 100644 nixos/hosts/common/optional/dnscrypt-proxy2.nix delete mode 100644 nixos/hosts/common/optional/editors/vscode/default.nix delete mode 100644 nixos/hosts/common/optional/editors/vscode/extensions.nix delete mode 100644 nixos/hosts/common/optional/firefox.nix delete mode 100644 nixos/hosts/common/optional/gnome.nix delete mode 100644 nixos/hosts/common/optional/maddy.nix create mode 100644 nixos/modules/nixos/browser/default.nix create mode 100644 nixos/modules/nixos/browser/firefox.nix create mode 100644 nixos/modules/nixos/de/default.nix create mode 100644 nixos/modules/nixos/de/gnome.nix create mode 100644 nixos/modules/nixos/editor/default.nix create mode 100644 nixos/modules/nixos/editor/vscodium.nix create mode 100644 nixos/modules/nixos/services/dnscrypt-proxy2/default.nix rename nixos/{hosts/common/optional => modules/nixos/services/dnscrypt-proxy2}/dnscrypt-proxy2.sops.yaml (100%) create mode 100644 nixos/modules/nixos/services/maddy/default.nix rename nixos/{hosts/common/optional => modules/nixos/services/maddy}/maddy.conf (100%) rename nixos/{hosts/common/optional => modules/nixos/services/maddy}/maddy.sops.yaml (100%) diff --git a/.taskfiles/nix/Taskfile.yaml b/.taskfiles/nix/Taskfile.yaml index 5ab4a44..c3f637c 100644 --- a/.taskfiles/nix/Taskfile.yaml +++ b/.taskfiles/nix/Taskfile.yaml @@ -45,7 +45,8 @@ tasks: vars: - host cmds: - - echo "This will dry-run your config." + - echo "This will dry-run your config and add your untracked git files." + - git add . - nixos-rebuild dry-run --flake "{{.ROOT_DIR}}/#{{.host}}" --impure preconditions: - sh: which nix @@ -61,7 +62,9 @@ tasks: vars: - host cmds: + - git add . - nixos-rebuild build --flake "{{.ROOT_DIR}}/#{{.host}}" --impure + - nvd diff /run/current-system result preconditions: - sh: which nix msg: "nix not found" diff --git a/dns01.qcow2 b/dns01.qcow2 new file mode 100644 index 0000000000000000000000000000000000000000..22c5606b60318796d5f90e530c471a98dc261d6f GIT binary patch literal 1441792 zcmeI)U65C0ekbtXIdlsGzKt-B62sq!A;d677~>c2+9GQA=J`Rbf&w!OA@@$Mz_wr|}y{Lske=DKfm89nUNX7n8S zXlUiGohxtLwQX?On{QmdXSk}C$LxvoO*>|OR;5JG(rLEG6nYLGar2;yJJIQT_dwdr zJ?P3Ke&%s;^5rGR#cO)W9)ZUPh6a0fZ4w|rfB*pkCy2mf+0JJ&-OTX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