hosts/ni: set Nushell as default user shell for foo-dogsquared user

This commit is contained in:
Gabriel Arazas 2025-01-22 13:36:31 +08:00
parent 788880c1e6
commit 909799e3f2
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -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";