blob: c1496e0425bb4067bca065c239b225ac5244a6f1 (
plain)
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
|
{
config,
lib,
pkgs,
inputs,
...
}: {
imports = [
./hardware-configuration.nix
../../profiles/graphical.nix
../../mixins/tailscale.nix
../../mixins/cli.nix
../../mixins/greet.nix
../../mixins/sway.nix
../../mixins/pipewire.nix
../../mixins/multimedia.nix
../../mixins/syncthing.nix
];
config = {
boot = {
tmp.cleanOnBoot = true;
initrd = {
supportedFilesystems = ["btrfs"];
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "usbhid" "snd_usb_audio" "hid_logitech_dj" "hid_logitech_hidpp"];
};
supportedFilesystems = ["ntfs"];
kernelModules = ["kvm-intel" "snd-seq" "snd-rawmidi" "bridge"];
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
# extraModulePackages = [ config.boot.kernelPackages.rtl8821ce ];
loader = {
systemd-boot = {
enable = true;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
};
time.timeZone = lib.mkDefault "Israel";
zramSwap = {
enable = true;
algorithm = "zstd";
};
networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
# # iwd networking stuffs
# networking.networkmanager.enable = lib.mkForce false;
# networking.wireless.iwd.enable = true;
# services.connman = {
# enable = true;
# wifi.backend = "iwd";
# };
# networking.wireless.dbusControlled = true;
# home-manager.users.tzlil.home.packages = [pkgs.cmst];
# networking.wireless.userControlled.enable = true;
# networking.wireless.enable = true;
# services.connman.enable = true;
# services.tor = {
# enable = true;
# openFirewall = true;
# client.enable = true;
# torsocks.enable = true;
# };
environment.persistence."/nix/persist".directories = [
"/etc/NetworkManager/system-connections"
{
directory = "/home/tzlil/.config/SchildiChat";
user = "tzlil";
group = "users";
}
{
directory = "/home/tzlil/.local/share/Terraria";
user = "tzlil";
group = "users";
}
{
directory = "/home/tzlil/.local/share/Steam";
user = "tzlil";
group = "users";
}
"/var/lib/docker"
];
home-manager.users.tzlil = {
home.packages = [pkgs.schildichat-desktop-wayland pkgs.keepassxc pkgs.gtkcord4];
programs.qutebrowser = {
enable = true;
settings.colors.webpage.darkmode.enabled = true;
};
};
programs.steam.enable = true;
programs.firejail.wrappedBinaries = {
mullvad-browser = {
executable = lib.getExe pkgs.mullvad-browser;
extraArgs = [
"--env=MOZ_ENABLE_WAYLAND=1"
"--env=GTK_THEME=Adwaita:dark"
];
# profile = "${pkgs.firejail}/etc/firejail/firefox.profile";
};
};
# greeter.initialSession = "${pkgs.fish}/bin/fish";
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [rocm-opencl-icd rocm-opencl-runtime];
driSupport = true;
driSupport32Bit = true;
};
networking.firewall.allowedTCPPorts = [25565];
services = {
power-profiles-daemon.enable = true;
thermald.enable = true;
tlp = {
settings = {
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
};
};
acpid.enable = true;
};
services.blueman.enable = true;
virtualisation.docker.enable = true;
virtualisation.docker.storageDriver = "btrfs";
};
}
|