dotfiles/lib/nixos/default.nix

27 lines
612 B
Nix
Raw Normal View History

2024-02-13 21:33:32 +00:00
{
inputs,
self,
username,
}: {
desktop ? false,
}: let
2024-03-17 00:27:24 +00:00
configuration = import ./configuration.nix {inherit desktop inputs self;};
2024-02-29 08:26:04 +00:00
hardwareConfiguration = import ./hardware-configuration.nix;
in
2024-02-13 21:33:32 +00:00
inputs.nixpkgs.lib.nixosSystem {
modules = [
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
2024-03-12 17:15:10 +00:00
extraSpecialArgs = {inherit inputs desktop self username;};
2024-02-13 21:33:32 +00:00
useGlobalPkgs = true;
useUserPackages = true;
users."${username}" = import ./home-manager;
};
}
2024-02-13 21:33:32 +00:00
configuration
2024-02-29 08:26:04 +00:00
hardwareConfiguration
2024-02-13 21:33:32 +00:00
];
}