diff options
| author | Kleidi Bujari <mail@4kb.net> | 2026-06-01 22:13:34 -0700 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2026-06-01 22:13:34 -0700 |
| commit | c8f108c1906c502fcb034f6a4aeaf49ed47664d8 (patch) | |
| tree | bf16061794370254ea300ce9cd4674bf83f958c6 | |
| parent | eacac6fa3eb4067b98b1d3ef84f9be2c6cacc660 (diff) | |
| download | depot-c8f108c1906c502fcb034f6a4aeaf49ed47664d8.tar.gz depot-c8f108c1906c502fcb034f6a4aeaf49ed47664d8.tar.bz2 depot-c8f108c1906c502fcb034f6a4aeaf49ed47664d8.zip | |
remove nixos-hardware dep for t1
| -rw-r--r-- | machines/t1.nix | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/machines/t1.nix b/machines/t1.nix index feec667..b443da5 100644 --- a/machines/t1.nix +++ b/machines/t1.nix @@ -1,23 +1,36 @@ -{ inputs, flake, pkgs, perSystem, ... }: +{ + flake, + pkgs, + perSystem, + ... +}: let - inherit (inputs.nixos-hardware.nixosModules) - common-cpu-amd - common-gpu-amd - ; - inherit (import flake.outputs.nixosModules.users { inherit perSystem pkgs; }) - kle; + kle + ; in { imports = [ - common-cpu-amd - common-gpu-amd flake.outputs.nixosModules.disk flake.outputs.nixosModules.desktop flake.outputs.nixosModules.network ]; + hardware = { + cpu.amd.updateMicrocode = true; + enableRedistributableFirmware = true; + amdgpu = { + initrd.enable = true; + overdrive.enable = true; + }; + + graphics = { + enable = true; + enable32Bit = true; + }; + }; + nixpkgs.hostPlatform = "x86_64-linux"; users.users.kle = kle; @@ -51,17 +64,6 @@ in }; fileSystems = { - "/radon" = { - device = "radon.local:/radon"; - fsType = "nfs"; - options = [ "noauto" "x-systemd.automount" "x-systemd.idle-timeout=600" "nofail" ]; - }; - - "/mnt/gammix" = { - device = "/dev/disk/by-uuid/bbbb4579-fac9-412e-a831-3034f7d27e04"; - fsType = "ext4"; - options = [ "users" "nofail" "noatime" ]; - }; "/var" = { device = "zroot/local/var"; fsType = "zfs"; @@ -78,7 +80,6 @@ in environment.shellAliases.b = "${pkgs.ddcutil}/bin/ddcutil setvcp 10"; boot.kernelModules = [ "i2c-dev" ]; - hardware.amdgpu.overdrive.enable = true; environment.systemPackages = with pkgs; [ ddcutil |
