From f9285c300409f3a405325baa907833920e7a6041 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 8 Mar 2024 15:12:45 +0100 Subject: [PATCH] add impurity --- flake.lock | 16 ++++++++++++++++ flake.nix | 2 ++ hosts/default.nix | 14 ++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/flake.lock b/flake.lock index 66b3e38..d489a2a 100644 --- a/flake.lock +++ b/flake.lock @@ -1031,6 +1031,21 @@ "type": "github" } }, + "impurity": { + "locked": { + "lastModified": 1689836741, + "narHash": "sha256-82KeRg2sAqDXCdzVs8P8GoqVaPsZjkWgrfsj6kgOLTY=", + "owner": "outfoxxed", + "repo": "impurity.nix", + "rev": "bbc41b69ab5485cd55aa315d08cff865781d3913", + "type": "github" + }, + "original": { + "owner": "outfoxxed", + "repo": "impurity.nix", + "type": "github" + } + }, "lib-aggregate": { "inputs": { "flake-utils": "flake-utils_3", @@ -1701,6 +1716,7 @@ "hyprcontrib": "hyprcontrib", "hyprland": "hyprland", "hyprland-plugins": "hyprland-plugins", + "impurity": "impurity", "neovim-nightly-overlay": "neovim-nightly-overlay", "nh": "nh", "nix-gaming": "nix-gaming", diff --git a/flake.nix b/flake.nix index d77acc0..4cfc8ae 100644 --- a/flake.nix +++ b/flake.nix @@ -92,5 +92,7 @@ ags.url = "github:Aylur/ags"; waybar.url = "github:Alexays/Waybar"; + + impurity.url = "github:outfoxxed/impurity.nix"; }; } diff --git a/hosts/default.nix b/hosts/default.nix index 6a753bc..da0d018 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -15,8 +15,15 @@ in { ../modules inputs.home-manager.nixosModules.home-manager inputs.agenix.nixosModules.default + { + imports = [ inputs.impurity.nixosModules.impurity ]; + impurity.configRoot = self; + } ]; }; + + niks-impure = self.nixosConfigurations.niks.extendModules { modules = [ { impurity.enable = true; } ]; }; + del = lib.nixosSystem { system = "x86_64-linux"; specialArgs = { @@ -27,8 +34,15 @@ in { ../modules inputs.home-manager.nixosModules.home-manager inputs.agenix.nixosModules.default + { + imports = [ inputs.impurity.nixosModules.impurity ]; + impurity.configRoot = self; + } ]; }; + + del-impure = self.nixosConfigurations.niks.extendModules { modules = [ { impurity.enable = true; } ]; }; + #hape = lib.nixosSystem { # system = "x86_64-linux"; # specialArgs = {