feat(sleep-or-die): fix my sleep schedule

This commit is contained in:
Artur Manuel 2025-02-24 02:50:37 +00:00
commit 6d555ec898
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
9 changed files with 141 additions and 5 deletions

23
hosts/shared/nushell.nix Normal file
View file

@ -0,0 +1,23 @@
{
lib,
pkgs,
config,
...
}: let
cfg = config.alqueva.shells.nushell;
in {
options.alqueva.shells.nushell = {
enable = lib.mkEnableOption "Nushell";
package = lib.mkPackageOption pkgs "nushell" {};
};
config = lib.mkIf cfg.enable {
environment = {
systemPackages = [cfg.package];
shells = [
(lib.getExe' cfg.package "nu")
"/run/current-system/sw/bin/nu"
];
};
};
}