summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-10-12 16:05:59 +0200
committersils <sils@sils.li>2023-10-12 16:05:59 +0200
commit4311d27a3f8d20f56c94af3a79f964ea48a80d1e (patch)
tree2de50ff102ff0bb17273135c09fca907d9c71201
parentfeat(flake): add (r)agenix (diff)
downloadnix-config-4311d27a3f8d20f56c94af3a79f964ea48a80d1e.tar.gz
nix-config-4311d27a3f8d20f56c94af3a79f964ea48a80d1e.zip
feat(treewide): add ragenix package
-rw-r--r--flake.nix4
-rw-r--r--sys/packages/default.nix8
-rw-r--r--users/sils/packages/default.nix3
3 files changed, 13 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 9f54ece..53c527f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -135,6 +135,7 @@
     nixvim,
     impermanence,
     wl-togglescreens,
+    ragenix,
     ...
   } @ attrs: let
     system = "x86_64-linux";
@@ -152,7 +153,7 @@
           useGlobalPkgs = true;
           useUserPackages = true;
           users.sils = import ./users/sils;
-          extraSpecialArgs = {inherit pkgs system sysLib river_init_lesser yambar_cpu yambar_memory prismlauncher nixvim impermanence wl-togglescreens;};
+          extraSpecialArgs = {inherit pkgs system sysLib river_init_lesser yambar_cpu yambar_memory prismlauncher nixvim impermanence wl-togglescreens ragenix;};
         };
       }
     ];
@@ -172,6 +173,7 @@
           nil
           statix
           alejandra
+          ragenix.packages."${system}".default # system secret management
         ];
       };
     };
diff --git a/sys/packages/default.nix b/sys/packages/default.nix
index ae2a539..989bff3 100644
--- a/sys/packages/default.nix
+++ b/sys/packages/default.nix
@@ -1,4 +1,8 @@
-{pkgs, ...}: {
+{
+  pkgs,
+  ragenix,
+  ...
+}: {
   environment.systemPackages = with pkgs; [
     # Core utils
     killall # kill programs by name
@@ -21,5 +25,7 @@
     nerdfonts # nice fonts, u know
 
     zsh-you-should-use # reminder for aliasses
+
+    ragenix.packages.${pkgs.system}.default # system secret management
   ];
 }
diff --git a/users/sils/packages/default.nix b/users/sils/packages/default.nix
index 1d383fc..f0e3b89 100644
--- a/users/sils/packages/default.nix
+++ b/users/sils/packages/default.nix
@@ -3,6 +3,7 @@
   pkgs,
   prismlauncher,
   wl-togglescreens,
+  ragenix,
   ...
 }: {
   home.packages = with pkgs;
@@ -141,6 +142,8 @@
     wl-togglescreens.packages.${pkgs.system}.wl-togglescreens # toggle screens
     wlr-randr # xrand for wayland, needed by wl-togglescreens
 
+    ragenix.packages.${pkgs.system}.default # system secret management
+
     # soispha
 
     #grades.outputs.packages.${system}.default