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