dotfiles/system/nixos/default.nix

27 lines
636 B
Nix
Raw Normal View History

2023-10-03 22:04:08 +00:00
{ inputs, self, system, username }:
{ desktop }:
let
2023-10-03 22:04:08 +00:00
pkgs = inputs.nixpkgs.legacyPackages."${system}";
configuration = import ./configuration.nix { inherit 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.nix;
};
}
configuration
hardware-configuration
];
}