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