feat(home): nh
This commit is contained in:
parent
a5bbca6c24
commit
10f8586a59
3 changed files with 26 additions and 2 deletions
4
Justfile
4
Justfile
|
@ -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
|
||||
|
|
|
@ -52,6 +52,7 @@ in
|
|||
man = enabled;
|
||||
ncmpcpp = enabled;
|
||||
neo = enabled;
|
||||
nh = enabled;
|
||||
rbw = enabled;
|
||||
ripgrep = enabled;
|
||||
ssh = enabled;
|
||||
|
|
23
modules/home/programs/nh/default.nix
Normal file
23
modules/home/programs/nh/default.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue