-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal-vars.nix
59 lines (47 loc) · 1.6 KB
/
global-vars.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# /etc/nixos/global-vars.nix
# Global Variables & Tunables Config
# = CHANGE WHAT YOU NEED HERE =
# Changes made in this config 'should' apply globally.
# WARNING: DO NOT DELETE THIS CONFIG. THIS FILE IS HARDCODED
{
lib,
config,
pkgs,
...
}: {
systemVariables = {
# Only Type "amd" or "intel".
# This changes IOMMU enablement / cpu microcode settings
cputype = "amd";
# Only Type "amdgpu" or "nvidia".
# This changes XServer / Wayland default driver
gputype = "amdgpu";
# Set System Kernel:
kernel = pkgs.linuxPackages_zen;
# Set the System Kernel for Kernel Modules:
kernelmodule_support = "linux_zen";
# VFIO Settings: (./hardware-specific/vfio)
# Use this if you want VFIO.
# If you don't want VFIO, comment these 2 lines;
# and comment `./virtualisation` below.
# OR comment `./vfio` inside `./virtusalisation/default.nix`
vfioIDs = "10de:2204,10de:1aef";
vfioBlacklist = "nvidia,nvidiafb,nouveau";
# System Hostname
hostname = "Spongey-PC";
# Fully Qualified (Local) Domain Name
fqdn = "Spongey-PC.lan";
};
userVariables = {
# DO NOT CHANGE THIS; unless you want a different home dir folder.
homedir = "/home/tyler";
# User
username = "tyler";
usershell = pkgs.fish;
userid = 1000;
# Locale / Localisation
timeZone = "America/Los_Angeles"; # Set time zone.
locale = "en_US.UTF-8"; # Select internationalisation properties.
keymap = "us";
};
}