From 91f39d58511abbb9f0bc15168662c6fd79e4af2f Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Tue, 1 Jul 2025 14:58:38 +0200 Subject: [PATCH] feat: zen --- flake.lock | 32 +++++++++++++++++++++++++----- flake.nix | 2 +- hosts/goingmerry/configuration.nix | 1 - hosts/goingmerry/home.nix | 4 +++- modules/home-manager/hyprland.nix | 5 ++--- 5 files changed, 33 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 8d2e911..90a6e5e 100644 --- a/flake.lock +++ b/flake.lock @@ -115,6 +115,27 @@ "type": "github" } }, + "home-manager_3": { + "inputs": { + "nixpkgs": [ + "zen-browser", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1751336185, + "narHash": "sha256-ptnVr2x+sl7cZcTuGx/0BOE2qCAIYHTcgfA+/h60ml0=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "96354906f58464605ff81d2f6c2ea23211cbf051", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, "lowdown-src": { "flake": false, "locked": { @@ -328,18 +349,19 @@ }, "zen-browser": { "inputs": { + "home-manager": "home-manager_3", "nixpkgs": "nixpkgs_5" }, "locked": { - "lastModified": 1727721329, - "narHash": "sha256-QYlWZwUSwrM7BuO+dXclZIwoPvBIuJr6GpFKv9XKFPI=", - "owner": "MarceColl", + "lastModified": 1751341208, + "narHash": "sha256-D659vmh5bseh5rB0tH4osXFXimh+QQLBBMKkdMH/DMk=", + "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "e6ab73f405e9a2896cce5956c549a9cc359e5fcc", + "rev": "97da6393f00eff37d787dcb1447afc65e9b4d57e", "type": "github" }, "original": { - "owner": "MarceColl", + "owner": "0xc000022070", "repo": "zen-browser-flake", "type": "github" } diff --git a/flake.nix b/flake.nix index 6bf46af..ae3e8b0 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05"; - zen-browser.url = "github:MarceColl/zen-browser-flake"; + zen-browser.url = "github:0xc000022070/zen-browser-flake"; mms.url = "github:mkaito/nixos-modded-minecraft-servers"; agenix.url = "github:ryantm/agenix"; diff --git a/hosts/goingmerry/configuration.nix b/hosts/goingmerry/configuration.nix index 2d9df80..6602ac3 100644 --- a/hosts/goingmerry/configuration.nix +++ b/hosts/goingmerry/configuration.nix @@ -138,7 +138,6 @@ google-chrome goose hyprshot - inputs.zen-browser.packages."${system}".specific jdk jdt-language-server kdePackages.dolphin diff --git a/hosts/goingmerry/home.nix b/hosts/goingmerry/home.nix index 6c63f03..0e4c69b 100644 --- a/hosts/goingmerry/home.nix +++ b/hosts/goingmerry/home.nix @@ -1,9 +1,10 @@ { - config, pkgs, + inputs, ... }: { imports = [ + inputs.zen-browser.homeModules.twilight ../../modules/home-manager/hyprland.nix ../../modules/home-manager/pass.nix ../../modules/home-manager/btop.nix @@ -92,5 +93,6 @@ }; # Let Home Manager install and manage itself. + programs.zen-browser.enable = true; programs.home-manager.enable = true; } diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index e414b21..b9ab8f3 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -15,8 +15,8 @@ [ "$mod SHIFT, E, exit" "$mod, Q, killactive" - "$mod, B, exec, brave" - "SUPERCTRLALTSHIFT, L, exec, brave https://linkedin.com" + "$mod, B, exec, zen" + "SUPERCTRLALTSHIFT, L, exec, zen https://linkedin.com" "$mod, return, exec, alacritty" "$mod,E,exec,nautilus" "$mod,D,exec,killall -q rofi; rofi -show drun" @@ -165,7 +165,6 @@ ]; }; }; - # Optional, hint Electron apps to use Wayland: home.sessionVariables = { NIXOS_OZONE_WL = "1"; ELECTRON_OZONE_PLATFORM_HINT = "auto";