nixos-configs/flake.nix
2023-10-19 09:34:06 +02:00

48 lines
1.3 KiB
Nix

{
description = "My NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
nur.url = "github:nix-community/NUR";
home-manager = {
url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
homeage = {
url = "github:jordanisaacs/homeage";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
};
outputs = { self, nixpkgs, home-manager, homeage, agenix, nur, ... }:
let
inherit (self) outputs;
in
{
overlays = { nurPackages = nur.overlay; };
nixosConfigurations.pim = nixpkgs.lib.nixosSystem {
specialArgs = { inherit outputs; };
system = "x86_64-linux";
modules = [
./configuration.nix
agenix.nixosModules.default
home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = { inherit nur; };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.pim = {
imports = [
./home
homeage.homeManagerModules.homeage
];
};
}
];
};
};
}