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

View file

@ -52,6 +52,7 @@ in
man = enabled; man = enabled;
ncmpcpp = enabled; ncmpcpp = enabled;
neo = enabled; neo = enabled;
nh = enabled;
rbw = enabled; rbw = enabled;
ripgrep = enabled; ripgrep = enabled;
ssh = 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";
};
}