From fe2c86611538b2b50ec286a788aadab36b1e6598 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Wed, 22 Oct 2025 16:53:54 +0100 Subject: [PATCH] Chrome instead of chromium for desktops. --- flake.lock | 83 +++++++++++++++++++++++++++++++++------ flake.nix | 11 +++++- home/profiles/desktop.nix | 2 +- 3 files changed, 82 insertions(+), 14 deletions(-) diff --git a/flake.lock b/flake.lock index 5a9e356..8abfa69 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,27 @@ { "nodes": { + "browser-previews": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs-unstable" + ], + "systems": "systems" + }, + "locked": { + "lastModified": 1761074928, + "narHash": "sha256-hjy44ZxzQURjtPZ6WKpTDkD3aae9IaBv9pVL/n5KcD8=", + "owner": "nix-community", + "repo": "browser-previews", + "rev": "5e9b89761aeffb1a41b8a0446ead327654f446a3", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "browser-previews", + "type": "github" + } + }, "deploy-rs": { "inputs": { "flake-compat": "flake-compat", @@ -68,13 +90,13 @@ "devshell": "devshell", "flake-compat": "flake-compat_2", "flake-parts": "flake-parts", - "flake-utils": "flake-utils", + "flake-utils": "flake-utils_2", "foundry-nix": "foundry-nix", "nixpkgs": [ "nixpkgs-unstable" ], "nixpkgs-unstable": "nixpkgs-unstable", - "systems": "systems_2", + "systems": "systems_3", "treefmt-nix": "treefmt-nix" }, "locked": { @@ -164,7 +186,7 @@ "flake-utils": { "inputs": { "systems": [ - "ethereum-nix", + "browser-previews", "systems" ] }, @@ -184,7 +206,28 @@ }, "flake-utils_2": { "inputs": { - "systems": "systems_3" + "systems": [ + "ethereum-nix", + "systems" + ] + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_3": { + "inputs": { + "systems": "systems_4" }, "locked": { "lastModified": 1731533236, @@ -380,7 +423,7 @@ "nixpkgs-unstable" ], "nuschtosSearch": "nuschtosSearch", - "systems": "systems_4" + "systems": "systems_5" }, "locked": { "lastModified": 1759878636, @@ -398,7 +441,7 @@ }, "nuschtosSearch": { "inputs": { - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils_3", "ixx": "ixx", "nixpkgs": [ "nixvim", @@ -421,6 +464,7 @@ }, "root": { "inputs": { + "browser-previews": "browser-previews", "deploy-rs": "deploy-rs", "disko": "disko", "ethereum-nix": "ethereum-nix", @@ -455,16 +499,16 @@ }, "systems": { "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "lastModified": 1680978846, + "narHash": "sha256-Gtqg8b/v49BFDpDetjclCYXm8mAnTrUzR0JnE2nv5aw=", "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "repo": "x86_64-linux", + "rev": "2ecfcac5e15790ba6ce360ceccddb15ad16d08a8", "type": "github" }, "original": { "owner": "nix-systems", - "repo": "default", + "repo": "x86_64-linux", "type": "github" } }, @@ -513,6 +557,21 @@ "type": "github" } }, + "systems_5": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ @@ -536,7 +595,7 @@ }, "utils": { "inputs": { - "systems": "systems" + "systems": "systems_2" }, "locked": { "lastModified": 1731533236, diff --git a/flake.nix b/flake.nix index 86f0378..362ea2d 100644 --- a/flake.nix +++ b/flake.nix @@ -29,6 +29,10 @@ url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + browser-previews = { + url = "github:nix-community/browser-previews"; + inputs.nixpkgs.follows = "nixpkgs-unstable"; + }; }; outputs = @@ -42,6 +46,7 @@ home-manager, impermanence, sops-nix, + browser-previews, ... }@inputs: let @@ -54,6 +59,10 @@ }; }; + overlay-browser-previews = final: prev: { + browser-previews = browser-previews.packages.${prev.system}; + }; + mkHost = system: profile: modules: let @@ -70,7 +79,7 @@ ( { config, pkgs, ... }: { - nixpkgs.overlays = [ overlay-unstable ]; + nixpkgs.overlays = [ overlay-unstable overlay-browser-previews ]; nixpkgs.config.allowUnfree = true; } ) diff --git a/home/profiles/desktop.nix b/home/profiles/desktop.nix index a0fe45f..c587da6 100644 --- a/home/profiles/desktop.nix +++ b/home/profiles/desktop.nix @@ -3,7 +3,7 @@ let workstationProfile = import ./workstation.nix { inherit pkgs; }; desktopPkgs = with pkgs; [ - unstable.chromium + browser-previews.google-chrome foot # Wayland-native terminal emulator wofi # Application launcher for Wayland ];