From f77555e18fb06010118d0576aff10acc39242452 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Sat, 12 Apr 2025 19:53:02 -0400 Subject: updated zen (broken policies for now) and hyprland --- home-config/nix-home-manager/home.nix | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) (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 4c2c5f7..06096de 100644 --- a/home-config/nix-home-manager/home.nix +++ b/home-config/nix-home-manager/home.nix @@ -1,24 +1,4 @@ -{ 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 +{ config, pkgs, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, clipboard-sync, hypr-dynamic-cursors, home-manager, ... }: { imports = [ @@ -78,13 +58,18 @@ in }; }; + programs.zen-browser = { + enable = true; + policies = import ./zenPolicies.nix; + }; + # The home.packages option allows you to install Nix packages into your # environment. home.packages = with pkgs; [ # # Adds the 'hello' command to your environment. It prints a friendly # # "Hello, world!" when run. # pkgs.hello - nix # Used to keep nix up to date when I don't update the guix package + # nix # Used to keep nix up to date when I don't update the guix package yt-dlp #pass rustup @@ -115,14 +100,12 @@ in starship taskwarrior3 delta + pyprland #(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