blob: 2b4023a0fdc1192efc211ce9485dc0d110581d90 (
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
143
144
145
146
147
148
149
|
{
config,
lib,
pkgs,
inputs,
...
}: {
imports = [
inputs.hardware.nixosModules.common-cpu-intel
inputs.hardware.nixosModules.common-gpu-intel
../../profiles/core.nix
../../profiles/user.nix
../../profiles/ssh.nix
../../profiles/graphical.nix
../../mixins/tailscale.nix
../../mixins/cli.nix
../../mixins/greet.nix
# ../../mixins/hyprland.nix
../../mixins/sway.nix
../../mixins/pipewire.nix
../../mixins/multimedia.nix
# ../../mixins/emacs
../../mixins/syncthing.nix
];
config = {
_module.args.nixinate = {
host = "100.121.226.3";
sshUser = "tzlil";
buildOn = "remote"; # valid args are "local" or "remote"
substituteOnTarget = true; # if buildOn is "local" then it will substitute on the target, "-s"
hermetic = false;
};
networking.hostName = "navi";
boot = {
initrd = {
supportedFilesystems = ["btrfs"];
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod"];
};
supportedFilesystems = ["ntfs"];
kernelModules = ["kvm-intel"];
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
# extraModulePackages = [ config.boot.kernelPackages.rtl8821ce ];
loader = {
systemd-boot = {
enable = true;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
};
hardware.firmware = [pkgs.rtw88-firmware];
time.timeZone = lib.mkDefault "Israel";
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
# hyprland doesnt compile with noexec root
options = ["defaults" "size=2G" "mode=755"];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/34CB-F158";
fsType = "vfat";
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/8a8cc550-034e-4545-a958-564779f51061";
fsType = "btrfs";
};
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;
environment.persistence."/nix/persist".directories = [
"/etc/NetworkManager/system-connections"
{
directory = "/home/tzlil/.config/SchildiChat";
user = "tzlil";
group = "users";
}
];
home-manager.users.tzlil = {
home.packages = [pkgs.schildichat-desktop pkgs.keepassxc];
programs.qutebrowser = {
enable = true;
settings.colors.webpage.darkmode.enabled = true;
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nixpkgs.config.allowUnfree = true;
hardware.enableAllFirmware = true;
# 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;
};
hardware.bluetooth.enable = true;
services.blueman.enable = true;
};
}
|