dotfiles/lib/nixos/default.nix

22 lines
595 B
Nix
Raw Normal View History

{ inputs, self, username }:
{ desktop ? false, hostname }:
2024-03-18 20:33:28 +00:00
let
configuration = import ./configuration.nix { inherit desktop hostname inputs self; };
2024-02-29 08:26:04 +00:00
hardwareConfiguration = import ./hardware-configuration.nix;
2024-03-18 20:33:28 +00:00
in inputs.nixpkgs.lib.nixosSystem {
modules = [
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
extraSpecialArgs = { inherit inputs desktop self username; };
useGlobalPkgs = true;
useUserPackages = true;
users."${username}" = import ./home-manager;
};
}
2024-03-18 20:33:28 +00:00
configuration
hardwareConfiguration
];
}