392 current 2024-04-17 20:52:27 24.05.20240417.203fac8 6.8.6-zen1 nvidiaProduction nvidiaStable

This commit is contained in:
zackartz 2024-04-17 20:52:27 -04:00
parent 5b3bae6ac3
commit 41c8af5bc1
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
6 changed files with 133 additions and 58 deletions

View file

@ -25,12 +25,30 @@
})
];
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "earth"; # Define your hostname.
networking.networkmanager.enable = true;
networking.networkmanager.unmanaged = ["enp6s0"];
boot.supportedFilesystems = ["ntfs"];
@ -94,6 +112,47 @@
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
specialisation = {
nvidiaProduction.configuration = {
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
environment.etc."specialisation".text = "nvidiaProduction";
};
nvidiaStable.configuration = {
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
environment.etc."specialisation".text = "nvidiaStable";
};
};
# Define a user account. Don't forget to set a password with passwd.
users.users.zack = {
isNormalUser = true;
description = "zack";
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "plugdev"];
shell = pkgs.zsh;
packages = with pkgs; [
firefox
kate
rio
telegram-desktop
kitty
mailspring
# thunderbird
];
};
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
"zack" = {
imports = [../../modules/home-manager/default.nix];
_module.args.theme = import ../../core/theme.nix;
home.username = "zack";
home.homeDirectory = "/home/zack";
};
};
};
programs.virt-manager.enable = true;
virtualisation.docker.enable = true;