diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-10-15 00:51:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-10-15 00:51:15 +0530 |
| commit | 32d0bd79637cdc6400798bc033c8e2149ec4c5a6 (patch) | |
| tree | df6f25cb31bb2b93a1af5104b613c96013b823b9 /configuration.nix | |
| parent | 4eb5f01f1f7a11527be56bd8a8afecd31d640b15 (diff) | |
| download | nixos-config-32d0bd79637cdc6400798bc033c8e2149ec4c5a6.tar.gz nixos-config-32d0bd79637cdc6400798bc033c8e2149ec4c5a6.zip | |
config sync
Diffstat (limited to '')
| -rw-r--r-- | configuration.nix | 55 |
1 files changed, 20 insertions, 35 deletions
diff --git a/configuration.nix b/configuration.nix index e8033df..f22cd58 100644 --- a/configuration.nix +++ b/configuration.nix @@ -24,38 +24,24 @@ in allowBroken = false; }; - services.tlp = { - enable = true; - }; + services.tlp.enable = true; services.udisks2.enable = true; programs.dconf.enable = true; - # services.borgbackup = - # let - # homeDir = config.users.users.imsohexy.home; - # user = config.users.users.imsohexy.name; - # in - # { - # jobs = { - # testBkup = { - # paths = "${homeDir}/dump/elm-worker-tmp"; - # repo = "${homeDir}/dump/backups"; - # compression = "none"; - # startAt = "weekly"; - # user = user; - # group = "users"; - # encryption = { - # mode = "none"; - # }; - # # encryption = { - # # mode = "repokey"; - # # passCommand = "pass show BorgBackup/imsohexy"; - # # }; - # }; - # }; - # }; + # Fix hmr issue? + systemd.extraConfig = ''DefaultLimitNOFILE=65536''; + systemd.user.extraConfig = ''DefaultLimitNOFILE=65536''; + boot.kernel.sysctl."fs.inotify.max_user_instances" = 8192; + security.pam.loginLimits = [ + { + domain = "*"; + type = "-"; + item = "nofile"; + value = "65536"; + } + ]; # NOTE: Enable bluetooth using this and then use bluetoothctl # hardware.bluetooth.enable = true; @@ -84,28 +70,27 @@ in # Network networking = { - hostName = "dickhead"; + hostName = "smartfridge"; firewall = { enable = true; - allowedTCPPorts = [ 8080 ]; - allowedUDPPorts = [ ]; + allowedTCPPorts = [ 8080 3000 3001 ]; + allowedUDPPorts = [ 41641 ]; }; + nameservers = [ "100.100.100.100" "8.8.8.8" "1.1.1.1" ]; + search = [ "resolve.construction" ]; networkmanager.enable = true; extraHosts = '' 127.0.0.1 phenax.local - 127.0.0.1 hasura.colabra + 127.0.0.1 field.shape-e2e.com ''; }; + services.tailscale.enable = true; services.atd.enable = true; virtualisation = { docker = { enable = true; - # autoPrune = { - # enable = true; - # flags = [ "--volumes" ]; - # }; }; lxd.enable = false; virtualbox.host.enable = false; |
