my-nix/hosts/nixos/bunta_desktop/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2023-06-15 05:40:56 -05:00
{nixpkgs, nixpkgs-stable, system, stateVersion, home-manager, self, inputs, ...}:
{
# Host configurations
bunta_desktop = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit nixpkgs system stateVersion home-manager;
};
modules = [
./configuration.nix
./hardware-configuration.nix
./core/bootloader.nix
home-manager.nixosModules.home-manager {
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {
inherit self;
inherit inputs;
packages = self.packages.${system};
};
users.nibunta = import ./users/nibunta.nix;
};
}
];
/*
imports = [ "${nixpkgs-stable}/nixos/modules/services/virtualisation/virtualbox-host.nix" ];
disabledModules = [ "virtualisation/virtualbox-host.nix" ];
nixpkgs.config = {
packageOverrides = pkgs: let
stablePkgs = import nixpkgs-stable { enableUnfree = true; };
in {
virtualbox = stablePkgs.virtualbox;
virtualboxExtpack = stablePkgs.virtualboxExtpack;
};
};
*/
};
}