jungle/flake.nix

103 lines
3.7 KiB
Nix
Raw Normal View History

2023-04-26 14:26:39 +02:00
{
2023-04-26 17:36:36 +02:00
inputs = {
2023-04-28 11:18:37 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-04-26 17:36:36 +02:00
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
bscpkgs.url = "git+https://pm.bsc.es/gitlab/rarias/bscpkgs.git";
};
2023-04-26 14:26:39 +02:00
2023-04-26 17:36:36 +02:00
outputs = { self, nixpkgs, agenix, bscpkgs, ... }: {
2023-04-26 14:26:39 +02:00
nixosConfigurations = {
xeon01 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2023-04-26 17:36:36 +02:00
modules = [
( {options, ...}: {
# Sel the nixos-config path to the one of the current flake
nixpkgs.overlays = [ bscpkgs.bscOverlay ];
nix.nixPath = [
"nixpkgs=${nixpkgs}"
"bscpkgs=${bscpkgs}"
"nixos-config=${self.outPath}/xeon01/configuration.nix"
"nixpkgs-overlays=${self.outPath}/overlays-compat"
];
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.bscpkgs.flake = bscpkgs;
system.configurationRevision =
if self ? rev
then self.rev
else throw ("Refusing to build from a dirty Git tree!");
})
./xeon01/configuration.nix
];
2023-04-26 14:26:39 +02:00
};
2023-04-27 16:28:12 +02:00
xeon02 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
( {options, ...}: {
# Sel the nixos-config path to the one of the current flake
nixpkgs.overlays = [ bscpkgs.bscOverlay ];
nix.nixPath = [
"nixpkgs=${nixpkgs}"
"bscpkgs=${bscpkgs}"
"nixos-config=${self.outPath}/xeon02/configuration.nix"
"nixpkgs-overlays=${self.outPath}/overlays-compat"
];
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.bscpkgs.flake = bscpkgs;
system.configurationRevision =
if self ? rev
then self.rev
else throw ("Refusing to build from a dirty Git tree!");
})
./xeon02/configuration.nix
];
};
2023-06-14 11:15:00 +02:00
hut = nixpkgs.lib.nixosSystem {
2023-04-26 14:26:39 +02:00
system = "x86_64-linux";
2023-04-26 17:36:36 +02:00
modules = [
( {options, ...}: {
# Sel the nixos-config path to the one of the current flake
nixpkgs.overlays = [ bscpkgs.bscOverlay ];
nix.nixPath = [
"nixpkgs=${nixpkgs}"
"bscpkgs=${bscpkgs}"
2023-06-14 11:15:00 +02:00
"nixos-config=${self.outPath}/hut/configuration.nix"
2023-04-26 17:36:36 +02:00
"nixpkgs-overlays=${self.outPath}/overlays-compat"
];
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.bscpkgs.flake = bscpkgs;
system.configurationRevision =
if self ? rev
then self.rev
else throw ("Refusing to build from a dirty Git tree!");
})
agenix.nixosModules.default
2023-06-14 11:15:00 +02:00
./hut/configuration.nix
2023-04-26 17:36:36 +02:00
];
2023-04-26 14:26:39 +02:00
};
2023-05-05 20:18:01 +02:00
xeon08 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
( {options, ...}: {
# Sel the nixos-config path to the one of the current flake
nixpkgs.overlays = [ bscpkgs.bscOverlay ];
nix.nixPath = [
"nixpkgs=${nixpkgs}"
"bscpkgs=${bscpkgs}"
"nixos-config=${self.outPath}/xeon08/configuration.nix"
"nixpkgs-overlays=${self.outPath}/overlays-compat"
];
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.bscpkgs.flake = bscpkgs;
system.configurationRevision =
if self ? rev
then self.rev
else throw ("Refusing to build from a dirty Git tree!");
})
./xeon08/configuration.nix
];
};
2023-04-26 14:26:39 +02:00
};
};
}