tangled
alpha
login
or
join now
m1emi1em.dev
/
nixos-flake
1
fork
atom
Personal NixOS flake
1
fork
atom
overview
issues
pulls
pipelines
clean up configuration.nix, move docker to virt.nix
m1emi1em.dev
1 year ago
18735195
8270b198
+27
-125
2 changed files
expand all
collapse all
unified
split
configuration.nix
sys
virt.nix
-110
configuration.nix
···
5
5
{ config, lib, pkgs, ... }:
6
6
7
7
{
8
8
-
# imports =
9
9
-
# [ # Include the results of the hardware scan.
10
10
-
# ./hardware-configuration.nix
11
11
-
# ];
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
-
# };
20
20
-
21
21
-
22
22
-
# Bootloader.
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.
27
27
-
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
28
28
-
29
29
-
# Configure network proxy if necessary
30
30
-
# networking.proxy.default = "http://user:password@proxy:port/";
31
31
-
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
32
32
-
33
33
-
# Enable networking
34
34
-
#networking.networkmanager.enable = true;
35
35
-
36
36
-
# Set your time zone.
37
37
-
# time.timeZone = "America/New_York";
38
38
-
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
-
# };
53
53
-
54
8
# Enable the X11 windowing system.
55
9
# You can disable this if you're only using the Wayland session.
56
10
services.xserver.enable = true;
···
67
21
68
22
# Enable CUPS to print documents.
69
23
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;
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
-
# };
86
86
-
87
87
-
#services.pipewire.extraConfig.pipewire."92-low-latency" = {
88
88
-
# "context.properties" = {
89
89
-
#"default.clock.rate" = 48000;
90
90
-
#"default.clock.quantum" = 2048;
91
91
-
# "default.clock.min-quantum" = 1024;
92
92
-
#"default.clock.max-quantum" = 2048;
93
93
-
# };
94
94
-
#};
95
95
-
96
96
-
# services.pipewire.extraConfig.pipewire-pulse."92-low-latency" = {
97
97
-
# context.modules = [
98
98
-
# {
99
99
-
# name = "libpipewire-module-protocol-pulse";
100
100
-
# args = {
101
101
-
# pulse.min.req = "768/48000";
102
102
-
# pulse.default.req = "768/48000";
103
103
-
# pulse.max.req = "768/48000";
104
104
-
# pulse.min.quantum = "768/48000";
105
105
-
# pulse.max.quantum = "768/48000";
106
106
-
# };
107
107
-
# }
108
108
-
# ];
109
109
-
# stream.properties = {
110
110
-
# node.latency = "768/48000";
111
111
-
# resample.quality = 1;
112
112
-
# };
113
113
-
# };
114
114
-
115
115
-
# Containers
116
116
-
virtualisation = {
117
117
-
118
118
-
# Docker
119
119
-
docker = {
120
120
-
enable = true;
121
121
-
liveRestore = false;
122
122
-
123
123
-
daemon.settings = {
124
124
-
data-root = "/docker";
125
125
-
};
126
126
-
127
127
-
# rootless = {
128
128
-
# enable = true;
129
129
-
# setSocketVariable = true;
130
130
-
#};
131
131
-
132
132
-
};
133
133
-
};
134
24
135
25
# Enable touchpad support (enabled default in most desktopManager).
136
26
# services.xserver.libinput.enable = true;
+27
-15
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";
2
2
+
virtualisation = {
3
3
+
4
4
+
docker = {
5
5
+
enable = true;
6
6
+
liveRestore = false;
7
7
+
daemon.settings = {
8
8
+
data-root = "/docker";
12
9
};
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
-
];
10
10
+
};
11
11
+
12
12
+
# Could/should probs make these their own modules too tbh
13
13
+
oci-containers.containers = {
14
14
+
"gitea" = {
15
15
+
autoStart = true;
16
16
+
image = "gitea/gitea";
17
17
+
ports = [ "32769:22" "32768:3000"];
18
18
+
environment = {
19
19
+
#USER_UID = "1000";
20
20
+
#USER_GID = "1000";
21
21
+
USER = "git";
22
22
+
GITEA_CUSTOM = "/data/gitea";
23
23
+
};
24
24
+
volumes = [
25
25
+
"/home/volumes/gitea/data:/data"
26
26
+
"/etc/timezone:/etc/timezone:ro"
27
27
+
"/etc/localtime:/etc/localtime:ro"
28
28
+
];
29
29
+
};
18
30
};
19
31
};
20
32
}