-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.nix
More file actions
160 lines (132 loc) · 3.54 KB
/
configuration.nix
File metadata and controls
160 lines (132 loc) · 3.54 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{ config, lib, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 10;
boot.loader.efi.canTouchEfiVariables = true;
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.luks.devices = {
crypted = {
device = "/dev/disk/by-uuid/3e8a24ba-0b3d-46f4-90d9-b24659119af6";
preLVM = true;
};
};
hardware.amdgpu.opencl.enable = true;
hardware.logitech.wireless = {
enable = true;
enableGraphical = true;
};
environment.etc."libinput/local-overrides.quirks".text = ''
[Logitech G502 Lightspeed]
MatchUdevType=mouse
MatchName=*G502*
AttrEventCode=-REL_WHEEL_HI_RES;-REL_HWHEEL_HI_RES
'';
i18n.inputMethod = {
enable = true;
type = "ibus";
ibus.engines = with pkgs.ibus-engines; [ anthy ];
};
environment.systemPackages = [ pkgs.libinput pkgs.gtk3 ];
fonts.packages = with pkgs; [
nerd-fonts.jetbrains-mono
noto-fonts-cjk-sans
noto-fonts-cjk-serif
];
services = {
fwupd.enable = true;
mullvad-vpn.enable = true;
};
nixpkgs.config = {
allowUnfree = true;
rocmSupport = true;
};
users.users = {
emneo = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "docker" "libvirtd" "input" ];
initialPassword = "kanker";
};
sev = {
isNormalUser = true;
initialPassword = "kanker";
packages = with pkgs; [
uv
b3sum
rar
rclone
aria2
apprise
croc
tmux
jq
btop
htop
ncdu
sabnzbd
bc
openssl
tinyxxd
mediainfo
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFHKpgVYo7LkLjbaKhyEDRnsZhMu2NcIrMlkeqC1G0l/"
];
};
};
services.flatpak.enable = true;
systemd.services.flatpak-repo = {
wantedBy = [ "multi-user.target" ];
path = [ pkgs.flatpak ];
script = ''
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
'';
};
services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
services.gnome.gnome-keyring.enable = true;
i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "Europe/Paris";
networking.hostName = "tachyon";
documentation.dev.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 15d";
};
nix.optimise.automatic = true;
networking.networkmanager.enable = true;
services.sshd.enable = true;
networking.hosts = {
"192.168.100.193" = [ "kbox.local" "traefik.kbox.local" "longhorn.kbox.local" "whoami.kbox.local" ];
};
virtualisation.docker.enable = true;
virtualisation.libvirtd.enable = true;
services.pipewire.extraConfig.pipewire."99-voice-changer-sink" = {
"context.objects" = [
{
factory = "adapter";
args = {
"factory.name" = "support.null-audio-sink";
"node.name" = "VoiceChangerSink";
"node.description" = "Voice Changer Virtual Sink";
"media.class" = "Audio/Sink";
"audio.channels" = 2;
"audio.position" = [ "FL" "FR" ];
};
}
];
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
programs.virt-manager.enable = true;
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 8080 ];
};
system.stateVersion = "25.11";
}