added sops-nix
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
networking
|
||||
hyprland
|
||||
theming
|
||||
sops
|
||||
];
|
||||
in {
|
||||
imports = modules;
|
||||
|
||||
22
modules/features/sops/default.nix
Normal file
22
modules/features/sops/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{inputs, ...}: {
|
||||
flake.nixosModules.sops = {
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [inputs.sops-nix.nixosModules.default];
|
||||
|
||||
sops = {
|
||||
age.keyFile = "/home/user01/Projects/dendritic-tutorial/age.txt";
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
|
||||
secrets = {
|
||||
secret = {};
|
||||
something = {};
|
||||
};
|
||||
templates = {
|
||||
"secret-value.env".content = "${config.sops.placeholder.something}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -81,6 +81,7 @@
|
||||
v = lib.getExe inputs'.nvim.packages.default;
|
||||
ff = lib.getExe pkgs.fastfetch;
|
||||
cat = lib.getExe pkgs.bat;
|
||||
secret = "cat /run/secrets/secret-value";
|
||||
};
|
||||
# Can also be zshrc.path, and path will take precedence over content.
|
||||
zshrc.content = ''
|
||||
|
||||
Reference in New Issue
Block a user