-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.nix
executable file
·121 lines (109 loc) · 3.11 KB
/
configuration.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
pkgs,
...
}: let
global = import ./global-var.nix;
in {
home-manager.users.noah.home.stateVersion = "24.05";
system.stateVersion = "24.05";
imports = [
./hardware-configuration.nix
./terminal/zsh.nix
./terminal/neofetch/neofetch.nix
./terminal/nvim.nix
./terminal/unconfigured.nix
./terminal/bat.nix
./terminal/yazi.nix
./terminal/btop.nix
./graphical/kitty.nix
./graphical/tk-themes/gtk.nix
./graphical/tk-themes/qt.nix
./graphical/hyprland.nix
./graphical/rofi.nix
./graphical/fonts.nix
./graphical/virt-manager.nix
./graphical/unconfigured.nix
./graphical/emulators.nix
./graphical/steam.nix
./graphical/wpaperd.nix
./graphical/satty.nix
./graphical/firefox.nix
./graphical/spotify.nix
./graphical/ags/ags.nix
./graphical/mpv.nix
./amd-gpu.nix
./misc/udev.nix
./misc/ntp.nix
./misc/shell-scripts/shutdown-menu.nix
./misc/shell-scripts/edit.nix
./misc/shell-scripts/extract.nix
./misc/shell-scripts/satty-shot.nix
./misc/shell-scripts/sha256-from-url.nix
./misc/shell-scripts/llm-actions.nix
./misc/shell-scripts/brightness-ctrl.nix
./misc/default-programs.nix
./misc/kernel.nix
./services/ollama.nix
./services/pipewire.nix
./services/greetd.nix
./services/docker.nix
./services/xdg-portal.nix
./services/bluetooth.nix
./services/keyring.nix
./services/sshd.nix
./services/flatpak.nix
./language-support/keyboard/mozc.nix
];
# TODO: Figure out how the fuck to switch to Grub, systemd-boot is ass. Also, I might be using BIOS? God I fucking hate BIOS and UEFI boot shit kill me now
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# Does Nixpkgs even test builds? Shit constantly breaking
#nix.settings.system-features = [ "benchmark" "big-parallel" "kvm" "nixos-test" "gccarch-znver2" ];
#nixpkgs.hostPlatform = {
# gcc.arch = "znver2";
# gcc.tune = "znver2";
# system = "x86_64-linux";
#};
networking = {
hostName = "nixos";
networkmanager.enable = true;
firewall.enable = false; # Fixes not being able to connect from my phone, maybe not ideal
};
time.timeZone = "America/Chicago";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
};
users.users.${global.username} = {
isNormalUser = true;
shell = pkgs.zsh;
description = "user";
extraGroups = ["networkmanager" "wheel" "video" "audio"];
};
# Allows closed source software
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
};
# Collect garbage
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 4d";
};
};
}