pvv-nixos-config/flake.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

2022-12-07 22:13:28 +01:00
{
description = "PVV System flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
matrix-next.url = "github:dali99/nixos-matrix-modules";
2022-12-07 22:13:28 +01:00
};
2022-12-09 03:43:14 +01:00
outputs = { self, nixpkgs, unstable, sops-nix, ... }@inputs:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in {
2022-12-07 22:13:28 +01:00
nixosConfigurations = {
jokum = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit unstable inputs; values = import ./values.nix; };
2022-12-07 22:13:28 +01:00
modules = [
./hosts/jokum/configuration.nix
sops-nix.nixosModules.sops
inputs.matrix-next.nixosModules.synapse
];
};
2022-12-17 21:51:43 +01:00
ildkule = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit unstable inputs; values = import ./values.nix; };
2022-12-17 21:51:43 +01:00
modules = [
./hosts/ildkule/configuration.nix
sops-nix.nixosModules.sops
];
};
2022-12-07 22:13:28 +01:00
};
2022-12-09 03:43:14 +01:00
devShells = forAllSystems (system: {
default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
});
2022-12-07 22:13:28 +01:00
};
}