This repository has no description
3.2 kB
117 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/sunshine.nix
39 # ../../2configs/br.nix
40 # ../../2configs/c-base.nix
41 ];
42
43 system.stateVersion = "23.11";
44
45 krebs.build.host = config.krebs.hosts.ignavia;
46
47 nix.settings.trusted-users = [
48 "root"
49 "lass"
50 ];
51
52 services.tor = {
53 enable = true;
54 client.enable = true;
55 };
56
57 lass.workspace-manager.enable = true;
58
59 # Suspend on power button press instead of shutting down.
60 services.logind.settings.Login.HandlePowerKey = "suspend";
61
62 # Auto-GC during builds when store free space drops below 10 GB,
63 # freeing down to 20 GB free. (gc.automatic is off for ignavia.)
64 nix.settings.min-free = 10240 * 1024 * 1024;
65 nix.settings.max-free = 20480 * 1024 * 1024;
66
67 # Framework 13 panel (2256x1504). wlroots' HiDPI heuristic auto-picks
68 # scale 2 on every sway start, which is far too large. Pin the internal
69 # panel to 1.0; external outputs keep sway's default.
70 environment.etc."sway/config.d/scale.conf".text = ''
71 output eDP-1 scale 1
72 '';
73
74 documentation.nixos.enable = true;
75 boot.binfmt.emulatedSystems = [
76 "aarch64-linux"
77 ];
78
79 boot.tmp.cleanOnBoot = true;
80 programs.noisetorch.enable = true;
81
82 environment.systemPackages = [
83 pkgs.android-tools
84 pkgs.gh
85 self.packages.${pkgs.system}.bank
86 pkgs.ddcutil
87 pkgs.mycelium
88 pkgs.tmate
89 pkgs.rbw
90 ];
91
92 krebs.hosts.styx.nets.retiolum.tinc.extraConfig = "Address = 10.42.0.1 655";
93
94 virtualisation.podman.enable = true;
95
96 hardware.keyboard.qmk.enable = true;
97 hardware.xpadneo.enable = true;
98 hardware.bluetooth.settings.General = {
99 # Xbox Wireless Controllers fail LE authentication without these:
100 # JustWorksRepairing lets bluez accept fresh pairings without manual remove,
101 # Privacy = device makes the host use a static address so the controller's
102 # bond key doesn't get invalidated by RPA rotation.
103 JustWorksRepairing = "always";
104 Privacy = "device";
105 };
106 users.users.mainUser.extraGroups = [
107 "wireshark"
108 "i2c"
109 ];
110 users.groups.i2c = { };
111 programs.wireshark.enable = true;
112 programs.wireshark.package = pkgs.wireshark-qt;
113
114 services.udev.packages = [ pkgs.libmtp.out ];
115
116 systemd.services.nix-daemon.environment.SSH_AUTH_SOCK = "/run/user/1000/ssh-tpm-agent.sock";
117}