yeah
This commit is contained in:
parent
daebfce2e7
commit
609af95915
|
@ -94,6 +94,7 @@
|
||||||
search.enable = true;
|
search.enable = true;
|
||||||
switch-to-configuration-ng.enable = true;
|
switch-to-configuration-ng.enable = true;
|
||||||
nh.enable = true;
|
nh.enable = true;
|
||||||
|
tree.enable = true
|
||||||
};
|
};
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
|
|
|
@ -114,6 +114,8 @@
|
||||||
switch-to-configuration-ng.enable = true;
|
switch-to-configuration-ng.enable = true;
|
||||||
# better cli
|
# better cli
|
||||||
nh.enable = true;
|
nh.enable = true;
|
||||||
|
# tree
|
||||||
|
tree.enable = true;
|
||||||
};
|
};
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
|
|
|
@ -4,5 +4,6 @@
|
||||||
./optimization.nix
|
./optimization.nix
|
||||||
./switch-to-configuration-ng.nix
|
./switch-to-configuration-ng.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
|
./nix-tree.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
14
modules/shell/nix/nix-tree.nix
Normal file
14
modules/shell/nix/nix-tree.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ inputs, options, config, lib, pkgs, ...}:
|
||||||
|
let cfg = config.modules.shell.nix.tree;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.shell.nix.tree = {
|
||||||
|
enable = lib.mkEnableOption false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
users.users.sako.packages = with pkgs; [
|
||||||
|
nix-tree
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -41,6 +41,7 @@ in {
|
||||||
shell = "nix shell";
|
shell = "nix shell";
|
||||||
run = "nix run";
|
run = "nix run";
|
||||||
cleanup = "sudo nix-collect-garbage --delete-older-than 3d && nix-collect-garbage -d";
|
cleanup = "sudo nix-collect-garbage --delete-older-than 3d && nix-collect-garbage -d";
|
||||||
|
current-system-tree = "nix-tree /nix/var/nix/profiles/system";
|
||||||
};
|
};
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue