fixed naming convention

This commit is contained in:
LarsZauberer 2024-04-13 19:03:30 +02:00
commit ffbef09ac0
3 changed files with 8 additions and 7 deletions

View file

@ -41,6 +41,10 @@
userEmail = "wasser.ian@gmail.com";
defaultBranch = "main";
};
firefox = {
enable = true;
};
};
services = {

View file

@ -15,9 +15,6 @@
"DP-1,1920x1080@60,2560x0,1"
];
};
firefox = {
enable = true;
};
};
services.getty.autologinUser = "lars";

View file

@ -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];
};
};
}