diff --git a/systems/NOlaptop.nix b/systems/NOlaptop.nix index 41d7560..c5e4da9 100644 --- a/systems/NOlaptop.nix +++ b/systems/NOlaptop.nix @@ -73,6 +73,7 @@ # ]; boot.kernelParams = [ "amdgpu.abmlevel=1" + "amdgpu.dcdebugmask=0x400" ]; # boot.kernelModules = ["kvm-amd"]; powerManagement.cpuFreqGovernor = "powersave"; diff --git a/users/tao.nix b/users/tao.nix index b495147..2723bac 100644 --- a/users/tao.nix +++ b/users/tao.nix @@ -102,7 +102,7 @@ SUBVOLUME = "/home"; # FSTYPE = "bcachefs"; FSTYPE = - if lib.nixosSystem == "NOlaptop" + if lib.strings.hasPrefix "NOlaptop" (builtins.readFile /etc/hostname) then "bcachefs" else "btrfs"; ALLOW_USERS = ["tao"]; diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index ff83055..523c1b3 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -69,7 +69,7 @@ def nr [package] { nix search nixpkgs $package } def rebuild --wrapped [subcommand, ...rest] { - if ((open /etc/hostname --raw) == "NOlaptop\n") { + if ((open /etc/hostname --raw) == "NOlaptop\n" and not ($rest | first | str starts-with "--builders")) { sudo nix store info --store ssh://nocomputer } sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest