reorganize home-manager

This commit is contained in:
2024-09-27 12:08:34 -04:00
parent db224fba5e
commit 444bbf1ce1
6 changed files with 450 additions and 525 deletions

View File

@@ -7,8 +7,8 @@
{ {
imports = [ imports = [
./no-gui.nix ./no-gui.nix
# ./progs/librewolf.nix
./progs/gpt4all/gpt4all.nix ./progs/gpt4all/gpt4all.nix
./progs/alacritty.nix
]; ];
nixpkgs.config.allowUnfreePredicate = nixpkgs.config.allowUnfreePredicate =
@@ -110,13 +110,6 @@
BROWSER = "zen"; BROWSER = "zen";
}; };
#Terminal emulator
programs.alacritty = {
enable = true;
package = pkgs.alacritty;
settings = import ./progs/alacritty.nix { inherit pkgs; };
};
#for trezor stuff #for trezor stuff
/* /*
trezor-udev-rules #trezor udev rules trezor-udev-rules #trezor udev rules

View File

@@ -7,6 +7,11 @@
... ...
}: }:
{ {
imports = [
./progs/fish.nix
./progs/helix.nix
];
home.stateVersion = "24.11"; home.stateVersion = "24.11";
home.packages = with pkgs; [ home.packages = with pkgs; [
@@ -186,12 +191,6 @@
${pkgs.gnupg}/bin/gpg --import ${config.age.secrets.gnupg.path} ${pkgs.gnupg}/bin/gpg --import ${config.age.secrets.gnupg.path}
''; '';
#fish shell!
programs.fish = import ./progs/fish.nix { inherit pkgs; };
#text editor
programs.helix = import ./progs/helix.nix { inherit pkgs; };
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View File

@@ -1,5 +1,9 @@
{ pkgs }: { pkgs, ... }:
{ {
programs.alacritty = {
enable = true;
package = pkgs.alacritty;
settings = {
#use the fish shell #use the fish shell
shell.program = "${pkgs.fish}/bin/fish"; shell.program = "${pkgs.fish}/bin/fish";
@@ -121,4 +125,6 @@
style = "Underline"; style = "Underline";
vi_mode_style = "Underline"; vi_mode_style = "Underline";
}; };
};
};
} }

View File

@@ -1,10 +1,11 @@
{ pkgs }: { pkgs, ... }:
let let
eza = "${pkgs.eza}/bin/eza --color=always --group-directories-first"; eza = "${pkgs.eza}/bin/eza --color=always --group-directories-first";
cargo = "${pkgs.cargo}/bin/cargo"; cargo = "${pkgs.cargo}/bin/cargo";
coreutil = "${pkgs.coreutils}/bin"; coreutil = "${pkgs.coreutils}/bin";
in in
{ {
programs.fish = {
enable = true; enable = true;
interactiveShellInit = '' interactiveShellInit = ''
@@ -64,4 +65,5 @@ in
src = pkgs.fishPlugins.hydro.src; src = pkgs.fishPlugins.hydro.src;
} }
]; ];
};
} }

View File

@@ -1,5 +1,6 @@
{ pkgs }: { pkgs, ... }:
{ {
programs.helix = {
enable = true; enable = true;
package = pkgs.helix; package = pkgs.helix;
settings = { settings = {
@@ -285,4 +286,5 @@
}; };
}; };
}; };
};
} }

View File

@@ -1,77 +0,0 @@
{ pkgs, inputs, ... }:
{
home.packages = with pkgs; [ librewolf ];
programs.librewolf = {
enable = true;
settings = {
"webgl.disabled" = false;
"privacy.resistFingerprinting" = false;
"privacy.clearOnShutdown.history" = false;
"privacy.clearOnShutdown.cookies" = false;
"network.cookie.lifetimePolicy" = 0;
"general.useragent.compatMode.firefox" = true;
"identity.fxaccounts.enabled" = true;
"services.sync.prefs.sync.privacy.clearOnShutdown.cookies" = false;
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
"general.useragent.override" = "Mozilla/5.0 (X11; Linux x86_64; rv:${pkgs.firefox.version}) Gecko/20100101 Firefox/${pkgs.firefox.version}";
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
# For themeing
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.tabs.drawInTitlebar" = true;
"svg.context-properties.content.enabled" = true;
#fake location, FIT (just about)
"geo.provider.network.url" =
"data:application/json,"
+ builtins.toJSON {
location = {
lat = 28.0749;
lng = -80.6302;
};
accuracy = 1.0;
};
};
};
home.file =
let
chromeTheme = ".librewolf/tckj7njq.default-release/chrome";
firefoxThemeFile = file: src: {
target = "${chromeTheme}/${file}";
source = "${inputs.firefox-mod-theme}/${src}/${file}";
recursive = true;
};
baseThemeFile = {
file = "";
src = "";
};
modThemeFiles = [
{
file = "userChrome.css";
}
{
file = "userContent.css";
}
{
file = "ASSETS";
}
];
in
builtins.listToAttrs (
map (f: {
name = "firefox-theme-${f.file}";
value = firefoxThemeFile f.file f.src;
}) (map (f: baseThemeFile // f) modThemeFiles)
);
home.sessionVariables = {
BROWSER = "librewolf";
};
}