This repository has no description
3.2 kB
118 lines
1{
2 self,
3 config,
4 pkgs,
5 ...
6}:
7
8{
9 imports = [
10 ../../configs
11 ../../configs/retiolum.nix
12 ../../configs/tpm2.nix
13 ../../configs/phonetpm.nix
14 # ../../configs/baseX.nix
15 ../../configs/desktops/sway/default.nix
16 self.wrapperModules.workspace-manager
17 # ../../configs/desktops/xmonad
18 ../../configs/power-action.nix
19 ../../configs/yubikey.nix
20 ../../configs/pipewire.nix
21 ../../configs/udisks.nix
22 ../../configs/browsers.nix
23 ../../configs/network-manager.nix
24 ../../configs/syncthing.nix
25 # ../../configs/games.nix
26 ../../configs/steam.nix
27 # ../../configs/wine.nix
28 ../../configs/yellow-mounts/samba.nix
29 ../../configs/pass.nix
30 ../../configs/mail.nix
31 ../../configs/printing
32 ../../configs/auto-timezone.nix
33 # ../../configs/bitcoin.nix
34 ../../configs/review.nix
35 ../../configs/dunst.nix
36 ../../configs/yggdrasil.nix
37 ../../configs/container-tests.nix
38 ../../configs/rad.nix
39 ../../configs/herdr.nix
40 ../../configs/tablet-screen.nix
41 # ../../configs/br.nix
42 # ../../configs/c-base.nix
43 ];
44
45 system.stateVersion = "23.11";
46
47 krebs.build.host = config.krebs.hosts.ignavia;
48
49 nix.settings.trusted-users = [
50 "root"
51 "lass"
52 ];
53
54 services.tor = {
55 enable = true;
56 client.enable = true;
57 };
58
59 lass.workspace-manager.enable = true;
60
61 # Suspend on power button press instead of shutting down.
62 services.logind.settings.Login.HandlePowerKey = "suspend";
63
64 # Auto-GC during builds when store free space drops below 10 GB,
65 # freeing down to 20 GB free. (gc.automatic is off for ignavia.)
66 nix.settings.min-free = 10240 * 1024 * 1024;
67 nix.settings.max-free = 20480 * 1024 * 1024;
68
69 # Framework 13 panel (2256x1504). wlroots' HiDPI heuristic auto-picks
70 # scale 2 on every sway start, which is far too large. Pin the internal
71 # panel to 1.0; external outputs keep sway's default.
72 environment.etc."sway/config.d/scale.conf".text = ''
73 output eDP-1 scale 1
74 '';
75
76 documentation.nixos.enable = true;
77 boot.binfmt.emulatedSystems = [
78 "aarch64-linux"
79 ];
80
81 boot.tmp.cleanOnBoot = true;
82 programs.noisetorch.enable = true;
83
84 environment.systemPackages = [
85 pkgs.android-tools
86 pkgs.gh
87 self.packages.${pkgs.system}.bank
88 pkgs.ddcutil
89 pkgs.mycelium
90 pkgs.rbw
91 ];
92
93 krebs.hosts.styx.nets.retiolum.tinc.extraConfig = "Address = 10.42.0.3 655";
94
95 virtualisation.podman.enable = true;
96
97 hardware.keyboard.qmk.enable = true;
98 hardware.xpadneo.enable = true;
99 hardware.bluetooth.settings.General = {
100 # Xbox Wireless Controllers fail LE authentication without these:
101 # JustWorksRepairing lets bluez accept fresh pairings without manual remove,
102 # Privacy = device makes the host use a static address so the controller's
103 # bond key doesn't get invalidated by RPA rotation.
104 JustWorksRepairing = "always";
105 Privacy = "device";
106 };
107 users.users.mainUser.extraGroups = [
108 "wireshark"
109 "i2c"
110 ];
111 users.groups.i2c = { };
112 programs.wireshark.enable = true;
113 programs.wireshark.package = pkgs.wireshark-qt;
114
115 services.udev.packages = [ pkgs.libmtp.out ];
116
117 systemd.services.nix-daemon.environment.SSH_AUTH_SOCK = "/run/user/1000/ssh-tpm-agent.sock";
118}