added sops-nix

This commit is contained in:
Clara Dautermann 2025-04-14 14:09:10 +02:00
parent df35107001
commit d51709f0cd
Signed by: clara
GPG key ID: 223391B52FAD4463
3 changed files with 45 additions and 5 deletions

View file

@ -1,5 +1,8 @@
{ modulesPath, pkgs, lib, ... }: {
imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ];
{ modulesPath, pkgs, lib, inputs, ... }: {
imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix")
inputs.sops-nix.nixosModules.sops
];
time.timeZone = "Europe/Berlin";

37
flake.lock generated
View file

@ -16,9 +16,44 @@
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1743689281,
"narHash": "sha256-y7Hg5lwWhEOgflEHRfzSH96BOt26LaYfrYWzZ+VoVdg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2bfc080955153be0be56724be6fa5477b4eefabb",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"sops-nix": "sops-nix"
}
},
"sops-nix": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1744103455,
"narHash": "sha256-SR6+qjkPjGQG+8eM4dCcVtss8r9bre/LAxFMPJpaZeU=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "69d5a5a4635c27dae5a742f36108beccc506c1ba",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "sops-nix",
"type": "github"
}
}
},

View file

@ -1,13 +1,15 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
sops-nix.url = "github:Mic92/sops-nix";
};
outputs = { nixpkgs, ... }: {
outputs = { nixpkgs, sops-nix, ... } @ inputs: {
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "x86_64-linux";
};
specialArgs = { inherit inputs; };
};
mcserver = import ./configs/containers/mc_container.nix;