From 909799e3f2884b8dd1658c35561d62a56a13867b Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 22 Jan 2025 13:36:31 +0800 Subject: [PATCH] hosts/ni: set Nushell as default user shell for foo-dogsquared user --- configs/flake-parts/nixos.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configs/flake-parts/nixos.nix b/configs/flake-parts/nixos.nix index 738988df..6aaaf11d 100644 --- a/configs/flake-parts/nixos.nix +++ b/configs/flake-parts/nixos.nix @@ -18,6 +18,7 @@ in # This is to make an exception for Archivebox. nixpkgs.config.permittedInsecurePackages = [ + "archiver-3.5.1" "python3.12-django-3.1.14" ]; @@ -42,6 +43,19 @@ in inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate inputs.nixos-hardware.nixosModules.common-cpu-amd-raphael-igpu + + ( + { config, ... }: let + hmCfg = config.home-manager.users; + in { + # Testing out Nushell for a spinerooski. + users.users.foo-dogsquared.shell = + if hmCfg.foo-dogsquared.programs.nushell.enable then + hmCfg.foo-dogsquared.programs.nushell.package + else + "/run/current-system/sw/bin/bash"; + } + ) ]; home-manager = { branch = "home-manager-unstable";