This commit is contained in:
Steph 2024-07-02 00:20:09 +02:00
parent 5a8a91351a
commit 18cc9a8ff6
7 changed files with 78 additions and 51 deletions

View File

@ -3,8 +3,8 @@
{
imports =
[
./kakoune.nix
./pastebin.nix
./programs/kakoune.nix
./programs/pastebin.nix
];
nix = {
@ -14,6 +14,10 @@
'';
};
nixpkgs.overlays = [
inputs.nur.overlay
];
networking.networkmanager.enable = true;
time.timeZone = "Europe/Amsterdam";

View File

@ -91,12 +91,28 @@
"type": "github"
}
},
"nur": {
"locked": {
"lastModified": 1719865591,
"narHash": "sha256-Fq9KxLJjrHGXtCX1rylzW5Ls65fo4Rgl8f2Kqv5Gpo8=",
"owner": "nix-community",
"repo": "NUR",
"rev": "c3b0c669d39c3e03dbfba8c008487b5d2d62657d",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"firefox-addons": "firefox-addons",
"firefox-gnome-theme": "firefox-gnome-theme",
"home": "home",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nur": "nur"
}
}
},

View File

@ -9,9 +9,11 @@
firefox-gnome-theme = { url = "github:rafaelmardojai/firefox-gnome-theme"; flake = false; };
firefox-addons = { url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; inputs.nixpkgs.follows = "nixpkgs"; };
nur.url = "github:nix-community/NUR";
};
outputs = { self, nixpkgs, home, firefox-gnome-theme, firefox-addons }@inputs: {
outputs = { self, nixpkgs, home, firefox-gnome-theme, firefox-addons, nur }@inputs: {
nixosConfigurations.iota = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [

View File

@ -1,52 +1,8 @@
{config, lib, pkgs, inputs, ...}: {
home.file.".mozilla/firefox/default/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
programs.firefox.enable = true;
programs.firefox.profiles.default = {
userChrome = ''
@import "firefox-gnome-theme/userChrome.css";
'';
userContent = ''
@import "firefox-gnome-theme/userContent.css";
'';
settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; # Enable customChrome.cs
"browser.uidensity" = 0; # Set UI density to normal
"svg.context-properties.content.enabled" = true; # Enable SVG context-propertes
"browser.theme.dark-private-windows" = false; # Disable private window dark theme
"extensions.autoDisableScopes" = 0; # Auto enable new extentions
"browser.toolbars.bookmarks.visibility" = "never";
"gnomeTheme.hideSingleTab" = true;
};
extensions = with inputs.firefox-addons.packages.${pkgs.system}; [
ublock-origin
bitwarden
consent-o-matic
wayback-machine
h264ify
sponsorblock
fediact
multi-account-containers
];
search = {
default = "DuckDuckGo";
force = true;
};
containers = {
"RYSST" = {
color = "blue";
icon = "circle";
id = 1;
};
"Lekker van Peet" = {
color = "toolbar";
icon = "circle";
id = 2;
};
};
containersForce = true;
};
imports = [
./programs/firefox.nix
];
home.stateVersion = "22.05";

49
programs/firefox.nix Normal file
View File

@ -0,0 +1,49 @@
{config, lib, pkgs, inputs, ...} : {
home.file.".mozilla/firefox/default/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
programs.firefox.enable = true;
programs.firefox.profiles.default = {
userChrome = ''
@import "firefox-gnome-theme/userChrome.css";
'';
userContent = ''
@import "firefox-gnome-theme/userContent.css";
'';
settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; # Enable customChrome.cs
"browser.uidensity" = 0; # Set UI density to normal
"svg.context-properties.content.enabled" = true; # Enable SVG context-propertes
"browser.theme.dark-private-windows" = false; # Disable private window dark theme
"extensions.autoDisableScopes" = 0; # Auto enable new extentions
"browser.toolbars.bookmarks.visibility" = "never";
"gnomeTheme.hideSingleTab" = true;
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
bitwarden
consent-o-matic
wayback-machine
h264ify
sponsorblock
fediact
multi-account-containers
tampermonkey
];
search = {
default = "DuckDuckGo";
force = true;
};
containers = {
"RYSST" = {
color = "blue";
icon = "circle";
id = 1;
};
"Lekker van Peet" = {
color = "toolbar";
icon = "circle";
id = 2;
};
};
containersForce = true;
};
}