unify desktop and laptop configs

This commit is contained in:
2025-08-07 17:41:18 -07:00
parent f920b9bb6f
commit bcfb5772e4
5 changed files with 55 additions and 40 deletions

View File

@@ -20,9 +20,32 @@
inputs.lanzaboote.nixosModules.lanzaboote
];
nixpkgs.config.allowUnfree = true;
# allow overclocking (I actually underclock but lol)
hardware.amdgpu.overdrive.ppfeaturemask = "0xFFF7FFFF";
hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${lib.getExe pkgs.greetd.tuigreet} --time --cmd niri-session";
user = username;
};
};
};
system.activationScripts = {
# FIX: https://github.com/NixOS/nix/issues/2982
"profile-channel-dummy".text = ''
#!/bin/sh
mkdir -p /nix/var/nix/profiles/per-user/root/channels
'';
};
swapDevices = [ ];
nix = {