diff options
Diffstat (limited to 'nix/flake.nix')
| -rw-r--r-- | nix/flake.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nix/flake.nix b/nix/flake.nix new file mode 100644 index 0000000..e4cde5f --- /dev/null +++ b/nix/flake.nix @@ -0,0 +1,40 @@ +{ + description = "NixOS configurations"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + sops-nix = { + url = "github:Mic92/sops-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = inputs@{ nixpkgs, sops-nix, ... }: { + nixosConfigurations = { + "base" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./per-host/base/configuration.nix + ]; + }; + + "torrents-2" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./per-host/base/configuration.nix + ./per-host/torrents-2/configuration.nix + sops-nix.nixosModules.sops + ]; + }; + + "rproxy-2" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./per-host/base/configuration.nix + ./per-host/rproxy-2/configuration.nix + sops-nix.nixosModules.sops + ]; + }; + }; + }; +} |
