tangled
alpha
login
or
join now
m1emi1em.dev
/
nixos-flake
1
fork
atom
Personal NixOS flake
1
fork
atom
overview
issues
pulls
pipelines
filesystems.nix, virt.nix
m1emi1em.dev
1 year ago
8270b198
def56df8
+172
-103
5 changed files
expand all
collapse all
unified
split
configuration.nix
sys
default.nix
desktop.nix
filesystems.nix
virt.nix
+77
-77
configuration.nix
···
12
12
13
13
#nix.settings.experimental-features = ["nix-command" "flakes"];
14
14
15
15
-
nix.settings = {
16
16
-
experimental-features = ["nix-command" "flakes"];
17
17
-
#substituters = ["https://hyprland.cachix.org"];
18
18
-
#trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
19
19
-
};
15
15
+
# nix.settings = {
16
16
+
# experimental-features = ["nix-command" "flakes"];
17
17
+
# #substituters = ["https://hyprland.cachix.org"];
18
18
+
# #trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
19
19
+
# };
20
20
21
21
22
22
# Bootloader.
23
23
-
boot.loader.systemd-boot.enable = true;
24
24
-
boot.loader.efi.canTouchEfiVariables = true;
23
23
+
# boot.loader.systemd-boot.enable = true;
24
24
+
# boot.loader.efi.canTouchEfiVariables = true;
25
25
26
26
-
networking.hostName = "Emerald"; # Define your hostname.
26
26
+
#networking.hostName = "Emerald"; # Define your hostname.
27
27
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
28
28
29
29
# Configure network proxy if necessary
···
31
31
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
32
32
33
33
# Enable networking
34
34
-
networking.networkmanager.enable = true;
34
34
+
#networking.networkmanager.enable = true;
35
35
36
36
# Set your time zone.
37
37
-
time.timeZone = "America/New_York";
37
37
+
# time.timeZone = "America/New_York";
38
38
39
39
-
# Select internationalisation properties.
40
40
-
i18n.defaultLocale = "en_US.UTF-8";
39
39
+
# # Select internationalisation properties.
40
40
+
# i18n.defaultLocale = "en_US.UTF-8";
41
41
42
42
-
i18n.extraLocaleSettings = {
43
43
-
LC_ADDRESS = "en_US.UTF-8";
44
44
-
LC_IDENTIFICATION = "en_US.UTF-8";
45
45
-
LC_MEASUREMENT = "en_US.UTF-8";
46
46
-
LC_MONETARY = "en_US.UTF-8";
47
47
-
LC_NAME = "en_US.UTF-8";
48
48
-
LC_NUMERIC = "en_US.UTF-8";
49
49
-
LC_PAPER = "en_US.UTF-8";
50
50
-
LC_TELEPHONE = "en_US.UTF-8";
51
51
-
LC_TIME = "en_US.UTF-8";
52
52
-
};
42
42
+
# i18n.extraLocaleSettings = {
43
43
+
# LC_ADDRESS = "en_US.UTF-8";
44
44
+
# LC_IDENTIFICATION = "en_US.UTF-8";
45
45
+
# LC_MEASUREMENT = "en_US.UTF-8";
46
46
+
# LC_MONETARY = "en_US.UTF-8";
47
47
+
# LC_NAME = "en_US.UTF-8";
48
48
+
# LC_NUMERIC = "en_US.UTF-8";
49
49
+
# LC_PAPER = "en_US.UTF-8";
50
50
+
# LC_TELEPHONE = "en_US.UTF-8";
51
51
+
# LC_TIME = "en_US.UTF-8";
52
52
+
# };
53
53
54
54
# Enable the X11 windowing system.
55
55
# You can disable this if you're only using the Wayland session.
···
69
69
services.printing.enable = true;
70
70
71
71
# Enable sound with pipewire.
72
72
-
hardware.pulseaudio.enable = false;
73
73
-
security.rtkit.enable = true;
74
74
-
services.pipewire = {
75
75
-
enable = true;
76
76
-
alsa.enable = true;
77
77
-
alsa.support32Bit = true;
78
78
-
pulse.enable = true;
79
79
-
# If you want to use JACK applications, uncomment this
80
80
-
#jack.enable = true;
72
72
+
# hardware.pulseaudio.enable = false;
73
73
+
# security.rtkit.enable = true;
74
74
+
# services.pipewire = {
75
75
+
# enable = true;
76
76
+
# alsa.enable = true;
77
77
+
# alsa.support32Bit = true;
78
78
+
# pulse.enable = true;
79
79
+
# # If you want to use JACK applications, uncomment this
80
80
+
# #jack.enable = true;
81
81
82
82
-
# use the example session manager (no others are packaged yet so this is enabled by default,
83
83
-
# no need to redefine it in your config for now)
84
84
-
#media-session.enable = true;
85
85
-
};
82
82
+
# # use the example session manager (no others are packaged yet so this is enabled by default,
83
83
+
# # no need to redefine it in your config for now)
84
84
+
# #media-session.enable = true;
85
85
+
# };
86
86
87
87
#services.pipewire.extraConfig.pipewire."92-low-latency" = {
88
88
# "context.properties" = {
···
209
209
# enable = true;
210
210
# };
211
211
212
212
-
hardware.graphics = {
213
213
-
enable = true;
214
214
-
};
212
212
+
# hardware.graphics = {
213
213
+
# enable = true;
214
214
+
# };
215
215
216
216
217
217
-
services.xserver.videoDrivers = ["nvidia"];
218
218
-
hardware.nvidia = {
219
219
-
modesetting.enable = true;
220
220
-
powerManagement.enable = false;
221
221
-
powerManagement.finegrained = false;
222
222
-
open = false;
223
223
-
nvidiaSettings = true;
217
217
+
# services.xserver.videoDrivers = ["nvidia"];
218
218
+
# hardware.nvidia = {
219
219
+
# modesetting.enable = true;
220
220
+
# powerManagement.enable = false;
221
221
+
# powerManagement.finegrained = false;
222
222
+
# open = false;
223
223
+
# nvidiaSettings = true;
224
224
225
225
-
package = config.boot.kernelPackages.nvidiaPackages.stable;
226
226
-
};
225
225
+
# package = config.boot.kernelPackages.nvidiaPackages.stable;
226
226
+
# };
227
227
228
228
-
boot.supportedFilesystems = [ "ntfs" ];
228
228
+
# boot.supportedFilesystems = [ "ntfs" ];
229
229
230
230
-
fileSystems."/mnt/BiggusDiskus" = {
231
231
-
device = "/dev/nvme0n1p2";
232
232
-
fsType = "ntfs-3g";
233
233
-
options = [
234
234
-
"users"
235
235
-
"nofail"
236
236
-
"rw"
237
237
-
"exec"
238
238
-
];
239
239
-
};
230
230
+
# fileSystems."/mnt/BiggusDiskus" = {
231
231
+
# device = "/dev/nvme0n1p2";
232
232
+
# fsType = "ntfs-3g";
233
233
+
# options = [
234
234
+
# "users"
235
235
+
# "nofail"
236
236
+
# "rw"
237
237
+
# "exec"
238
238
+
# ];
239
239
+
# };
240
240
241
241
# hyprland
242
242
programs.hyprland.enable = true;
···
246
246
247
247
users.defaultUserShell = pkgs.fish;
248
248
249
249
-
virtualisation.oci-containers.containers = {
250
250
-
"gitea" = {
251
251
-
autoStart = true;
252
252
-
image = "gitea/gitea";
253
253
-
ports = [ "32769:22" "32768:3000"];
254
254
-
environment = {
255
255
-
#USER_UID = "1000";
256
256
-
#USER_GID = "1000";
257
257
-
USER = "git";
258
258
-
GITEA_CUSTOM = "/data/gitea";
259
259
-
};
260
260
-
volumes = [
261
261
-
"/home/volumes/gitea/data:/data"
262
262
-
"/etc/timezone:/etc/timezone:ro"
263
263
-
"/etc/localtime:/etc/localtime:ro"
264
264
-
];
265
265
-
};
249
249
+
# virtualisation.oci-containers.containers = {
250
250
+
# "gitea" = {
251
251
+
# autoStart = true;
252
252
+
# image = "gitea/gitea";
253
253
+
# ports = [ "32769:22" "32768:3000"];
254
254
+
# environment = {
255
255
+
# #USER_UID = "1000";
256
256
+
# #USER_GID = "1000";
257
257
+
# USER = "git";
258
258
+
# GITEA_CUSTOM = "/data/gitea";
259
259
+
# };
260
260
+
# volumes = [
261
261
+
# "/home/volumes/gitea/data:/data"
262
262
+
# "/etc/timezone:/etc/timezone:ro"
263
263
+
# "/etc/localtime:/etc/localtime:ro"
264
264
+
# ];
265
265
+
# };
266
266
267
267
#"freshrss" = {
268
268
# autoStart = true;
···
273
273
#};
274
274
275
275
276
276
-
};
276
276
+
# };
277
277
278
278
279
279
# Some programs need SUID wrappers, can be configured further or are
+21
sys/default.nix
···
5
5
experimental-features = ["nix-command" "flakes"];
6
6
};
7
7
};
8
8
+
9
9
+
time.timeZone = "America/New_York";
10
10
+
11
11
+
i18n = {
12
12
+
defaultLocale = "en_US.UTF-8";
13
13
+
14
14
+
extraLocaleSettings = {
15
15
+
LC_ADDRESS = "en_US.UTF-8";
16
16
+
LC_IDENTIFICATION = "en_US.UTF-8";
17
17
+
LC_MEASUREMENT = "en_US.UTF-8";
18
18
+
LC_MONETARY = "en_US.UTF-8";
19
19
+
LC_NAME = "en_US.UTF-8";
20
20
+
LC_NUMERIC = "en_US.UTF-8";
21
21
+
LC_PAPER = "en_US.UTF-8";
22
22
+
LC_TELEPHONE = "en_US.UTF-8";
23
23
+
LC_TIME = "en_US.UTF-8";
24
24
+
25
25
+
};
26
26
+
};
27
27
+
28
28
+
boot.supportedFilesystems = [ "ntfs" ];
8
29
}
+42
-26
sys/desktop.nix
···
4
4
# ./hw-confs/desktop.nix
5
5
# ];
6
6
7
7
-
# boot.loader = {
8
8
-
# systemd-boot.enable = true;
9
9
-
# efi.canTouchEfiVariables = true;
10
10
-
# };
7
7
+
imports = [
8
8
+
./filesystems.nix
9
9
+
./virt.nix
10
10
+
];
11
11
12
12
-
# networking = {
13
13
-
# hostName = "Emerald";
14
14
-
# networkmanager.enable = true;
15
15
-
# };
16
16
-
17
17
-
# time.timeZone = "America/New_York";
12
12
+
boot.loader = {
13
13
+
systemd-boot.enable = true;
14
14
+
efi.canTouchEfiVariables = true;
15
15
+
};
18
16
19
19
-
# i18n = {
20
20
-
# defaultLocale = "en_US.UTF-8";
17
17
+
networking = {
18
18
+
hostName = "Emerald";
19
19
+
networkmanager.enable = true;
20
20
+
};
21
21
22
22
-
# extraLocaleSettings = {
23
23
-
# LC_ADDRESS = "en_US.UTF-8";
24
24
-
# LC_IDENTIFICATION = "en_US.UTF-8";
25
25
-
# LC_MEASUREMENT = "en_US.UTF-8";
26
26
-
# LC_MONETARY = "en_US.UTF-8";
27
27
-
# LC_NAME = "en_US.UTF-8";
28
28
-
# LC_NUMERIC = "en_US.UTF-8";
29
29
-
# LC_PAPER = "en_US.UTF-8";
30
30
-
# LC_TELEPHONE = "en_US.UTF-8";
31
31
-
# LC_TIME = "en_US.UTF-8";
32
32
-
33
33
-
# };
34
34
-
# };
22
22
+
# pipewire
23
23
+
hardware.pulseaudio.enable = false;
24
24
+
security.rtkit.enable = true;
25
25
+
services.pipewire = {
26
26
+
enable = true;
27
27
+
alsa.enable = true;
28
28
+
alsa.support32Bit = true;
29
29
+
pulse.enable = true;
30
30
+
# If you want to use JACK applications, uncomment this
31
31
+
#jack.enable = true;
35
32
36
36
-
33
33
+
# use the example session manager (no others are packaged yet so this is enabled by default,
34
34
+
# no need to redefine it in your config for now)
35
35
+
#media-session.enable = true;
36
36
+
};
37
37
+
38
38
+
hardware.graphics = {
39
39
+
enable = true;
40
40
+
};
41
41
+
42
42
+
services.xserver.videoDrivers = ["nvidia"];
43
43
+
hardware.nvidia = {
44
44
+
modesetting.enable = true;
45
45
+
powerManagement.enable = false;
46
46
+
powerManagement.finegrained = false;
47
47
+
open = false;
48
48
+
nvidiaSettings = true;
49
49
+
50
50
+
package = config.boot.kernelPackages.nvidiaPackages.stable;
51
51
+
};
52
52
+
37
53
environment.systemPackages = with pkgs; [
38
54
figlet
39
55
lolcat
+12
sys/filesystems.nix
···
1
1
+
{
2
2
+
fileSystems."/mnt/BiggusDiskus" = {
3
3
+
device = "/dev/nvme0n1p2";
4
4
+
fsType = "ntfs-3g";
5
5
+
options = [
6
6
+
"users"
7
7
+
"nofail"
8
8
+
"rw"
9
9
+
"exec"
10
10
+
];
11
11
+
};
12
12
+
}
+20
sys/virt.nix
···
1
1
+
{
2
2
+
virtualisation.oci-containers.containers = {
3
3
+
"gitea" = {
4
4
+
autoStart = true;
5
5
+
image = "gitea/gitea";
6
6
+
ports = [ "32769:22" "32768:3000"];
7
7
+
environment = {
8
8
+
#USER_UID = "1000";
9
9
+
#USER_GID = "1000";
10
10
+
USER = "git";
11
11
+
GITEA_CUSTOM = "/data/gitea";
12
12
+
};
13
13
+
volumes = [
14
14
+
"/home/volumes/gitea/data:/data"
15
15
+
"/etc/timezone:/etc/timezone:ro"
16
16
+
"/etc/localtime:/etc/localtime:ro"
17
17
+
];
18
18
+
};
19
19
+
};
20
20
+
}