This commit is contained in:
2026-08-15 23:56:29 +00:00
parent a67158f51b
commit 0ac9b5a78b
7 changed files with 180 additions and 74 deletions

View File

@@ -1,7 +1,9 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
{
imports = [
inputs.disko.nixosModules.disko
./disko.nix
./hardware-configuration.nix
./display-configuration.nix
../../modules/hardware/nvidia.nix
@@ -10,6 +12,14 @@
networking.hostName = "hades";
# Enable in-memory compressed swap
zramSwap.enable = true;
# Ensure /games directory is accessible by default user
systemd.tmpfiles.rules = [
"d /games 0755 anish users -"
];
powerManagement.cpuFreqGovernor = "performance";
hardware.nvidia.prime = {

50
hosts/hades/disko.nix Normal file
View File

@@ -0,0 +1,50 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_2TB_S59CNZ0NB09730Z";
content = {
type = "gpt";
partitions = {
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "fmask=0077" "dmask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
games = {
type = "disk";
device = "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S5H9NS0N401375F";
content = {
type = "gpt";
partitions = {
games = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/games";
};
};
};
};
};
};
};
}

View File

@@ -2,6 +2,11 @@
{
home-manager.users.anish.wayland.windowManager.hyprland.settings.monitor = [
"HDMI-A-1, 3840x2160, auto, 2"
{
output = "HDMI-A-1";
mode = "3840x2160";
position = "auto";
scale = 2;
}
];
}

View File

@@ -13,20 +13,8 @@
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b4665ea7-2347-4075-8fb5-5b9c838a4852";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/3FEE-E289";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/37ad0ef8-95d4-4cf5-a443-a867bca3d974"; }
];
# File systems and swap partitions are managed by disko (./disko.nix)
# and zramSwap in ./default.nix
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;