This repository has no description
3.2 kB
118 lines
1{
2 self,
3 config,
4 pkgs,
5 ...
6}:
7
8{
9 imports = [
10 ../../2configs
11 ../../2configs/retiolum.nix
12 ../../2configs/tpm2.nix
13 # ../../2configs/baseX.nix
14 ../../2configs/desktops/sway/default.nix
15 self.wrapperModules.workspace-manager
16 # ../../2configs/desktops/xmonad
17 ../../2configs/power-action.nix
18 ../../2configs/yubikey.nix
19 ../../2configs/pipewire.nix
20 ../../2configs/udisks.nix
21 ../../2configs/browsers.nix
22 ../../2configs/network-manager.nix
23 ../../2configs/syncthing.nix
24 # ../../2configs/games.nix
25 ../../2configs/steam.nix
26 # ../../2configs/wine.nix
27 ../../2configs/yellow-mounts/samba.nix
28 ../../2configs/pass.nix
29 ../../2configs/mail.nix
30 ../../2configs/printing
31 ../../2configs/auto-timezone.nix
32 # ../../2configs/bitcoin.nix
33 ../../2configs/review.nix
34 ../../2configs/dunst.nix
35 ../../2configs/yggdrasil.nix
36 ../../2configs/container-tests.nix
37 ../../2configs/rad.nix
38 ../../2configs/herdr.nix
39 # ../../2configs/sunshine.nix
40 # ../../2configs/br.nix
41 # ../../2configs/c-base.nix
42 ];
43
44 system.stateVersion = "23.11";
45
46 krebs.build.host = config.krebs.hosts.ignavia;
47
48 nix.settings.trusted-users = [
49 "root"
50 "lass"
51 ];
52
53 services.tor = {
54 enable = true;
55 client.enable = true;
56 };
57
58 lass.workspace-manager.enable = true;
59
60 # Suspend on power button press instead of shutting down.
61 services.logind.settings.Login.HandlePowerKey = "suspend";
62
63 # Auto-GC during builds when store free space drops below 10 GB,
64 # freeing down to 20 GB free. (gc.automatic is off for ignavia.)
65 nix.settings.min-free = 10240 * 1024 * 1024;
66 nix.settings.max-free = 20480 * 1024 * 1024;
67
68 # Framework 13 panel (2256x1504). wlroots' HiDPI heuristic auto-picks
69 # scale 2 on every sway start, which is far too large. Pin the internal
70 # panel to 1.0; external outputs keep sway's default.
71 environment.etc."sway/config.d/scale.conf".text = ''
72 output eDP-1 scale 1
73 '';
74
75 documentation.nixos.enable = true;
76 boot.binfmt.emulatedSystems = [
77 "aarch64-linux"
78 ];
79
80 boot.tmp.cleanOnBoot = true;
81 programs.noisetorch.enable = true;
82
83 environment.systemPackages = [
84 pkgs.android-tools
85 pkgs.gh
86 self.packages.${pkgs.system}.bank
87 pkgs.ddcutil
88 pkgs.mycelium
89 pkgs.tmate
90 pkgs.rbw
91 ];
92
93 krebs.hosts.styx.nets.retiolum.tinc.extraConfig = "Address = 10.42.0.1 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}