home-manager purged
This commit is contained in:
parent
5275eefa61
commit
6755222762
14 changed files with 54 additions and 583 deletions
|
@ -1,74 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.modules.usrEnv.programs.media.beets;
|
||||
inherit (config.modules.other.system) username;
|
||||
inherit (config.modules.usrEnv.services.media.mpd) musicDirectory;
|
||||
inherit (lib) mkIf;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
programs.beets = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
ui.color = true;
|
||||
directory = musicDirectory;
|
||||
library = "${musicDirectory}/musiclibrary.db";
|
||||
|
||||
clutter = [
|
||||
"Thumbs.DB"
|
||||
".DS_Store"
|
||||
".directory"
|
||||
];
|
||||
|
||||
plugins = [
|
||||
"mpdupdate"
|
||||
"lyrics"
|
||||
"thumbnails"
|
||||
"fetchart"
|
||||
"embedart"
|
||||
"chroma"
|
||||
"fromfilename"
|
||||
"lastgenre"
|
||||
"duplicates"
|
||||
"edit"
|
||||
"replaygain"
|
||||
"scrub"
|
||||
];
|
||||
|
||||
import = {
|
||||
move = true;
|
||||
timid = true;
|
||||
detail = true;
|
||||
bell = true;
|
||||
write = true;
|
||||
};
|
||||
|
||||
mpd = {
|
||||
host = "localhost";
|
||||
port = 6600;
|
||||
};
|
||||
|
||||
lyrics = {
|
||||
auto = true;
|
||||
};
|
||||
|
||||
thumbnails.auto = true;
|
||||
fetchart.auto = true;
|
||||
|
||||
embedart = {
|
||||
auto = true;
|
||||
remove_art_file = true;
|
||||
};
|
||||
|
||||
acousticbrainz.auto = true;
|
||||
chroma.auto = true;
|
||||
replaygain.backend = "gstreamer";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,193 +0,0 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.modules.system.programs.firefox;
|
||||
inherit (config.modules.other.system) username;
|
||||
|
||||
inherit (lib) mkIf;
|
||||
inherit (builtins) listToAttrs;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
imports = [inputs.schizofox.homeManagerModule];
|
||||
|
||||
programs.schizofox = {
|
||||
enable = true;
|
||||
|
||||
theme = {
|
||||
colors = {
|
||||
background-darker = "000000";
|
||||
background = "000000";
|
||||
foreground = "ffffff";
|
||||
};
|
||||
|
||||
font = "Lexend";
|
||||
|
||||
extraUserChrome = ''
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
|
||||
|
||||
/*
|
||||
* Hide tab bar, navigation bar and scrollbars
|
||||
* !important may be added to force override, but not necessary
|
||||
* #content is not necessary to hide scroll bars
|
||||
*/
|
||||
|
||||
#TabsToolbar {visibility: collapse;}
|
||||
'';
|
||||
};
|
||||
|
||||
search = {
|
||||
defaultSearchEngine = "DuckDuckGo";
|
||||
removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"];
|
||||
addEngines = [
|
||||
{
|
||||
Name = "NixOS Packages";
|
||||
Description = "NixOS Unstable package search";
|
||||
Alias = "!np";
|
||||
Method = "GET";
|
||||
URLTemplate = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
|
||||
}
|
||||
{
|
||||
Name = "NixOS Options";
|
||||
Description = "NixOS Unstable option search";
|
||||
Alias = "!no";
|
||||
Method = "GET";
|
||||
URLTemplate = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
|
||||
}
|
||||
{
|
||||
Name = "NixOS Wiki";
|
||||
Description = "NixOS Wiki search";
|
||||
Alias = "!nw";
|
||||
Method = "GET";
|
||||
URLTemplate = "https://nixos.wiki/index.php?search={searchTerms}";
|
||||
}
|
||||
{
|
||||
Name = "Home Manager Options";
|
||||
Description = "Home Manager option search";
|
||||
Alias = "!hm";
|
||||
Method = "GET";
|
||||
URLTemplate = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master";
|
||||
}
|
||||
{
|
||||
Name = "Arch Wiki";
|
||||
Description = "Arch Wiki search";
|
||||
Alias = "!aw";
|
||||
Method = "GET";
|
||||
URLTemplate = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
||||
}
|
||||
{
|
||||
Name = "Gentoo Wiki";
|
||||
Description = "Gentoo Wiki search";
|
||||
Alias = "!gw";
|
||||
Method = "GET";
|
||||
URLTemplate = "https://wiki.gentoo.org/index.php?search={searchTerms}";
|
||||
}
|
||||
{
|
||||
Name = "Debian Wiki";
|
||||
Description = "Debian Wiki search";
|
||||
Alias = "!dw";
|
||||
Method = "GET";
|
||||
URLTemplate = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
|
||||
}
|
||||
{
|
||||
Name = "noogle";
|
||||
Descriptiom = "Noogle Search";
|
||||
Alias = "!ng";
|
||||
Method = "GET";
|
||||
URLTemplate = "https://noogle.dev/f/lib/{searchTerms}";
|
||||
}
|
||||
];
|
||||
};
|
||||
extensions = {
|
||||
simplefox.enable = true;
|
||||
darkreader.enable = true;
|
||||
enableExtraExtensions = true;
|
||||
enableDefaultExtensions = true;
|
||||
extraExtensions = let
|
||||
extensions = [
|
||||
{
|
||||
id = "{c2c003ee-bd69-42a2-b0e9-6f34222cb046}";
|
||||
name = "auto-tab-discard";
|
||||
}
|
||||
{
|
||||
id = "{74145f27-f039-47ce-a470-a662b129930a}";
|
||||
name = "clearurls";
|
||||
}
|
||||
{
|
||||
id = "DontFuckWithPaste@raim.ist";
|
||||
name = "dont-fuck-with-paste";
|
||||
}
|
||||
{
|
||||
id = "{96ef5869-e3ba-4d21-b86e-21b163096400}";
|
||||
name = "font-fingerprint-defender";
|
||||
}
|
||||
{
|
||||
id = "uBlock0@raymondhill.net";
|
||||
name = "uBlock Origin";
|
||||
}
|
||||
{
|
||||
id = "{d7742d87-e61d-4b78-b8a1-b469842139fa}";
|
||||
name = "vimium-ff";
|
||||
}
|
||||
{
|
||||
id = "{a4c4eda4-fb84-4a84-b4a1-f7c1cbf2a1ad}";
|
||||
name = "refined-github-";
|
||||
}
|
||||
{
|
||||
id = "sponsorBlocker@ajay.app";
|
||||
name = "sponsorblock";
|
||||
}
|
||||
{
|
||||
id = "treestyletab@piro.sakura.ne.jp";
|
||||
name = "Tree Style Tab";
|
||||
}
|
||||
];
|
||||
|
||||
# shamelessly stolen from raf, thanks.
|
||||
mappedExtensions =
|
||||
map (extension: {
|
||||
name = extension.id;
|
||||
value = {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${extension.name}/latest.xpi";
|
||||
};
|
||||
})
|
||||
extensions;
|
||||
in
|
||||
listToAttrs mappedExtensions;
|
||||
};
|
||||
|
||||
security = {
|
||||
sanitizeOnShutdown.enable = false;
|
||||
sandbox = false;
|
||||
noSessionRestore = false;
|
||||
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
|
||||
};
|
||||
|
||||
misc = {
|
||||
drm.enable = true;
|
||||
contextMenu.enable = true;
|
||||
};
|
||||
|
||||
# taken from diniamo
|
||||
settings = {
|
||||
"gfx.webrender.all" = true;
|
||||
"media.ffmpeg.vaapi.enabled" = true;
|
||||
"media.rdd-ffmpeg.enabled" = true;
|
||||
"media.av1.enabled" = true;
|
||||
"gfx.x11-egl.force-enabled" = true;
|
||||
"widget.dmabuf.force-enabled" = true;
|
||||
|
||||
"layers.acceleration.force-enabled" = true;
|
||||
|
||||
"browser.startup.page" = 3;
|
||||
"browser.ctrlTab.sortByRecentlyUsed" = true;
|
||||
# This makes websites prefer a dark theme (in theory)
|
||||
"layout.css.prefers-color-scheme.content-override" = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (config.modules.other.system) username;
|
||||
cfg = config.modules.usrEnv.programs.launchers.fuzzel;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
# home-manager.users.${username} = {
|
||||
# programs.fuzzel = {
|
||||
# enable = true;
|
||||
# package = pkgs.fuzzel;
|
||||
# settings = {
|
||||
# main = {
|
||||
# terminal = "${pkgs.foot}/bin/foot -e";
|
||||
# # make fuzzel appear on fullscreen windows
|
||||
# layer = "overlay";
|
||||
# icon-theme = "Papirus-Dark";
|
||||
# font = "Lexend:weight=regular:size=14";
|
||||
# };
|
||||
# # background = "000000";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue