mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2024-12-04 19:40:07 +01:00
67 lines
1.7 KiB
Nix
67 lines
1.7 KiB
Nix
{
|
|
description = "PVV System flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05-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";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, matrix-next, unstable, sops-nix, ... }@inputs:
|
|
let
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
|
|
in {
|
|
nixosConfigurations = let
|
|
nixosConfig = name: config: nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate
|
|
rec {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit unstable inputs;
|
|
values = import ./values.nix;
|
|
};
|
|
|
|
modules = [
|
|
./hosts/${name}/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
];
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
(final: prev: {
|
|
mx-puppet-discord = prev.mx-puppet-discord.override { nodejs_14 = final.nodejs_18; };
|
|
})
|
|
];
|
|
};
|
|
}
|
|
config
|
|
);
|
|
|
|
in {
|
|
bicep = nixosConfig "bicep" {
|
|
modules = [
|
|
./hosts/bicep/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
|
|
matrix-next.nixosModules.synapse
|
|
];
|
|
};
|
|
bekkalokk = nixosConfig "bekkalokk" { };
|
|
# greddost = nixosConfig "greddost" { };
|
|
ildkule = nixosConfig "ildkule" { };
|
|
};
|
|
|
|
devShells = forAllSystems (system: {
|
|
default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
|
|
});
|
|
};
|
|
}
|