chore(deps): nixos 24.11 for dragon

This commit is contained in:
Florian Schmitt 2024-12-03 12:23:25 +03:00
parent 789b096077
commit 096313cb82
4 changed files with 96 additions and 107 deletions

View file

@ -12,10 +12,9 @@
networking.hostName = "dragon"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.extraHosts =
''
163.172.173.184 aleks-test-install-bookworm.test
'';
networking.extraHosts = ''
163.172.173.184 aleks-test-install-bookworm.test
'';
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
@ -42,13 +41,10 @@
LC_TIME = "fr_FR.UTF-8";
};
hardware.opengl = {
hardware.graphics = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
nixpkgs.config.allowUnfree = true;
nixpkgs.config.nvidia.acceptLicense = true;
hardware.nvidia = {
@ -58,7 +54,7 @@
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials.
powerManagement.enable = true;
@ -68,9 +64,9 @@
# Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+
# Currently alpha-quality/buggy, so false is currently the recommended setting.
open = false;
@ -82,56 +78,57 @@
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.latest;
};
#hardware.opengl = {
# enable = true;
#};
#hardware.nvidia = {
# modesetting.enable = true;
# powerManagement.enable = false;
# powerManagement.finegrained = true;
# open = true;
# nvidiaSettings = true;
# package = config.boot.kernelPackages.nvidiaPackages.beta;
#};
services.xserver = {
enable = true;
videoDrivers = [ "intel" "nvidia" ];
videoDrivers = [
"intel"
"nvidia"
];
xkb.layout = "us";
xkb.variant = "";
};
fileSystems."/mnt/nas/music" =
{
device = "192.168.1.2:/volume1/music";
options = [ "nfsvers=4.2" "x-systemd.automount" "noauto" "rw" "relatime" "user" "acl" "defaults" ];
fsType = "nfs";
};
fileSystems."/mnt/nas/music" = {
device = "192.168.1.2:/volume1/music";
options = [
"nfsvers=4.2"
"x-systemd.automount"
"noauto"
"rw"
"relatime"
"user"
"acl"
"defaults"
];
fsType = "nfs";
};
services.rpcbind.enable = true; # needed for NFS
systemd.mounts = [{
type = "nfs";
mountConfig = {
Options = "defaults,acl,user,noauto,relatime,rw";
};
what = "192.168.1.2:/volume1/music";
where = "/mnt/nas/music";
}];
systemd.automounts = [{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "600";
};
where = "/mnt/nas/music";
}];
systemd.mounts = [
{
type = "nfs";
mountConfig = {
Options = "defaults,acl,user,noauto,relatime,rw";
};
what = "192.168.1.2:/volume1/music";
where = "/mnt/nas/music";
}
];
systemd.automounts = [
{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "600";
};
where = "/mnt/nas/music";
}
];
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {