nix
This commit is contained in:
66
hosts/kronos/default.nix
Normal file
66
hosts/kronos/default.nix
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
userName = "love";
|
||||
fullName = "Love";
|
||||
hostName = "Kronos";
|
||||
homeDir = "/home/${userName}";
|
||||
installDisk = "/dev/disk/by-id/REPLACE_ME";
|
||||
in
|
||||
{
|
||||
_module.args = {
|
||||
inherit
|
||||
fullName
|
||||
homeDir
|
||||
hostName
|
||||
installDisk
|
||||
userName
|
||||
;
|
||||
};
|
||||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disko.nix
|
||||
../../modules/base.nix
|
||||
../../modules/zfs-root.nix
|
||||
../../modules/desktop-hyprland.nix
|
||||
];
|
||||
|
||||
networking.hostName = hostName;
|
||||
networking.hostId = "ff0b8826";
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
users.mutableUsers = true;
|
||||
users.users.${userName} = {
|
||||
isNormalUser = true;
|
||||
description = fullName;
|
||||
extraGroups = [
|
||||
"audio"
|
||||
"input"
|
||||
"render"
|
||||
"video"
|
||||
"wheel"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryPercent = 75;
|
||||
algorithm = "zstd";
|
||||
};
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
Reference in New Issue
Block a user