moved nixvim to home-manager config, re-added firefox plugins

This commit is contained in:
pagedmov
2024-11-07 00:48:51 -05:00
parent f9fe7155de
commit 0bb0b6ce81
21 changed files with 18 additions and 17 deletions

View File

@@ -8,13 +8,8 @@
config,
home-manager,
...
}: let
desktop = host == "onagesson";
desktop_modules =
if desktop
then [(import ./gaming)]
else [];
in {
}:
{
imports =
[(import ./btop.nix)]
++ [(import ./yazi.nix)]
@@ -28,5 +23,5 @@ in {
++ [(import ./password-store.nix)]
++ [(import ./autojump.nix)]
++ [(import ./firefox.nix)]
++ desktop_modules;
++ [(import ./nixvim)];
}

View File

@@ -83,6 +83,17 @@
url = "https://www.nerdfonts.com/cheat-sheet";
}
];
extensions = with config.nur.repos.rycee.firefox-addons; [
darkreader
adnauseam
cookie-autodelete
disconnect
firefox-color
vimium
firenvim
privacy-badger
new-tab-override
];
extraConfig = ''
"browser.startup.homepage" = "${self}/glasshouse-desktop/home/firefox/homepage.html";
"browser.active_color" = "#EE0000";

View File

@@ -38,9 +38,6 @@
})
'';
};
completion = {
keyword_length = 3;
};
window = {
completion.border = "rounded";
};

View File

@@ -6,15 +6,14 @@
pkgs.writeShellApplication {
name = "rebuild";
text = ''
[ $# -eq 0 ] && echo "Usage: rebuild -h for home config, rebuild -s for sys config"
hooray() { scheck && runbg aplay ${self}/assets/sound/update.wav; }
damn() { scheck && runbg aplay ${self}/assets/sound/error.wav; }
[ $# -eq 0 ] && echo -e "\033[1;4;38;2;243;139;168mUsage\033[0m: rebuild -h for home config, rebuild -s for sys config" && damn && exit 1
scheck && runbg aplay ${self}/assets/sound/nixswitch-start.wav
set -e
hooray() { scheck && runbg aplay ${self}/assets/sound/update.wav }
damn() { scheck && runbg aplay ${self}/assets/sound/error.wav }
case $1 in
"-h" ) if nh home switch -c ${host}Home "$FLAKEPATH"; then hooray; else damn; fi;;
"-s" ) if nh os switch -H ${host} "$FLAKEPATH"; then hooray; else damn; fi;;
* ) echo "Usage: rebuild -h for home config, rebuild -s for sys config";;
* ) echo -e "\033[1;4;38;2;243;139;168mUsage\033[0m: rebuild -h for home config, rebuild -s for sys config";;
esac
'';
}

View File

@@ -11,7 +11,6 @@
[(import ./packages.nix)]
++ [(import ./programs.nix)]
++ [(import ./services.nix)]
++ [(import ./nixvim)]
++ [(import ./virtualization.nix)]
++ [(import ./gaming)];
}