add fish module + reformat
This commit is contained in:
@ -23,8 +23,9 @@ rec {
|
|||||||
# inputs.nixvim.homeManagerModules.nixvim
|
# inputs.nixvim.homeManagerModules.nixvim
|
||||||
];
|
];
|
||||||
|
|
||||||
|
modules = {
|
||||||
# Config my modules
|
# Config my modules
|
||||||
modules.emacs = {
|
emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pgtkNativeComp = true;
|
pgtkNativeComp = true;
|
||||||
|
|
||||||
@ -33,14 +34,16 @@ rec {
|
|||||||
doom.autoUpgrade = false; # Very volatile as the upgrade fails sometimes with bleeding edge emacs
|
doom.autoUpgrade = false; # Very volatile as the upgrade fails sometimes with bleeding edge emacs
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.firefox = {
|
firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wayland = true;
|
wayland = true;
|
||||||
vaapi = true;
|
vaapi = true;
|
||||||
disableTabBar = true;
|
disableTabBar = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.flatpak = {
|
fish.enable = true;
|
||||||
|
|
||||||
|
flatpak = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoUpdate = true;
|
autoUpdate = true;
|
||||||
autoPrune = true;
|
autoPrune = true;
|
||||||
@ -49,11 +52,9 @@ rec {
|
|||||||
spotify.enable = true;
|
spotify.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.kitty = {
|
kitty.enable = true;
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules.misc = {
|
misc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
keepass = {
|
keepass = {
|
||||||
@ -62,10 +63,11 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autostart = true;
|
autostart = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# TODO: Gnome terminal config
|
# TODO: Gnome terminal config
|
||||||
# TODO: Autostart keepass
|
# TODO: Autostart keepass
|
||||||
@ -283,77 +285,6 @@ rec {
|
|||||||
|
|
||||||
# feh.enable = true; # Use gnome apps for now
|
# feh.enable = true; # Use gnome apps for now
|
||||||
|
|
||||||
fish = {
|
|
||||||
enable = true;
|
|
||||||
# functions = {};
|
|
||||||
# plugins = [];
|
|
||||||
shellAbbrs = {
|
|
||||||
c = "clear";
|
|
||||||
q = "exit";
|
|
||||||
h = "history | bat";
|
|
||||||
r = "ranger --choosedir=$HOME/.rangerdir; set LASTDIR (cat $HOME/.rangerdir); cd $LASTDIR";
|
|
||||||
|
|
||||||
cd = "z";
|
|
||||||
cp = "cp -i";
|
|
||||||
ls = "exa --color always --group-directories-first -F --git --icons"; # color-ls
|
|
||||||
lsl = "exa --color always --group-directories-first -F -l --git --icons";
|
|
||||||
lsa = "exa --color always --group-directories-first -F -l -a --git --icons";
|
|
||||||
tre = "exa --color always --group-directories-first -F -T -L 2 ---icons";
|
|
||||||
mkd = "mkdir -p";
|
|
||||||
|
|
||||||
blk = "lsblk -o NAME,LABEL,UUID,FSTYPE,SIZE,FSUSE%,MOUNTPOINT,MODEL | bat";
|
|
||||||
fsm = "df -h | bat";
|
|
||||||
grp = "grep --color=auto -E";
|
|
||||||
fzp = "fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'";
|
|
||||||
fre = "free -m";
|
|
||||||
wat = "watch -d -c -n -0.5";
|
|
||||||
dus = "sudo dust -r";
|
|
||||||
dsi = "sudo du -sch . | bat";
|
|
||||||
prc = "procs -t";
|
|
||||||
|
|
||||||
lg = "lazygit";
|
|
||||||
gs = "git status";
|
|
||||||
gcm = "git commit -m";
|
|
||||||
ga = "git add";
|
|
||||||
glg = "git log --graph --decorate --oneline";
|
|
||||||
gcl = "git clone";
|
|
||||||
|
|
||||||
vpnat = "protonvpn-cli c --cc at";
|
|
||||||
vpnch = "protonvpn-cli c --cc ch";
|
|
||||||
vpnlu = "protonvpn-cli c --cc lu";
|
|
||||||
vpnus = "protonvpn-cli c --cc us";
|
|
||||||
vpnhk = "protonvpn-cli c --cc hk";
|
|
||||||
vpnkr = "protonvpn-cli c --cc kr";
|
|
||||||
vpnoff = "protonvpn-cli d";
|
|
||||||
|
|
||||||
# This doesn't work at all, many things crash, no internet etc.
|
|
||||||
# gnome = "dbus-run-session gnome-session"; # Requires XDG_SESSION_TYPE to be set for wayland
|
|
||||||
|
|
||||||
failed = "systemctl --failed";
|
|
||||||
errors = "journalctl -p 3 -xb";
|
|
||||||
|
|
||||||
rsync = "rsync -chavzP --info=progress2";
|
|
||||||
performance = "sudo cpupower frequency-set -g performance && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1";
|
|
||||||
powersave = "sudo cpupower frequency-set -g powersave && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0";
|
|
||||||
|
|
||||||
xxhamster = "TERM=ansi ssh christoph@217.160.142.51";
|
|
||||||
|
|
||||||
mp4 = "yt-dlp -f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b' --recode-video mp4"; # the -f options are yt-dlp defaults
|
|
||||||
mp3 = "yt-dlp -f 'ba' --extract-audio --audio-format mp3";
|
|
||||||
};
|
|
||||||
shellAliases = {
|
|
||||||
# ".." = "cd ..";
|
|
||||||
"please" = "sudo !!";
|
|
||||||
"yeet" = "rm -rf";
|
|
||||||
};
|
|
||||||
shellInit = ''
|
|
||||||
set -e fish_greeting
|
|
||||||
'';
|
|
||||||
# promptInit = ''
|
|
||||||
# any-nix-shell fish --info-right | source
|
|
||||||
# '';
|
|
||||||
};
|
|
||||||
|
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
@ -7,7 +7,8 @@ rec {
|
|||||||
../../../modules
|
../../../modules
|
||||||
];
|
];
|
||||||
|
|
||||||
modules.audio = {
|
modules = {
|
||||||
|
audio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
carla.enable = true;
|
carla.enable = true;
|
||||||
@ -29,7 +30,7 @@ rec {
|
|||||||
distrho.enable = true;
|
distrho.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.gaming = {
|
gaming = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
polymc.enable = true;
|
polymc.enable = true;
|
||||||
@ -42,4 +43,5 @@ rec {
|
|||||||
gamescope = true;
|
gamescope = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -7,17 +7,19 @@ rec {
|
|||||||
../../../modules
|
../../../modules
|
||||||
];
|
];
|
||||||
|
|
||||||
|
modules = {
|
||||||
# TODO: Validate that this doesn't install too much
|
# TODO: Validate that this doesn't install too much
|
||||||
modules.gaming = {
|
gaming = {
|
||||||
enable = true;
|
enable = true;
|
||||||
discordChromium.enable = true;
|
discordChromium.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.audio = {
|
audio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
noisesuppression = {
|
noisesuppression = {
|
||||||
noisetorch.enable = true;
|
noisetorch.enable = true;
|
||||||
noisetorch.autostart = true;
|
noisetorch.autostart = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
@ -5,6 +5,7 @@
|
|||||||
./audio.nix
|
./audio.nix
|
||||||
./emacs.nix
|
./emacs.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
|
./fish.nix
|
||||||
./flatpak.nix
|
./flatpak.nix
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
@ -22,6 +22,7 @@ in {
|
|||||||
name = "Victor Mono SemiBold";
|
name = "Victor Mono SemiBold";
|
||||||
size = 12;
|
size = 12;
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
editor = (if cfgnv.enable then "nvim" else "nano");
|
editor = (if cfgnv.enable then "nvim" else "nano");
|
||||||
scrollback_lines = 10000;
|
scrollback_lines = 10000;
|
||||||
@ -51,6 +52,7 @@ in {
|
|||||||
# color14 = "#ccab53";
|
# color14 = "#ccab53";
|
||||||
# color15 = "#d2b3ff";
|
# color15 = "#d2b3ff";
|
||||||
};
|
};
|
||||||
|
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"kitty_mod+j" = "next_window";
|
"kitty_mod+j" = "next_window";
|
||||||
"kitty_mod+k" = "previous_window";
|
"kitty_mod+k" = "previous_window";
|
||||||
|
@ -13,9 +13,9 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set incsearch
|
set incsearch
|
||||||
set hlsearch
|
set hlsearch
|
||||||
@ -39,6 +39,7 @@ in {
|
|||||||
let printencoding='utf-8'
|
let printencoding='utf-8'
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
# vim-nix
|
# vim-nix
|
||||||
surround-nvim
|
surround-nvim
|
||||||
@ -77,6 +78,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
viAlias = cfg.alias;
|
viAlias = cfg.alias;
|
||||||
vimAlias = cfg.alias;
|
vimAlias = cfg.alias;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user