Update browsers
This commit is contained in:
parent
10adafe703
commit
b72d409a5a
15 changed files with 262 additions and 67 deletions
|
|
@ -14,7 +14,7 @@ let
|
||||||
summaryAppend = name: ''
|
summaryAppend = name: ''
|
||||||
echo "- [${name}](${name}.md)" >> src/SUMMARY.md
|
echo "- [${name}](${name}.md)" >> src/SUMMARY.md
|
||||||
'';
|
'';
|
||||||
system = (build_systems ../example/.)."example".options;
|
system = (build_systems { root = ../example/.; })."example".options;
|
||||||
makeOptionsDocPrograms = name: pkgs.nixosOptionsDoc { options = system.mods.${name}; };
|
makeOptionsDocPrograms = name: pkgs.nixosOptionsDoc { options = system.mods.${name}; };
|
||||||
conf = makeOptionsDoc system.conf;
|
conf = makeOptionsDoc system.conf;
|
||||||
paths = builtins.readDir ../modules/programs;
|
paths = builtins.readDir ../modules/programs;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
outputs =
|
outputs =
|
||||||
{ ... }@inputs:
|
{ ... }@inputs:
|
||||||
{
|
{
|
||||||
nixosConfigurations = inputs.dashNix.dashNixLib.build_systems ./.;
|
nixosConfigurations = inputs.dashNix.dashNixLib.build_systems { root = ./.; };
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
|
|
|
||||||
37
flake.lock
generated
37
flake.lock
generated
|
|
@ -1337,6 +1337,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_22": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726937504,
|
||||||
|
"narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "9357f4f23713673f310988025d9dc261c20e70c6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716330097,
|
"lastModified": 1716330097,
|
||||||
|
|
@ -1670,7 +1686,8 @@
|
||||||
"reset-plugins": "reset-plugins",
|
"reset-plugins": "reset-plugins",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"stable": "stable",
|
"stable": "stable",
|
||||||
"stylix": "stylix"
|
"stylix": "stylix",
|
||||||
|
"zen-browser": "zen-browser"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-overlay": {
|
"rust-overlay": {
|
||||||
|
|
@ -2064,6 +2081,24 @@
|
||||||
"repo": "xdg-desktop-portal-hyprland",
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"zen-browser": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_22"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1727287465,
|
||||||
|
"narHash": "sha256-XQAf5M593WmxgaXagtkci/H9DA3jSVx1TJk6F3X5VQo=",
|
||||||
|
"owner": "MarceColl",
|
||||||
|
"repo": "zen-browser-flake",
|
||||||
|
"rev": "96f1b5d80bf7360cb77c9b521f388324f18383a0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "MarceColl",
|
||||||
|
"repo": "zen-browser-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@
|
||||||
url = "github:JakeStanger/ironbar?ref=3a1c60442382f970cdb7669814b6ef3594d9f048";
|
url = "github:JakeStanger/ironbar?ref=3a1c60442382f970cdb7669814b6ef3594d9f048";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zen-browser.url = "github:MarceColl/zen-browser-flake";
|
||||||
|
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
base16.url = "github:SenchoPens/base16.nix";
|
base16.url = "github:SenchoPens/base16.nix";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
additionalHomeConfig,
|
additionalHomeConfig,
|
||||||
homeMods,
|
homeMods,
|
||||||
additionalHomeMods,
|
additionalHomeMods,
|
||||||
|
additionalInputs,
|
||||||
root,
|
root,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
@ -22,7 +23,7 @@
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs root;
|
inherit inputs root additionalInputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.${config.conf.username} = {
|
users.${config.conf.username} = {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,40 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
self,
|
self,
|
||||||
lib,
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
# build_systems
|
||||||
|
|
||||||
|
Builds system given a list of system names which are placed within your hosts/ directory. Note that each system has its own directory in hosts/ as well.
|
||||||
|
|
||||||
|
A minimal configuration requires the file configuration.nix within each system directory, this will be the base config that is used across both NisOS and home-manager, specific optional files can also be added, hardware.nix for NisOS configuration and home.nix for home-manager configuration.
|
||||||
|
|
||||||
|
The second parameter is the root of your configuration, which should be ./. in most cases.
|
||||||
|
|
||||||
|
`root`
|
||||||
|
|
||||||
|
: the root path of your configuration
|
||||||
|
|
||||||
|
# Example usage
|
||||||
|
:::{.example}
|
||||||
|
```nix
|
||||||
|
nixosConfigurations = build_systems { root = ./.; };
|
||||||
|
```
|
||||||
|
:::
|
||||||
|
*/
|
||||||
|
# let
|
||||||
|
# paths = builtins.readDir ;
|
||||||
|
# names = lib.lists.remove "default" (
|
||||||
|
# map (name: lib.strings.removeSuffix ".nix" name) (lib.attrsets.mapAttrsToList (name: _: name) paths)
|
||||||
|
# );
|
||||||
|
|
||||||
|
# in
|
||||||
|
build_systems =
|
||||||
|
{
|
||||||
|
root,
|
||||||
additionalMods ? {
|
additionalMods ? {
|
||||||
nixos = [ ];
|
nixos = [ ];
|
||||||
home = [ ];
|
home = [ ];
|
||||||
|
|
@ -32,40 +66,9 @@
|
||||||
../modules
|
../modules
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
additionalInputs ? { },
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
# build_systems
|
|
||||||
|
|
||||||
Builds system given a list of system names which are placed within your hosts/ directory. Note that each system has its own directory in hosts/ as well.
|
|
||||||
|
|
||||||
A minimal configuration requires the file configuration.nix within each system directory, this will be the base config that is used across both NisOS and home-manager, specific optional files can also be added, hardware.nix for NisOS configuration and home.nix for home-manager configuration.
|
|
||||||
|
|
||||||
The second parameter is the root of your configuration, which should be ./. in most cases.
|
|
||||||
|
|
||||||
`root`
|
|
||||||
|
|
||||||
: the root path of your configuration
|
|
||||||
|
|
||||||
# Example usage
|
|
||||||
:::{.example}
|
|
||||||
```nix
|
|
||||||
nixosConfigurations =
|
|
||||||
(build_systems [ "nixos" ] ./.);
|
|
||||||
```
|
|
||||||
:::
|
|
||||||
*/
|
|
||||||
# let
|
|
||||||
# paths = builtins.readDir ;
|
|
||||||
# names = lib.lists.remove "default" (
|
|
||||||
# map (name: lib.strings.removeSuffix ".nix" name) (lib.attrsets.mapAttrsToList (name: _: name) paths)
|
|
||||||
# );
|
|
||||||
|
|
||||||
# in
|
|
||||||
build_systems =
|
|
||||||
root:
|
|
||||||
builtins.listToAttrs (
|
builtins.listToAttrs (
|
||||||
map
|
map
|
||||||
(name: {
|
(name: {
|
||||||
|
|
@ -89,6 +92,7 @@
|
||||||
hostName = name;
|
hostName = name;
|
||||||
homeMods = mods.home;
|
homeMods = mods.home;
|
||||||
additionalHomeMods = additionalMods.home;
|
additionalHomeMods = additionalMods.home;
|
||||||
|
additionalInputs = additionalInputs;
|
||||||
};
|
};
|
||||||
modules =
|
modules =
|
||||||
[ mod ]
|
[ mod ]
|
||||||
|
|
|
||||||
23
modules/programs/browser/brave.nix
Normal file
23
modules/programs/browser/brave.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
options,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.mods.browser.brave = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = "Enables brave";
|
||||||
|
};
|
||||||
|
# TODO configure brave
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.mods.browser.brave.enable (
|
||||||
|
lib.optionalAttrs (options ? home.packages) {
|
||||||
|
home.packages = with pkgs; [ brave ];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
23
modules/programs/browser/chromium.nix
Normal file
23
modules/programs/browser/chromium.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
options,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.mods.browser.chromium = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = "Enables chromium";
|
||||||
|
};
|
||||||
|
# TODO configure chromium
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.mods.browser.chromium.enable (
|
||||||
|
lib.optionalAttrs (options ? home.packages) {
|
||||||
|
home.packages = with pkgs; [ chromium ];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
8
modules/programs/browser/default.nix
Normal file
8
modules/programs/browser/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./firefox.nix
|
||||||
|
./zen.nix
|
||||||
|
./chromium.nix
|
||||||
|
./brave.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options.mods.firefox = {
|
options.mods.browser.firefox = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
default = true;
|
default = false;
|
||||||
example = false;
|
example = true;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
description = "Enables firefox";
|
description = "Enables firefox";
|
||||||
};
|
};
|
||||||
|
|
@ -62,22 +62,45 @@
|
||||||
type = with lib.types; listOf package;
|
type = with lib.types; listOf package;
|
||||||
description = "Firefox extensions (from nur)";
|
description = "Firefox extensions (from nur)";
|
||||||
};
|
};
|
||||||
|
profiles = lib.mkOption {
|
||||||
|
default = [
|
||||||
|
{
|
||||||
|
name = "${config.conf.username}";
|
||||||
|
value = {
|
||||||
|
isDefault = true;
|
||||||
|
id = 0;
|
||||||
|
extensions = config.mods.browser.firefox.extensions;
|
||||||
};
|
};
|
||||||
config = lib.mkIf config.mods.firefox.enable (
|
}
|
||||||
|
{
|
||||||
|
name = "special";
|
||||||
|
value = {
|
||||||
|
isDefault = false;
|
||||||
|
id = 1;
|
||||||
|
extensions = config.mods.browser.firefox.extensions;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
example = [
|
||||||
|
{
|
||||||
|
name = "custom";
|
||||||
|
value = {
|
||||||
|
isDefault = true;
|
||||||
|
id = 0;
|
||||||
|
extensions = config.mods.browser.firefox.extensions;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
type = with lib.types; listOf (attrsOf anything);
|
||||||
|
description = "Firefox extensions (from nur)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.mods.browser.firefox.enable (
|
||||||
lib.optionalAttrs (options ? programs.firefox.profiles) {
|
lib.optionalAttrs (options ? programs.firefox.profiles) {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
policies = config.mods.firefox.configuration;
|
policies = config.mods.browser.firefox.configuration;
|
||||||
profiles.${config.conf.username} = {
|
profiles = builtins.listToAttrs config.mods.browser.firefox.profiles;
|
||||||
isDefault = true;
|
|
||||||
id = 0;
|
|
||||||
extensions = config.mods.firefox.extensions;
|
|
||||||
};
|
|
||||||
profiles."special" = {
|
|
||||||
isDefault = false;
|
|
||||||
id = 1;
|
|
||||||
extensions = config.mods.firefox.extensions;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
35
modules/programs/browser/zen.nix
Normal file
35
modules/programs/browser/zen.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
options,
|
||||||
|
system,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.mods.browser.zen = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = "Enables the zen browser";
|
||||||
|
};
|
||||||
|
optimization = lib.mkOption {
|
||||||
|
default = "specific";
|
||||||
|
example = "generic";
|
||||||
|
type =
|
||||||
|
with lib.types;
|
||||||
|
(enum [
|
||||||
|
"specific"
|
||||||
|
"generic"
|
||||||
|
]);
|
||||||
|
description = "Enables the zen browser";
|
||||||
|
};
|
||||||
|
# TODO configure zen
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.mods.browser.zen.enable (
|
||||||
|
lib.optionalAttrs (options ? home.packages) {
|
||||||
|
home.packages = [ inputs.zen-browser.packages."${system}".${config.mods.browser.zen.optimization} ];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
./acpid.nix
|
./acpid.nix
|
||||||
./basePackages.nix
|
./basePackages.nix
|
||||||
./bluetooth.nix
|
./bluetooth.nix
|
||||||
|
./browser
|
||||||
./coding.nix
|
./coding.nix
|
||||||
./drives.nix
|
./drives.nix
|
||||||
./firefox.nix
|
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./flatpak.nix
|
./flatpak.nix
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
options,
|
options,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
@ -68,11 +69,17 @@
|
||||||
type = with lib.types; nullOr package;
|
type = with lib.types; nullOr package;
|
||||||
description = "The email client";
|
description = "The email client";
|
||||||
};
|
};
|
||||||
additionalBrowser = lib.mkOption {
|
browser = lib.mkOption {
|
||||||
default = pkgs.brave;
|
default = inputs.zen-browser.packages.${pkgs.system}.specific;
|
||||||
example = null;
|
example = "firefox";
|
||||||
type = with lib.types; nullOr package;
|
type =
|
||||||
description = "Additional browser -> second to firefox, the only installed browser if firefox is disabled";
|
with lib.types;
|
||||||
|
nullOr (
|
||||||
|
either (enum [
|
||||||
|
"firefox"
|
||||||
|
]) package
|
||||||
|
);
|
||||||
|
description = "The browser (the enum variants have preconfigured modules)";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.optionalAttrs (options ? home.packages) {
|
config = lib.optionalAttrs (options ? home.packages) {
|
||||||
|
|
@ -87,8 +94,9 @@
|
||||||
(lib.mkIf (!isNull config.mods.homePackages.matrixClient) config.mods.homePackages.matrixClient)
|
(lib.mkIf (!isNull config.mods.homePackages.matrixClient) config.mods.homePackages.matrixClient)
|
||||||
(lib.mkIf (!isNull config.mods.homePackages.mailClient) config.mods.homePackages.mailClient)
|
(lib.mkIf (!isNull config.mods.homePackages.mailClient) config.mods.homePackages.mailClient)
|
||||||
(lib.mkIf (
|
(lib.mkIf (
|
||||||
!isNull config.mods.homePackages.additionalBrowser
|
# NOTE: This should be package, but nix doesn't have that....
|
||||||
) config.mods.homePackages.additionalBrowser)
|
builtins.isAttrs config.mods.homePackages.browser && !isNull config.mods.homePackages.browser
|
||||||
|
) config.mods.homePackages.browser)
|
||||||
adw-gtk3
|
adw-gtk3
|
||||||
bat
|
bat
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|
@ -129,10 +137,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs =
|
programs =
|
||||||
if config.mods.homePackages.useDefaultPackages then
|
|
||||||
config.mods.homePackages.specialPrograms
|
config.mods.homePackages.specialPrograms
|
||||||
|
// (
|
||||||
|
if config.mods.homePackages.browser == "firefox" then
|
||||||
|
{
|
||||||
|
firefox = {
|
||||||
|
enable = true;
|
||||||
|
policies = config.mods.browser.firefox.configuration;
|
||||||
|
profiles = builtins.listToAttrs config.mods.browser.firefox.profiles;
|
||||||
|
};
|
||||||
|
}
|
||||||
else
|
else
|
||||||
config.mods.homePackages.specialPrograms;
|
{ }
|
||||||
|
);
|
||||||
services =
|
services =
|
||||||
if config.mods.homePackages.useDefaultPackages then
|
if config.mods.homePackages.useDefaultPackages then
|
||||||
config.mods.homePackages.specialServices
|
config.mods.homePackages.specialServices
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,17 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
browserName =
|
||||||
|
if (builtins.isString config.mods.homePackages.browser) then
|
||||||
|
config.mods.homePackages.browser
|
||||||
|
else if
|
||||||
|
config.mods.homePackages.browser ? meta && config.mods.homePackages.browser.meta ? mainProgram
|
||||||
|
then
|
||||||
|
config.mods.homePackages.browser.meta.mainProgram
|
||||||
|
else
|
||||||
|
config.mods.homePackages.browser.pname;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.mods = {
|
options.mods = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
|
|
@ -106,7 +117,7 @@
|
||||||
|
|
||||||
bindm = [
|
bindm = [
|
||||||
"$mod, mouse:272, movewindow"
|
"$mod, mouse:272, movewindow"
|
||||||
"$mod, mouse:273, resizewindow"
|
"$mod, mouse:273, resizeactive"
|
||||||
];
|
];
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
|
|
@ -116,8 +127,10 @@
|
||||||
''$mod SUPERSHIFTALT,S,exec,grim -c -g "2560,0 3440x1440" - | wl-copy''
|
''$mod SUPERSHIFTALT,S,exec,grim -c -g "2560,0 3440x1440" - | wl-copy''
|
||||||
|
|
||||||
# regular programs
|
# regular programs
|
||||||
"$mod SUPER,F,exec,firefox"
|
"$mod SUPER,F,exec,${browserName}"
|
||||||
"$mod SUPERSHIFT,F,exec,firefox -p special"
|
(lib.mkIf (
|
||||||
|
browserName == "firefox" || browserName == "zen"
|
||||||
|
) "$mod SUPERSHIFT,F,exec,${browserName} -p special")
|
||||||
"$mod SUPER,T,exec,kitty -1"
|
"$mod SUPER,T,exec,kitty -1"
|
||||||
"$mod SUPER,E,exec,nautilus -w"
|
"$mod SUPER,E,exec,nautilus -w"
|
||||||
"$mod SUPER,N,exec,neovide"
|
"$mod SUPER,N,exec,neovide"
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,17 @@
|
||||||
options,
|
options,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
browserName =
|
||||||
|
if (builtins.isString config.mods.homePackages.browser) then
|
||||||
|
config.mods.homePackages.browser
|
||||||
|
else if
|
||||||
|
config.mods.homePackages.browser ? meta && config.mods.homePackages.browser.meta ? mainProgram
|
||||||
|
then
|
||||||
|
config.mods.homePackages.browser.meta.mainProgram
|
||||||
|
else
|
||||||
|
config.mods.homePackages.browser.pname;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.mods.mime = {
|
options.mods.mime = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
|
|
@ -72,7 +83,7 @@
|
||||||
description = "Browser X mime handlers";
|
description = "Browser X mime handlers";
|
||||||
};
|
};
|
||||||
browserApplications = lib.mkOption {
|
browserApplications = lib.mkOption {
|
||||||
default = [ "firefox" ];
|
default = [ "${browserName}" ];
|
||||||
example = [ ];
|
example = [ ];
|
||||||
type = with lib.types; listOf str;
|
type = with lib.types; listOf str;
|
||||||
description = "Applications used for handling browser mime types";
|
description = "Applications used for handling browser mime types";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue