yep, more dotfiles

firefox: try out zen-browser

wiro.world 8b28c648 a9665d1d

verified
Changed files
+73 -95
home-manager
pkgs
+50 -84
flake.lock
···
},
"flake-utils": {
"inputs": {
-
"systems": "systems_2"
-
},
-
"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_2": {
-
"inputs": {
-
"systems": "systems_4"
},
"locked": {
"lastModified": 1694529238,
···
},
"gomod2nix": {
"inputs": {
-
"flake-utils": "flake-utils_2",
"nixpkgs": [
"tangled",
"nixpkgs"
···
"type": "github"
}
},
"htmx-src": {
"flake": false,
"locked": {
···
"url": "https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip"
}
},
-
"jujutsu": {
-
"inputs": {
-
"flake-utils": "flake-utils",
-
"nixpkgs": [
-
"unixpkgs"
-
],
-
"rust-overlay": "rust-overlay_3"
-
},
-
"locked": {
-
"lastModified": 1759360197,
-
"narHash": "sha256-OW8kSDBBSZr0G3U27AAkZ3cH3TJmSARbg9Pc4qZ6tA0=",
-
"owner": "jj-vcs",
-
"repo": "jj",
-
"rev": "22900c9a9ba362efa442fed2dd4e6e1d5c22cc7a",
-
"type": "github"
-
},
-
"original": {
-
"owner": "jj-vcs",
-
"repo": "jj",
-
"type": "github"
-
}
-
},
"lanzaboote": {
"inputs": {
"crane": "crane",
···
"unixpkgs"
],
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
-
"rust-overlay": "rust-overlay_4"
},
"locked": {
"lastModified": 1737639419,
···
"git-leave": "git-leave",
"helix": "helix",
"home-manager": "home-manager",
-
"jujutsu": "jujutsu",
"lanzaboote": "lanzaboote",
"nix-darwin": "nix-darwin",
"nixos-hardware": "nixos-hardware",
···
"stylix": "stylix",
"tangled": "tangled",
"unixpkgs": "unixpkgs",
-
"wakatime-ls": "wakatime-ls"
}
},
"rust-overlay": {
···
"rust-overlay_3": {
"inputs": {
"nixpkgs": [
-
"jujutsu",
-
"nixpkgs"
-
]
-
},
-
"locked": {
-
"lastModified": 1755139244,
-
"narHash": "sha256-SN1BFA00m+siVAQiGLtTwjv9LV9TH5n8tQcSziV6Nv4=",
-
"owner": "oxalica",
-
"repo": "rust-overlay",
-
"rev": "aeae248beb2a419e39d483dd9b7fec924aba8d4d",
-
"type": "github"
-
},
-
"original": {
-
"owner": "oxalica",
-
"repo": "rust-overlay",
-
"type": "github"
-
}
-
},
-
"rust-overlay_4": {
-
"inputs": {
-
"nixpkgs": [
"lanzaboote",
"nixpkgs"
]
···
"type": "github"
}
},
-
"rust-overlay_5": {
"inputs": {
"nixpkgs": [
"wakatime-ls",
···
"nixpkgs"
],
"nur": "nur",
-
"systems": "systems_3",
"tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes",
···
"type": "github"
}
},
-
"systems_4": {
-
"locked": {
-
"lastModified": 1681028828,
-
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
-
"owner": "nix-systems",
-
"repo": "default",
-
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
-
"type": "github"
-
},
-
"original": {
-
"owner": "nix-systems",
-
"repo": "default",
-
"type": "github"
-
}
-
},
"tangled": {
"inputs": {
"flake-compat": "flake-compat_2",
···
"nixpkgs": [
"nixpkgs"
],
-
"rust-overlay": "rust-overlay_5"
},
"locked": {
"lastModified": 1752245636,
···
"original": {
"owner": "mrnossiom",
"repo": "wakatime-ls",
"type": "github"
}
}
···
},
"flake-utils": {
"inputs": {
+
"systems": "systems_3"
},
"locked": {
"lastModified": 1694529238,
···
},
"gomod2nix": {
"inputs": {
+
"flake-utils": "flake-utils",
"nixpkgs": [
"tangled",
"nixpkgs"
···
"type": "github"
}
},
+
"home-manager_2": {
+
"inputs": {
+
"nixpkgs": [
+
"zen-browser",
+
"nixpkgs"
+
]
+
},
+
"locked": {
+
"lastModified": 1752603129,
+
"narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=",
+
"owner": "nix-community",
+
"repo": "home-manager",
+
"rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b",
+
"type": "github"
+
},
+
"original": {
+
"owner": "nix-community",
+
"repo": "home-manager",
+
"type": "github"
+
}
+
},
"htmx-src": {
"flake": false,
"locked": {
···
"url": "https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip"
}
},
"lanzaboote": {
"inputs": {
"crane": "crane",
···
"unixpkgs"
],
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
+
"rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1737639419,
···
"git-leave": "git-leave",
"helix": "helix",
"home-manager": "home-manager",
"lanzaboote": "lanzaboote",
"nix-darwin": "nix-darwin",
"nixos-hardware": "nixos-hardware",
···
"stylix": "stylix",
"tangled": "tangled",
"unixpkgs": "unixpkgs",
+
"wakatime-ls": "wakatime-ls",
+
"zen-browser": "zen-browser"
}
},
"rust-overlay": {
···
"rust-overlay_3": {
"inputs": {
"nixpkgs": [
"lanzaboote",
"nixpkgs"
]
···
"type": "github"
}
},
+
"rust-overlay_4": {
"inputs": {
"nixpkgs": [
"wakatime-ls",
···
"nixpkgs"
],
"nur": "nur",
+
"systems": "systems_2",
"tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes",
···
"type": "github"
}
},
"tangled": {
"inputs": {
"flake-compat": "flake-compat_2",
···
"nixpkgs": [
"nixpkgs"
],
+
"rust-overlay": "rust-overlay_4"
},
"locked": {
"lastModified": 1752245636,
···
"original": {
"owner": "mrnossiom",
"repo": "wakatime-ls",
+
"type": "github"
+
}
+
},
+
"zen-browser": {
+
"inputs": {
+
"home-manager": "home-manager_2",
+
"nixpkgs": [
+
"unixpkgs"
+
]
+
},
+
"locked": {
+
"lastModified": 1761535208,
+
"narHash": "sha256-E1PobJMiFmVUX2YdqYk/MpKb0LXavOYvlg8DCBBzlHc=",
+
"owner": "0xc000022070",
+
"repo": "zen-browser-flake",
+
"rev": "79a94872a3e6993a051c4e22a2dcb02c1d088acf",
+
"type": "github"
+
},
+
"original": {
+
"owner": "0xc000022070",
+
"repo": "zen-browser-flake",
"type": "github"
}
}
+3 -3
flake.nix
···
helix.url = "github:helix-editor/helix";
helix.inputs.nixpkgs.follows = "unixpkgs";
-
jujutsu.url = "github:jj-vcs/jj";
-
jujutsu.inputs.nixpkgs.follows = "unixpkgs";
-
tangled.url = "git+https://tangled.org/@tangled.org/core";
tangled.inputs.nixpkgs.follows = "unixpkgs";
wakatime-ls.url = "github:mrnossiom/wakatime-ls";
wakatime-ls.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, ... }:
···
helix.url = "github:helix-editor/helix";
helix.inputs.nixpkgs.follows = "unixpkgs";
tangled.url = "git+https://tangled.org/@tangled.org/core";
tangled.inputs.nixpkgs.follows = "unixpkgs";
wakatime-ls.url = "github:mrnossiom/wakatime-ls";
wakatime-ls.inputs.nixpkgs.follows = "nixpkgs";
+
+
zen-browser.url = "github:0xc000022070/zen-browser-flake";
+
zen-browser.inputs.nixpkgs.follows = "unixpkgs";
};
outputs = { self, nixpkgs, ... }:
+15 -1
home-manager/fragments/firefox.nix
···
-
{ config
, lib
, pkgs
, ...
}:
let
cfg = config.local.fragment.firefox;
in
{
···
Firefox related
'';
config = lib.mkIf cfg.enable {
home.sessionVariables.BROWSER = lib.getExe pkgs.firefox;
stylix.targets.firefox = {
enable = false;
profileNames = [ "default" ];
};
programs.firefox = {
···
+
{ self
+
, config
, lib
, pkgs
, ...
}:
let
+
inherit (self.inputs) zen-browser;
+
cfg = config.local.fragment.firefox;
in
{
···
Firefox related
'';
+
imports = [
+
zen-browser.homeModules.beta
+
];
+
config = lib.mkIf cfg.enable {
home.sessionVariables.BROWSER = lib.getExe pkgs.firefox;
stylix.targets.firefox = {
enable = false;
profileNames = [ "default" ];
+
};
+
+
programs.zen-browser = {
+
enable = true;
+
+
policies = config.programs.firefox.policies;
+
# profiles = config.programs.firefox.profiles;
};
programs.firefox = {
+2 -1
home-manager/fragments/helix.nix
···
{ self
, config
, pkgs
, lpkgs
, lib
, ...
···
programs.helix = {
enable = true;
-
package = if flags.onlyCached then pkgs.helix else lpkgs.helix;
defaultEditor = true;
settings = {
···
{ self
, config
, pkgs
+
, upkgs
, lpkgs
, lib
, ...
···
programs.helix = {
enable = true;
+
package = if flags.onlyCached then upkgs.helix else lpkgs.helix;
defaultEditor = true;
settings = {
+2 -4
home-manager/fragments/jujutsu.nix
···
{ config
, lib
, pkgs
-
, lpkgs
, ...
}:
let
-
flags = config.local.flags;
-
keys = import ../../secrets/keys.nix;
cfg = config.local.fragment.jujutsu;
···
config = lib.mkIf cfg.enable {
programs.jujutsu = {
enable = true;
-
package = if flags.onlyCached then pkgs.jujutsu else lpkgs.jujutsu;
settings = {
user = {
···
{ config
, lib
, pkgs
+
, upkgs
, ...
}:
let
keys = import ../../secrets/keys.nix;
cfg = config.local.fragment.jujutsu;
···
config = lib.mkIf cfg.enable {
programs.jujutsu = {
enable = true;
+
package = upkgs.jujutsu;
settings = {
user = {
+1 -2
pkgs/default.nix
···
{ self, system, ... }@pkgs:
let
-
inherit (self.inputs) agenix git-leave helix jujutsu wakatime-ls;
in
{
asak = pkgs.callPackage ./asak.nix { };
···
inherit (agenix.packages.${system}) agenix;
inherit (git-leave.packages.${system}) git-leave;
inherit (helix.packages.${system}) helix;
-
inherit (jujutsu.packages.${system}) jujutsu;
inherit (wakatime-ls.packages.${system}) wakatime-ls;
}
···
{ self, system, ... }@pkgs:
let
+
inherit (self.inputs) agenix git-leave helix wakatime-ls;
in
{
asak = pkgs.callPackage ./asak.nix { };
···
inherit (agenix.packages.${system}) agenix;
inherit (git-leave.packages.${system}) git-leave;
inherit (helix.packages.${system}) helix;
inherit (wakatime-ls.packages.${system}) wakatime-ls;
}