mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2024-12-04 19:40:07 +01:00
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{
|
|
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/flake-experiments";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, unstable, sops-nix, ... }@inputs:
|
|
let
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
|
|
in {
|
|
nixosConfigurations = {
|
|
jokum = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit unstable inputs; };
|
|
modules = [
|
|
./hosts/jokum/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
|
|
inputs.matrix-next.nixosModules.synapse
|
|
];
|
|
};
|
|
ildkule = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit unstable inputs; };
|
|
modules = [
|
|
./hosts/ildkule/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
];
|
|
};
|
|
};
|
|
devShells = forAllSystems (system: {
|
|
default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
|
|
});
|
|
};
|
|
}
|