rndusr
78e26c8dd0
This reverts commit 1c2fcb7951
.
sops-nix fails with weird error:
/nix/store/165rsdw1119rajybq1p0dm5g55k0vxyl-sops-install-secrets-0.0.1/bin/sops-install-secrets: failed to decrypt '/nix/store/q7sarwpv46yvv1lkj0f8adlsilv2x25w-secrets.yaml': Error getting data key: 0 successful groups required, got 0
No clue why.
38 lines
957 B
Nix
38 lines
957 B
Nix
{
|
|
description = "stupidcomputer's nixos flake";
|
|
|
|
inputs = {
|
|
# regular nixos stuff
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
simple-nixos-mailserver = {
|
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
simple-nixos-mailserver,
|
|
...
|
|
}@inputs: let
|
|
mkSystem = modules:
|
|
nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
machines = import ./lib/machines.nix;
|
|
};
|
|
inherit modules;
|
|
};
|
|
generateNixosConfigurations = configurations:
|
|
builtins.listToAttrs (
|
|
map (name: {
|
|
inherit name;
|
|
value = mkSystem [ (./boxes/. + "/${name}") ];
|
|
}) configurations
|
|
);
|
|
in {
|
|
nixosConfigurations = generateNixosConfigurations [ "netbox" "copernicus" "aristotle" ];
|
|
};
|
|
}
|