feat(home): nh

This commit is contained in:
punkfairie 2024-11-18 21:17:03 -08:00
parent a5bbca6c24
commit 10f8586a59
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 26 additions and 2 deletions

View file

@ -4,7 +4,7 @@ default:
alias dh := deployhome
[group('home')]
deployhome user=env_var('USER'):
home-manager switch -b bak --flake .#marley@nyx
nh home switch -c marley@nyx -b bak
[group('home')]
refreshhome:
@ -19,4 +19,4 @@ updatejust this:
alias gc := collectgarbage
collectgarbage:
nix-collect-garbage -d
nh clean all

View file

@ -52,6 +52,7 @@ in
man = enabled;
ncmpcpp = enabled;
neo = enabled;
nh = enabled;
rbw = enabled;
ripgrep = enabled;
ssh = enabled;

View file

@ -0,0 +1,23 @@
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkEnableOption mkIf mkDefault;
cfg = config.marleyos.programs.nh;
home = config.home.homeDirectory;
in
{
options.marleyos.programs.nh.enable = mkEnableOption "nh";
config = mkIf cfg.enable {
home.packages = with pkgs; [
nh
];
home.sessionVariables.FLAKE = mkDefault "${home}/marleyos";
};
}