fixed naming convention
This commit is contained in:
parent
c299b04517
commit
2c816c615c
3 changed files with 8 additions and 7 deletions
|
@ -41,6 +41,10 @@
|
|||
userEmail = "wasser.ian@gmail.com";
|
||||
defaultBranch = "main";
|
||||
};
|
||||
|
||||
firefox = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
"DP-1,1920x1080@60,2560x0,1"
|
||||
];
|
||||
};
|
||||
firefox = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.getty.autologinUser = "lars";
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ config, lib, inputs, pkgs, ... }:
|
||||
with lib; let
|
||||
username = config.modules.other.system.username;
|
||||
cfg = config.modules.firefox;
|
||||
cfg = config.modules.programs.firefox;
|
||||
in {
|
||||
options.modules.firefox = {
|
||||
options.modules.programs.firefox = {
|
||||
enable = mkEnableOption "firefox";
|
||||
extensions = mkOption {
|
||||
description = "firefox extensions (format like https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265)";
|
||||
|
@ -14,7 +14,7 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
programs.firefox = (lib.mkMerge [{
|
||||
programs.firefox = lib.mkMerge [{
|
||||
enable = true;
|
||||
policies = {
|
||||
ExtensionSettings = {
|
||||
|
@ -24,7 +24,7 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
} cfg.extensions]);
|
||||
} cfg.extensions];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue