From eb9ca5e5e1845e44fe34a86230c36342abc3e0a7 Mon Sep 17 00:00:00 2001 From: Timo Boomers Date: Fri, 2 May 2025 08:57:22 +0200 Subject: [PATCH] Added nushell --- hosts/ti-clt-lpt01/default.nix | 9 +++++-- hosts/ti-clt-lpt01/home.nix | 1 + modules/home/applications/nushell.nix | 37 +++++++++++++++++++++++++++ modules/home/default.nix | 1 + 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 modules/home/applications/nushell.nix diff --git a/hosts/ti-clt-lpt01/default.nix b/hosts/ti-clt-lpt01/default.nix index f40f9d9..4d89f77 100644 --- a/hosts/ti-clt-lpt01/default.nix +++ b/hosts/ti-clt-lpt01/default.nix @@ -53,7 +53,12 @@ # Enable host networking.hosts = { - "127.0.0.1" = [ "adguard.timo.bmrs.nl" "git.timo.bmrs.nl" "auth.timo.bmrs.nl" "ldap.timo.bmrs.nl" "dozzle.timo.bmrs.nl" "home.timo.bmrs.nl" "immich.timo.bmrs.nl" "paperless.timo.bmrs.nl" "search.timo.bmrs.nl" ]; + "127.0.0.1" = [ + "tbmrs.nl" + "auth.tbmrs.nl" + "forgejo.tbmrs.nl" + "immich.tbmrs.nl" + ]; }; # Bootloader. @@ -69,7 +74,7 @@ networking.firewall = { enable = true; - allowedTCPPorts = [ 80 443 53 ]; + allowedTCPPorts = [ 22 80 443 53 ]; allowedUDPPorts = [ 80 443 53 ]; }; diff --git a/hosts/ti-clt-lpt01/home.nix b/hosts/ti-clt-lpt01/home.nix index d231f78..a4dfb40 100644 --- a/hosts/ti-clt-lpt01/home.nix +++ b/hosts/ti-clt-lpt01/home.nix @@ -24,6 +24,7 @@ applications.thunderbird.enable = true; applications.yazi.enable = true; applications.zellij.enable = true; + applications.nushell.enable = true; services.nextcloud-sync.enable = true; diff --git a/modules/home/applications/nushell.nix b/modules/home/applications/nushell.nix new file mode 100644 index 0000000..558e242 --- /dev/null +++ b/modules/home/applications/nushell.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.settings.applications.nushell; +in { + options = { + settings.applications.nushell.enable = lib.mkOption { + type = lib.types.bool; + description = '' + Enable nushell shell + ''; + default = false; + }; + }; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + eza + bat + ]; + + programs.bash = { + enable = false; + }; + + programs.nushell = { + enable = true; + }; + + programs.starship = { + enable = true; + enableNushellIntegration = true; + }; + }; +} diff --git a/modules/home/default.nix b/modules/home/default.nix index c184e98..6f931f7 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -13,6 +13,7 @@ ./applications/thunderbird.nix ./applications/yazi.nix ./applications/zellij.nix + ./applications/nushell.nix ./services/nextcloud.nix ./services/podman.nix