From c67220302ad98dbd9e92d408143fe524940b35ef Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sun, 10 Nov 2024 18:09:55 +0100 Subject: [PATCH] options!! --- hosts/lambdaos/configuration.nix | 34 ++++++++++++++++---------------- hosts/lambdaos/home.nix | 13 +++++++++--- modules/applications/zsh.nix | 2 -- 3 files changed, 27 insertions(+), 22 deletions(-) diff --git a/hosts/lambdaos/configuration.nix b/hosts/lambdaos/configuration.nix index 9e1a3d8..c194de9 100644 --- a/hosts/lambdaos/configuration.nix +++ b/hosts/lambdaos/configuration.nix @@ -68,6 +68,23 @@ networking = { hostName = "lambdaOS"; # Define your hostname. networkmanager.enable = true; + # Open ports in the firewall. + firewall.allowedTCPPorts = [ + 53317 # Localsend + 7791 # Pixelflut + 38281 # Archipelago + + 22000 # syncthing + + 2283 # immich + ]; + firewall.allowedUDPPorts = [ + 53317 + 38281 # Archipelago + + 22000 # syncthing + 21027 # syncthing + ]; }; # Set your time zone. @@ -324,23 +341,6 @@ polkit.enable = true; }; - # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ - 53317 # Localsend - 7791 # Pixelflut - 38281 # Archipelago - - 22000 # syncthing - - 2283 # immich - ]; - networking.firewall.allowedUDPPorts = [ - 53317 - 38281 # Archipelago - - 22000 # syncthing - 21027 # syncthing - ]; # Or disable the firewall altogether. # networking.firewall.enable = false; diff --git a/hosts/lambdaos/home.nix b/hosts/lambdaos/home.nix index d168e17..9491514 100644 --- a/hosts/lambdaos/home.nix +++ b/hosts/lambdaos/home.nix @@ -80,15 +80,12 @@ dig mtr - obs-studio - signal-desktop btop dconf pipewire - lsd localsend blueberry @@ -187,6 +184,16 @@ programs = { home-manager.enable = true; zsh.shellAliases.bzzt = ''nix-shell -p mpv --command "mpv ~/Videos/BZZZM.mp4"''; + lsd = { + enable = true; + enableAliases = true; + }; + man.enable = true; + obs-studio.enable = true; + ssh = { + enable = true; + compression = true; + }; }; services.syncthing = { diff --git a/modules/applications/zsh.nix b/modules/applications/zsh.nix index 23dbffc..eb18486 100644 --- a/modules/applications/zsh.nix +++ b/modules/applications/zsh.nix @@ -22,8 +22,6 @@ in programs.zsh = { enable = true; shellAliases = lib.mkIf cfg.enableAliases { - ll = "lsd -l"; - lt = "lsd -l --tree"; update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos"; nb = "nix build -L"; ns = "nix shell -L";