This commit is contained in:
Lilith 2025-03-28 04:06:00 +01:00
parent d6313c6cb1
commit f3721e14bb
Signed by: lilith
GPG key ID: 8712A0F317C37175
7 changed files with 143 additions and 74 deletions

69
flake.lock generated
View file

@ -192,6 +192,27 @@
} }
}, },
"flake-parts": { "flake-parts": {
"inputs": {
"nixpkgs-lib": [
"nur",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733312601,
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
"stylix", "stylix",
@ -712,11 +733,33 @@
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"nixpkgs": [ "nixpkgs": [
"stylix",
"nixpkgs" "nixpkgs"
], ],
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": {
"lastModified": 1743128178,
"narHash": "sha256-h/05pQp7KTy83UqwfZQpuJGB5oEWYf+5kVM7RGBi47k=",
"owner": "nix-community",
"repo": "NUR",
"rev": "e8dc75a445e7d58d4b4b5be1d13a3b1e32a5c027",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"nur_2": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": [
"stylix",
"nixpkgs"
],
"treefmt-nix": "treefmt-nix_2"
},
"locked": { "locked": {
"lastModified": 1741693509, "lastModified": 1741693509,
"narHash": "sha256-emkxnsZstiJWmGACimyAYqIKz2Qz5We5h1oBVDyQjLw=", "narHash": "sha256-emkxnsZstiJWmGACimyAYqIKz2Qz5We5h1oBVDyQjLw=",
@ -764,6 +807,7 @@
"impermanence": "impermanence", "impermanence": "impermanence",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"nur": "nur",
"rose-pine-hyprcursor": "rose-pine-hyprcursor", "rose-pine-hyprcursor": "rose-pine-hyprcursor",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"stylix": "stylix", "stylix": "stylix",
@ -836,7 +880,7 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"nur": "nur", "nur": "nur_2",
"systems": "systems_3", "systems": "systems_3",
"tinted-foot": "tinted-foot", "tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty", "tinted-kitty": "tinted-kitty",
@ -986,6 +1030,27 @@
} }
}, },
"treefmt-nix": { "treefmt-nix": {
"inputs": {
"nixpkgs": [
"nur",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733222881,
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"treefmt-nix_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"stylix", "stylix",

View file

@ -54,6 +54,11 @@
url = "github:LunaCOLON3/zen-browser-nix"; url = "github:LunaCOLON3/zen-browser-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
@ -61,6 +66,8 @@
self, self,
nixpkgs, nixpkgs,
home-manager, home-manager,
nur,
zen-browser,
... ...
}@inputs: }@inputs:
let let
@ -81,7 +88,13 @@
let let
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) (import ./unfree.nix).allowed; config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) (import ./unfree.nix).allowed;
in in
import nixpkgs { inherit system config; }; import nixpkgs {
inherit system config;
overlays = [
nur.overlays.default
zen-browser.overlay
];
};
makeHost = makeHost =
host: system: host: system:

View file

@ -11,7 +11,7 @@
./env.nix ./env.nix
#zen-browser (WIP) #zen-browser (WIP)
# ./firefox ./firefox
./alacritty.nix ./alacritty.nix
./clipman.nix ./clipman.nix

View file

@ -1,4 +1,5 @@
{ pkgs, ...}: { { pkgs, ... }:
{
programs.firefox = { programs.firefox = {
enable = true; enable = true;
@ -12,29 +13,29 @@
URL = "https://duckduckgo.com"; URL = "https://duckduckgo.com";
StartPage = "homepage"; StartPage = "homepage";
}; };
DisablePocket = true; DisablePocket = true;
DisableFirefoxAccounts = true; DisableFirefoxAccounts = true;
DisableAccounts = true; DisableAccounts = true;
DisableFormHistory = true; DisableFormHistory = true;
OfferToSaveLogins = false; OfferToSaveLogins = false;
PasswordManagerEnabled = false; PasswordManagerEnabled = false;
DisableSetDesktopBackground = true; DisableSetDesktopBackground = true;
DisableTelemetry = true; DisableTelemetry = true;
DisableFirefoxScreenshots = true; DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "https://duckduckgo.com"; OverrideFirstRunPage = "https://duckduckgo.com";
OverridePostUpdatePage = "https://duckduckgo.com"; OverridePostUpdatePage = "https://duckduckgo.com";
NewTabPage = false; NewTabPage = false;
DontCheckDefaultBrowser = true; DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "never"; DisplayBookmarksToolbar = "never";
SearchBar = "unified"; SearchBar = "unified";
SearchSuggestEnabled = false; SearchSuggestEnabled = false;
DownloadDirectory = "/home/lilith/sync/inbox"; DownloadDirectory = "/home/lilith/sync/inbox";
Containers = { Containers = {
"Default" = [ "Default" = [
{ {
@ -47,7 +48,7 @@
icon = "briefcase"; icon = "briefcase";
color = "green"; color = "green";
} }
]; ];
}; };
ExtensionSettings = { ExtensionSettings = {

View file

@ -1,74 +1,48 @@
{zen-browser, system, pkgs, lib, ...}: { {
zen-browser,
pkgs,
lib,
...
}:
{
imports = [ zen-browser.homeManagerModules.zen-browser ]; imports = [ zen-browser.homeManagerModules.zen-browser ];
home.file.".mozilla/native-messaging-hosts".source = lib.mkForce "/home/lilith/.mozilla/native-messaging-hosts"; home.file.".mozilla/native-messaging-hosts".source =
lib.mkForce /home/lilith/.mozilla/native-messaging-hosts;
programs.zen-browser = { programs.zen-browser = {
enable = true; enable = true;
nativeMessagingHosts = with pkgs; [ nativeMessagingHosts = lib.mkForce (
tridactyl-native with pkgs;
keepassxc [
]; tridactyl-native
keepassxc
]
);
policies = { profiles.lilith = {
Homepage = { id = 0;
URL = "https://duckduckgo.com"; name = "Lilith";
StartPage = "homepage"; isDefault = true;
search = {
force = true;
default = "DuckDuckGo";
privateDefault = "DuckDuckGo";
order = [ "DuckDuckGo" ];
}; };
DisablePocket = true; extensions = with pkgs.nur.repos.rycee.firefox-addons; [
DisableFirefoxAccounts = true; ublock-origin
DisableAccounts = true; keepassxc-browser
DisableFormHistory = true; tridactyl
OfferToSaveLogins = false; ];
PasswordManagerEnabled = false;
DisableSetDesktopBackground = true;
DisableTelemetry = true;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "https://duckduckgo.com";
OverridePostUpdatePage = "https://duckduckgo.com";
NewTabPage = false;
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "never";
SearchBar = "unified";
SearchSuggestEnabled = false;
DownloadDirectory = "/home/lilith/sync/inbox";
ExtensionSettings = { settings = {
# uBlock Origin: "zen.experimental-no-window-controls" = true;
"uBlock0@raymondhill.net" = { "zen.sidebar.data" = "";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; "browser.translations.automaticallyPopup" = false;
installation_mode = "force_installed";
};
"keepassxc-browser@keepassxc.org" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/latest.xpi";
installation_mode = "force_installed";
};
"sponsorBlocker@ajay.app" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/4292214/sponsorblock-5.6.xpi";
installation_mode = "force_installed";
};
"tridactyl.vim@cmcaine.co.uk" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/4261352/tridactyl_vim-1.24.1.xpi";
installation_mode = "force_installed";
};
};
SearchEngines = {
Default = "DuckDuckGo";
};
Preferences = {
"browser.newtab.extensionControlled" = false;
"browser.translations.neverTranslateLanguages" = true;
}; };
}; };
}; };

View file

@ -17,6 +17,6 @@
./users.nix ./users.nix
./zsh.nix ./zsh.nix
./virtulization.nix ./virtualization.nix
]; ];
} }

View file

@ -18,6 +18,10 @@
steam = { steam = {
enable = true; enable = true;
gamescopeSession.enable = true; gamescopeSession.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
}; };
gamemode.enable = true; gamemode.enable = true;
@ -32,5 +36,17 @@
protontricks protontricks
]; ];
}; };
# SteamVR kernel patch for AMDGPU
boot.kernelPatches = [
{
name = "amdgpu-ignore-ctx-privileges";
patch = pkgs.fetchpatch {
name = "cap_sys_nice_begone.patch";
url = "https://github.com/Frogging-Family/community-patches/raw/master/linux61-tkg/cap_sys_nice_begone.mypatch";
hash = "sha256-Y3a0+x2xvHsfLax/uwycdJf3xLxvVfkfDVqjkxNaYEo=";
};
}
];
}; };
} }