added sops-nix input

This commit is contained in:
Bryan Ramos 2025-07-15 01:01:58 -04:00
parent bc7fcae70c
commit a9843c9089
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
3 changed files with 41 additions and 2 deletions

12
.sops.yaml Normal file
View file

@ -0,0 +1,12 @@
keys:
- &users:
- &bryan F1F3466458452B2DF351F1E864D12BA95ACE1F2D
- &hosts:
- &server age1jvqcc984v5xr8yhwm72arsy2hx6rm9gvsr7zeeasvcl0k2l9efmsgys3eg
creation_rules:
- path_regex: src/system/machines/server/secrets.ya?ml$
key_groups:
age:
- *server
pgp:
- *bryan

23
flake.lock generated
View file

@ -137,7 +137,28 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-wsl": "nixos-wsl", "nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nur": "nur" "nur": "nur",
"sops-nix": "sops-nix"
}
},
"sops-nix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1752544651,
"narHash": "sha256-GllP7cmQu7zLZTs9z0J2gIL42IZHa9CBEXwBY9szT0U=",
"owner": "mic92",
"repo": "sops-nix",
"rev": "2c8def626f54708a9c38a5861866660395bb3461",
"type": "github"
},
"original": {
"owner": "mic92",
"repo": "sops-nix",
"type": "github"
} }
}, },
"treefmt-nix": { "treefmt-nix": {

View file

@ -15,9 +15,13 @@
url = "github:nix-community/NixOS-WSL/2411.6.0"; url = "github:nix-community/NixOS-WSL/2411.6.0";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
sops-nix = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, nur, home-manager, nixos-wsl }: outputs = { self, nixpkgs, nur, home-manager, nixos-wsl, sops-nix }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { pkgs = import nixpkgs {
@ -56,6 +60,7 @@
inherit system pkgs; inherit system pkgs;
modules = [ modules = [
./src/system/machines/server ./src/system/machines/server
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
(import ./src/system/machines/server/modules/home-manager) (import ./src/system/machines/server/modules/home-manager)
]; ];
@ -77,6 +82,7 @@
name = "devShell"; name = "devShell";
packages = [ packages = [
just just
age
]; ];
}; };
}; };