dotfiles/system/nixos/default.nix

25 lines
620 B
Nix
Raw Normal View History

2023-11-06 23:24:53 +00:00
{ inputs, pkgs, self, system, username }:
2024-01-09 20:39:56 +00:00
{ desktop ? false, hostname }:
let
2024-01-09 20:39:56 +00:00
configuration = import ./configuration.nix { inherit desktop hostname inputs pkgs system; };
hardware-configuration = import ./hardware-configuration.nix;
in
inputs.nixpkgs.lib.nixosSystem {
modules = [
2023-09-27 20:02:06 +00:00
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
extraSpecialArgs = { inherit inputs desktop self username; };
useGlobalPkgs = true;
useUserPackages = true;
users."${username}" = import ./home-manager;
};
}
configuration
hardware-configuration
];
}