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