From d465e92647470759177cb63914fd3571cea7a8a4 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Tue, 1 Apr 2025 11:26:04 -0400 Subject: Using Zen, added nix update to be upstreamed --- home-config/nix-home-manager/home.nix | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'home-config/nix-home-manager/home.nix') diff --git a/home-config/nix-home-manager/home.nix b/home-config/nix-home-manager/home.nix index d2e0034..f5d386c 100644 --- a/home-config/nix-home-manager/home.nix +++ b/home-config/nix-home-manager/home.nix @@ -1,4 +1,24 @@ -{ config, pkgs, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, clipboard-sync, hypr-dynamic-cursors, ... }: +{ config, pkgs, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, clipboard-sync, hypr-dynamic-cursors, zen-browser, ... }: +let + # THIS IS NOT PERFECT AT ALL YET!!! Gets the basics done (my important + # policies regarding accounts and extensions. Does not set up profile + # stuff, like search. Most importantly, it DOES NOT add system CAs. + # To do that, run: + # `certutil -A -n "name" -t "CT,c" -i ./path/to/cert -d ~/.zen/profile-folder` + # I do this for my root and intermediate. BEWARE WHEN INSTALLING NEW + # SYSTEMS!!!! + ffPolicies = import ./zenPolicies.nix; + customZen = zen-browser.packages.${pkgs.system}.default.overrideAttrs (old: { + installPhase = old.installPhase + '' + rm -f $out/lib/zen-${old.version}/distribution/policies.json + rm -rf $out/lib + mkdir $out/opt/zen/distribution + ln -s ${pkgs.writeText "firefox-policies.json" (builtins.toJSON ffPolicies)} \ + "$out/opt/zen/distribution/policies.json" + ''; + }); + +in { imports = [ @@ -94,10 +114,14 @@ starship taskwarrior3 delta + (flameshot.override { enableWlrSupport = true; }) # Here until i can fix firefox's stupid devtools issue chromium + # Maybe will work? + customZen + # Wrapped programs for some env variables (pkgs.writeScriptBin "hyprlock" '' #! ${pkgs.bash}/bin/bash -- cgit v1.2.3