added stuff
This commit is contained in:
parent
d3c3cf9ffb
commit
4205955c5f
3 changed files with 20 additions and 25 deletions
|
@ -1,2 +1,6 @@
|
||||||
# nichts
|
# nichts
|
||||||
My personal collection of NixOS configuration files
|
My personal collection of NixOS configuration files
|
||||||
|
|
||||||
|
|
||||||
|
# credits
|
||||||
|
*heavily* inspired by https://git.jacekpoz.pl/jacekpoz/niksos.git !
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
}: with lib; let
|
}: with lib; let
|
||||||
cfg = config.modules.programs.fish;
|
cfg = config.modules.programs.fish;
|
||||||
username = config.modules.other.system.username;
|
username = config.modules.other.system.username;
|
||||||
|
hostname = config.modules.other.system.hostname;
|
||||||
|
gitPath = config.modules.other.system.gitPath;
|
||||||
in {
|
in {
|
||||||
options.modules.programs.fish = {
|
options.modules.programs.fish = {
|
||||||
enable = mkEnableOption "fish";
|
enable = mkEnableOption "fish";
|
||||||
|
@ -27,39 +29,32 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
|
home.packages = with pkgs; [ nix-output-monitor ];
|
||||||
|
programs.zoxide.enable = true;
|
||||||
|
programs.zoxide.enableFishIntegration = true;
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interactiveShellInit = "set fish_greeting";
|
interactiveShellInit = "set fish_greeting";
|
||||||
plugins = [
|
plugins = [
|
||||||
{ name = "grc"; src = pkgs.fishPlugins.grc.src; }
|
{ name = "grc"; src = pkgs.fishPlugins.grc.src; }
|
||||||
{ name = "z"; src = pkgs.fishPlugins.z.src; }
|
|
||||||
{ name = "sponge"; src = pkgs.fishPlugins.sponge.src; }
|
{ name = "sponge"; src = pkgs.fishPlugins.sponge.src; }
|
||||||
{ name = "done"; src = pkgs.fishPlugins.done.src; }
|
{ name = "done"; src = pkgs.fishPlugins.done.src; }
|
||||||
{ name = "colored_man_pages"; src = pkgs.fishPlugins.colored-man-pages.src; }
|
{ name = "colored_man_pages"; src = pkgs.fishPlugins.colored-man-pages.src; }
|
||||||
{ name = "tide"; src = pkgs.fishPlugins.tide.src; }
|
{ name = "tide"; src = pkgs.fishPlugins.tide.src; }
|
||||||
];
|
];
|
||||||
shellAliases = {
|
shellAbbrs = {
|
||||||
|
c = "clear";
|
||||||
cl = "clear";
|
cc = "cd ~ && clear";
|
||||||
cp = "cp -ivr";
|
|
||||||
mv = "mv -iv";
|
mv = "mv -iv";
|
||||||
rm = "trash -v";
|
rm = "trash -v";
|
||||||
|
ls = "eza";
|
||||||
l = "eza -a --icons";
|
l = "eza -a --icons";
|
||||||
e = "eza -lha --icons --git";
|
la = "eza -lha --icons --git";
|
||||||
untar = "tar -xvf";
|
|
||||||
untargz = "tar -xzf";
|
|
||||||
mnt = "udisksctl mount -b";
|
|
||||||
umnt = "udisksctl unmount -b";
|
|
||||||
v = "nvim";
|
|
||||||
kys = "shutdown now";
|
kys = "shutdown now";
|
||||||
gpl = "curl https://www.gnu.org/licenses/gpl-3.0.txt -o LICENSE";
|
cd = "z";
|
||||||
agpl = "curl https://www.gnu.org/licenses/agpl-3.0.txt -o LICENSE";
|
nv = "nvim";
|
||||||
g = "git";
|
update = "sudo -p 'password: ' echo 'Your daughter is just a fork of your wife.' && sudo nixos-rebuild switch --flake \"${gitPath}#${hostname}\" --log-format internal-json |& nom --json";
|
||||||
gs = "g stash";
|
flake = "cd '${gitPath}'";
|
||||||
n = "nix";
|
|
||||||
woman = "man";
|
|
||||||
open = "xdg-open";
|
|
||||||
":q" = "exit";
|
|
||||||
} // cfg.extraAliases;
|
} // cfg.extraAliases;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
{
|
{ config, lib, pkgs, ... }:
|
||||||
config,
|
with lib; let
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: with lib; let
|
|
||||||
cfg = config.modules.themes.gtk;
|
cfg = config.modules.themes.gtk;
|
||||||
username = config.modules.other.system.username;
|
username = config.modules.other.system.username;
|
||||||
hmCfg = config.home-manager.users.${username};
|
hmCfg = config.home-manager.users.${username};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue