boxen/flake.nix

36 lines
998 B
Nix
Raw Normal View History

2021-05-24 08:33:02 +00:00
{
description = "My NixOS configuration";
2021-05-24 08:33:02 +00:00
inputs = {
nixos.url = "nixpkgs/nixos-unstable";
2021-05-24 09:23:07 +00:00
2021-05-24 08:33:02 +00:00
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixos";
2021-05-24 09:23:07 +00:00
nur.url = "github:nix-community/NUR";
2021-05-24 08:33:02 +00:00
};
2021-05-24 09:23:07 +00:00
outputs = { self, nixos, home-manager, nur }: {
2021-05-24 08:33:02 +00:00
nixosConfigurations = nixos.lib.attrsets.genAttrs [ "arianrhod" "gwydion" ]
(hostname:
nixos.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
(./hosts + "/${hostname}")
(./hosts + "/${hostname}/hardware.nix")
(./secrets + "/${hostname}.nix")
home-manager.nixosModules.home-manager
{ nixpkgs.overlays = [ nur.overlay ]; }
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = false;
home-manager.users.jez = import ./home/jez/home.nix;
}
];
});
2021-05-24 08:33:02 +00:00
};
}