fix: move nixd config to nvim.nix

This commit is contained in:
DACHXY 2025-01-23 13:32:43 +08:00
parent 5d6f5671a6
commit d5fcc2cf5f
5 changed files with 51 additions and 36 deletions

View file

@ -13,6 +13,7 @@ let
hyprcursor-size = "32";
xcursor-size = "24";
nvidia-offload-enabled = config.hardware.nvidia.prime.offload.enable;
device-name = "dn-lap";
in
{
imports = [
@ -26,7 +27,7 @@ in
];
# Overrides
networking.hostName = lib.mkForce "dn-lap";
networking.hostName = lib.mkForce device-name;
system.stateVersion = nix-version;
home-manager = {
@ -41,6 +42,7 @@ in
git-config
username
nvidia-offload-enabled
device-name
;
};
users."${username}" = {