mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 04:39:32 -08:00
Added desktop configuration base
This commit is contained in:
parent
d88f67da4e
commit
439b74cb40
2 changed files with 51 additions and 0 deletions
23
flake.nix
23
flake.nix
|
@ -47,6 +47,29 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
NicksNixDesktop = lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit user; };
|
||||
|
||||
modules = [
|
||||
{
|
||||
networking.hostName = "NicksNixDesktop";
|
||||
}
|
||||
kmonad.nixosModules.default
|
||||
./hosts/desktop
|
||||
./hosts/configuration.nix
|
||||
./modules/kmonad.nix
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit user; };
|
||||
users.${user} = import ./users/${user}.nix;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
28
hosts/desktop/default.nix
Normal file
28
hosts/desktop/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ ... }:
|
||||
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
time.hardwareClockInLocalTime = true;
|
||||
|
||||
boot.loader = {
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot";
|
||||
};
|
||||
grub = {
|
||||
devices = [ "nodev" ];
|
||||
efiSupport = true;
|
||||
enable = true;
|
||||
version = 2;
|
||||
useOSProber = true;
|
||||
extraEntries = ''
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue