dotfiles/lib/nixos/default.nix

28 lines
624 B
Nix
Raw Normal View History

2024-02-13 21:33:32 +00:00
{
inputs,
self,
system,
username,
}: {
desktop ? false,
}: let
2024-03-03 23:27:49 +00:00
configuration = import ./configuration.nix {inherit desktop inputs system;};
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 = {
extraSpecialArgs = {inherit inputs desktop self username;};
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
];
}