dotfiles/NixOS/flake.nix

31 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-31 12:41:57 +02:00
{
2024-05-31 14:55:36 +02:00
description = "NixOS flake";
2024-05-31 12:41:57 +02:00
2024-05-31 14:55:36 +02:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
2024-05-31 12:41:57 +02:00
};
2024-05-31 14:55:36 +02:00
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; }; # allows access to flake inputs in nixos modules
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs; }; # allows access to flake inputs in hm modules
home-manager.users.user = {
imports = [ ./home.nix ];
};
}
];
};
2024-05-31 12:41:57 +02:00
};
}