This commit is contained in:
Sakooooo 2024-09-01 12:15:52 +04:00
parent daebfce2e7
commit 609af95915
Signed by: sako
GPG key ID: FE52FD65B76E4751
5 changed files with 19 additions and 0 deletions

View file

@ -94,6 +94,7 @@
search.enable = true;
switch-to-configuration-ng.enable = true;
nh.enable = true;
tree.enable = true
};
zsh.enable = true;
tmux.enable = true;

View file

@ -114,6 +114,8 @@
switch-to-configuration-ng.enable = true;
# better cli
nh.enable = true;
# tree
tree.enable = true;
};
zsh.enable = true;
tmux.enable = true;

View file

@ -4,5 +4,6 @@
./optimization.nix
./switch-to-configuration-ng.nix
./nh.nix
./nix-tree.nix
];
}

View 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
];
};
}

View file

@ -41,6 +41,7 @@ in {
shell = "nix shell";
run = "nix run";
cleanup = "sudo nix-collect-garbage --delete-older-than 3d && nix-collect-garbage -d";
current-system-tree = "nix-tree /nix/var/nix/profiles/system";
};
plugins = [
{