From 2c37b61a08ca14572332bb98e6d35c3958abe48a Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 19 Feb 2025 11:41:22 -0600 Subject: [PATCH] feat: add bigtower --- packages/hosts/bigtower.nix | 83 +++++++++++++++++++++---------------- packages/hosts/default.nix | 1 + packages/hosts/dragon.nix | 6 ++- 3 files changed, 53 insertions(+), 37 deletions(-) diff --git a/packages/hosts/bigtower.nix b/packages/hosts/bigtower.nix index df77948..fbe0e04 100644 --- a/packages/hosts/bigtower.nix +++ b/packages/hosts/bigtower.nix @@ -1,4 +1,5 @@ { + hardware, pkgs, lib, config, @@ -6,42 +7,34 @@ }: { system.stateVersion = "24.05"; - home-manager.users.daniel.home.stateVersion = "24.05"; - networking.hostName = "bigtower"; - networking.networkmanager.enable = true; + networking = { + hostName = "bigtower"; + wifi = true; + }; - imports = [ - { - fileSystems."/" = { - device = "/dev/disk/by-uuid/5b6c2d65-2704-4ed1-b06d-5ee7110b3d28"; - fsType = "btrfs"; - options = [ "subvol=root" ]; - }; - fileSystems."/nix" = { - device = "/dev/disk/by-uuid/5b6c2d65-2704-4ed1-b06d-5ee7110b3d28"; - fsType = "btrfs"; - options = [ "subvol=nix" ]; - }; - fileSystems."/home" = { - device = "/dev/disk/by-uuid/5b6c2d65-2704-4ed1-b06d-5ee7110b3d28"; - fsType = "btrfs"; - options = [ "subvol=home" ]; - }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/CE80-4623"; - fsType = "vfat"; - options = [ - "fmask=0022" - "dmask=0022" - ]; - }; - } - ]; - hardware.graphics.extraPackages = [ - pkgs.amdvlk - pkgs.libvdpau-va-gl - pkgs.vaapiVdpau - ]; + fileSystems."/" = { + device = "/dev/disk/by-uuid/5b6c2d65-2704-4ed1-b06d-5ee7110b3d28"; + fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + fileSystems."/nix" = { + device = "/dev/disk/by-uuid/5b6c2d65-2704-4ed1-b06d-5ee7110b3d28"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; + fileSystems."/home" = { + device = "/dev/disk/by-uuid/5b6c2d65-2704-4ed1-b06d-5ee7110b3d28"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/CE80-4623"; + fsType = "vfat"; + options = [ + "fmask=0022" + "dmask=0022" + ]; + }; boot = { # kernelPackages = pkgs.linuxPackages_zen; @@ -57,6 +50,12 @@ supportedFilesystems = [ "ntfs" ]; }; + imports = with hardware; [ + common-cpu-amd + common-gpu-amd + common-pc-ssd + ]; + hardware.bluetooth = { enable = true; # package = pkgs.bluez; @@ -67,4 +66,18 @@ }; }; }; + powerManagement.cpuFreqGovernor = "performance"; + + programs.steam.enable = true; + lyte.desktop.enable = true; + + home-manager.users.daniel = { + lyte.shell.enable = true; + lyte.desktop.enable = true; + slippi-launcher = { + enable = true; + isoPath = "${config.users.users.daniel.home}/../games/roms/dolphin/melee.iso"; + launchMeleeOnPlay = false; + }; + }; } diff --git a/packages/hosts/default.nix b/packages/hosts/default.nix index d59dae9..382440e 100644 --- a/packages/hosts/default.nix +++ b/packages/hosts/default.nix @@ -9,5 +9,6 @@ in thinker = host ./thinker.nix { }; htpc = stableHost ./htpc.nix { }; router = stableHost ./router.nix { }; + bigtower = stableHost ./bigtower.nix { }; # arm-dragon = host ./dragon.nix { system = "aarch64-linux"; }; } diff --git a/packages/hosts/dragon.nix b/packages/hosts/dragon.nix index 8d97980..f6b81fe 100644 --- a/packages/hosts/dragon.nix +++ b/packages/hosts/dragon.nix @@ -8,7 +8,10 @@ }: { system.stateVersion = "24.11"; - networking.hostName = "dragon"; + networking = { + hostName = "dragon"; + wifi = true; + }; boot = { kernelPackages = pkgs.linuxPackages_latest; @@ -44,7 +47,6 @@ }; programs.steam.enable = true; - networking.wifi.enable = true; lyte.desktop.enable = true; home-manager.users.daniel = {