From 786ca732aad79bfab552253dd1710fccbba18531 Mon Sep 17 00:00:00 2001 From: specCon18 Date: Wed, 10 Apr 2024 03:42:16 -0400 Subject: [PATCH] moving to code server --- hosts/katana/default.nix | 1 - hosts/katana/networkd.nix | 9 ++++-- hosts/katana/system-pkgs.nix | 2 ++ modules/system/nix-cli/default.nix | 46 +++++++++++++++--------------- 4 files changed, 31 insertions(+), 27 deletions(-) diff --git a/hosts/katana/default.nix b/hosts/katana/default.nix index 2a63afb..3c8aefd 100644 --- a/hosts/katana/default.nix +++ b/hosts/katana/default.nix @@ -10,7 +10,6 @@ sound.enable = true; hardware.pulseaudio.enable = false; security.rtkit.enable = true; - boot.plymouth.enable = true; # Localization time.timeZone = "America/Detroit"; i18n = { diff --git a/hosts/katana/networkd.nix b/hosts/katana/networkd.nix index 4f340ed..b9d9bf9 100644 --- a/hosts/katana/networkd.nix +++ b/hosts/katana/networkd.nix @@ -7,8 +7,11 @@ networkmanager.enable = true; #Enable Network Manager firewall = { checkReversePath = "loose"; - allowedTCPPorts = []; - allowedUDPPorts = []; + allowedTCPPorts = [8081]; + allowedUDPPorts = [ + 8081 + 2053 + ]; }; }; -} \ No newline at end of file +} diff --git a/hosts/katana/system-pkgs.nix b/hosts/katana/system-pkgs.nix index 8c2ad16..798ceea 100644 --- a/hosts/katana/system-pkgs.nix +++ b/hosts/katana/system-pkgs.nix @@ -1,6 +1,7 @@ { modulesPath, config, pkgs, lib, self, ... }: { environment.systemPackages = with pkgs; [ + gparted bluez blueman nerdfonts @@ -27,5 +28,6 @@ spotify zulip vscode + pkgs.python311Packages.python-kasa ]; } diff --git a/modules/system/nix-cli/default.nix b/modules/system/nix-cli/default.nix index ae7bcd8..637fd2d 100644 --- a/modules/system/nix-cli/default.nix +++ b/modules/system/nix-cli/default.nix @@ -7,10 +7,10 @@ config let # To use this feature add -j0 to any nix commad. hostName = "10.18.1.60"; - pubKey = "bob:cday7vAQb+UWE1gQOAOjqnXB8EdjkBt+/Ife/R0ylUY="; + pubKey = "bob:Ome3wEzBur1kOkifxu9ZMbfhwLgvr5J8qfOZRDdvz3Q="; in { nix = { - distributedBuilds = true; + distributedBuilds = false; settings = { trusted-public-keys = lib.mkAfter [ pubKey @@ -28,25 +28,25 @@ in { # "nix-ssh" # ]; }; - buildMachines = [ - { - inherit hostName; - protocol = "ssh-ng"; - maxJobs = 8; - systems = [ - "x86_64-linux" - "i686-linux" - ]; - supportedFeatures = [ - "big-parallel" - "nixos-test" - "kvm" - "benchmark" - ]; - sshUser = "root"; - sshKey = "/root/.ssh/id_ed25519"; - # publicHostKey = - } - ]; + # buildMachines = [ + # { + # inherit hostName; + # protocol = "ssh-ng"; + # maxJobs = 8; + # systems = [ + # "x86_64-linux" + # "i686-linux" + # ]; + # supportedFeatures = [ + # "big-parallel" + # "nixos-test" + # "kvm" + # "benchmark" + # ]; + # sshUser = "builder"; + # sshKey = "/root/.ssh/id_ed25519"; + # # publicHostKey = + # } + # ]; }; -} \ No newline at end of file +}