addded kitty and fixed dwm
This commit is contained in:
parent
30c20454ee
commit
d8055d665b
11 changed files with 87 additions and 14 deletions
|
@ -3,6 +3,7 @@ _: {
|
|||
./git.nix
|
||||
./starship.nix
|
||||
./zsh.nix
|
||||
./neovim.nix
|
||||
./neovim.nix
|
||||
./fish.nix
|
||||
];
|
||||
}
|
||||
|
|
66
modules/cli/fish.nix
Normal file
66
modules/cli/fish.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: with lib; let
|
||||
cfg = config.modules.programs.fish;
|
||||
username = config.modules.other.system.username;
|
||||
in {
|
||||
options.modules.programs.fish = {
|
||||
enable = mkEnableOption "fish";
|
||||
extraAliases = mkOption {
|
||||
type = types.attrs;
|
||||
description = "extra shell aliases";
|
||||
default = {};
|
||||
};
|
||||
profiling = mkOption {
|
||||
type = types.bool;
|
||||
description = "enable zsh profiling";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.fish.enable = true;
|
||||
|
||||
users.users.${username}.shell = pkgs.fish;
|
||||
|
||||
environment = {
|
||||
shells = [ pkgs.fish ];
|
||||
pathsToLink = [ "/share/fish" ];
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = "set fish_greeting";
|
||||
plugins = [
|
||||
];
|
||||
shellAliases = {
|
||||
cl = "clear";
|
||||
cp = "cp -ivr";
|
||||
mv = "mv -iv";
|
||||
rm = "trash -v";
|
||||
l = "eza -a --icons";
|
||||
e = "eza -lha --icons --git";
|
||||
untar = "tar -xvf";
|
||||
untargz = "tar -xzf";
|
||||
mnt = "udisksctl mount -b";
|
||||
umnt = "udisksctl unmount -b";
|
||||
v = "nvim";
|
||||
kys = "shutdown now";
|
||||
gpl = "curl https://www.gnu.org/licenses/gpl-3.0.txt -o LICENSE";
|
||||
agpl = "curl https://www.gnu.org/licenses/agpl-3.0.txt -o LICENSE";
|
||||
g = "git";
|
||||
gs = "g stash";
|
||||
n = "nix";
|
||||
woman = "man";
|
||||
open = "xdg-open";
|
||||
":q" = "exit";
|
||||
emacs = ":(){ :|:& };:";
|
||||
} // cfg.extraAliases;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
config,
|
||||
pkgs, config,
|
||||
...
|
||||
}: let
|
||||
username = config.modules.other.system.username;
|
||||
|
@ -36,6 +36,13 @@ in {
|
|||
svn = "svn --config-dir ${hmCfg.xdg.configHome}/subversion";
|
||||
wget = "wget --hsts-file=\"${hmCfg.xdg.dataHome}/wget-hsts\"";
|
||||
};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users.${username} = {
|
||||
xdg.configFile."npm/npmrc".text = ''
|
||||
prefix=${hmCfg.xdg.dataHome}/npm
|
||||
|
@ -110,6 +117,7 @@ in {
|
|||
"text/plain" = [ text_editor ];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue