This repository has no description
3.1 kB
144 lines
1{
2 self,
3 config,
4 pkgs,
5 ...
6}:
7
8{
9 imports = [
10 ../../2configs
11 ../../2configs/mouse.nix
12 ../../2configs/retiolum.nix
13 ../../2configs/desktops/qtile/nixos.nix
14 ../../2configs/pipewire.nix
15 ../../2configs/exim-retiolum.nix
16 ../../2configs/browsers.nix
17 ../../2configs/pass.nix
18 ../../2configs/steam.nix
19 ../../2configs/fetchWallpaper.nix
20 ../../2configs/mail.nix
21 ../../2configs/syncthing.nix
22 ../../2configs/ableton.nix
23 ../../2configs/dunst.nix
24 ../../2configs/rtl-sdr.nix
25 ../../2configs/printing
26 ../../2configs/network-manager.nix
27 ../../2configs/yellow-mounts/samba.nix
28 ../../2configs/consul.nix
29 ../../2configs/networkd.nix
30 ../../2configs/autotether.nix
31 ../../2configs/autoupdate.nix
32 {
33 krebs.iptables.tables.filter.INPUT.rules = [
34 #risk of rain
35 {
36 predicate = "-p tcp --dport 11100";
37 target = "ACCEPT";
38 }
39 #quake3
40 {
41 predicate = "-p tcp --dport 27950:27965";
42 target = "ACCEPT";
43 }
44 {
45 predicate = "-p udp --dport 27950:27965";
46 target = "ACCEPT";
47 }
48 ];
49 }
50 {
51 services.nginx = {
52 enable = true;
53 virtualHosts.default = {
54 default = true;
55 serverAliases = [
56 "localhost"
57 "${config.krebs.build.host.name}"
58 "${config.krebs.build.host.name}.r"
59 ];
60 locations."~ ^/~(.+?)(/.*)?\$".extraConfig = ''
61 alias /home/$1/public_html$2;
62 '';
63 };
64 };
65 }
66 {
67 services.redis.servers."".enable = true;
68 }
69 {
70 environment.systemPackages = [
71 self.packages.${pkgs.system}.bank
72 pkgs.adb-sync
73 pkgs.transgui
74 ];
75 }
76 {
77 services.tor = {
78 enable = true;
79 client.enable = true;
80 };
81 }
82 ];
83
84 krebs.build.host = config.krebs.hosts.mors;
85
86 environment.systemPackages = with pkgs; [
87 self.packages.${pkgs.system}.acronym
88
89 dnsutils
90 woeusb
91 (pkgs.writeDashBin "play-on" ''
92 HOST=$(echo 'styx\nshodan' | fzfmenu)
93 ssh -t "$HOST" -- mpv "$@"
94 '')
95 ];
96
97 #TODO: fix this shit
98 ##fprint stuff
99 ##sudo fprintd-enroll $USER to save fingerprints
100 #services.fprintd.enable = true;
101 #security.pam.services.sudo.fprintAuth = true;
102
103 users.extraGroups = {
104 loot = {
105 members = [
106 config.users.extraUsers.mainUser.name
107 "firefox"
108 "chromium"
109 "google"
110 "virtual"
111 ];
112 };
113 };
114
115 nixpkgs.config.android_sdk.accept_license = true;
116 programs.adb.enable = true;
117
118 # It may leak your data, but look how FAST it is!1!!
119 # https://make-linux-fast-again.com/
120 boot.kernelParams = [
121 "noibrs"
122 "noibpb"
123 "nopti"
124 "nospectre_v2"
125 "nospectre_v1"
126 "l1tf=off"
127 "nospec_store_bypass_disable"
128 "no_stf_barrier"
129 "mds=off"
130 "mitigations=off"
131 ];
132
133 boot.binfmt.emulatedSystems = [
134 "aarch64-linux"
135 ];
136
137 nix.settings.trusted-users = [
138 "root"
139 "lass"
140 ];
141
142 services.nscd.enableNsncd = true;
143
144}