jungle/flake.nix

28 lines
738 B
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
outputs = { self, nixpkgs, agenix, bscpkgs, ... }:
let
mkConf = name: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit nixpkgs bscpkgs agenix; theFlake = self; };
modules = [ "${self.outPath}/m/${name}/configuration.nix" ];
};
in
{
2023-04-26 14:26:39 +02:00
nixosConfigurations = {
hut = mkConf "hut";
owl1 = mkConf "owl1";
owl2 = mkConf "owl2";
eudy = mkConf "eudy";
2023-04-26 14:26:39 +02:00
};
packages.x86_64-linux.hut = self.nixosConfigurations.hut.pkgs;
2023-04-26 14:26:39 +02:00
};
}