Fix a lot of module options

This commit is contained in:
NullBite 2024-02-08 16:53:38 +01:00
parent 405f7b4329
commit ff029aea41
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
4 changed files with 7 additions and 4 deletions

View File

@ -22,7 +22,7 @@ in
profile.base.enable = true;
packageSets.multimedia.enable = mkDefault true;
programs.syncthing.enable = mkDefault true;
common = {
hardware = {
bluetooth.enable = mkDefault true;
sound.enable = mkDefault true;
};

View File

@ -3,7 +3,10 @@ let
cfg = config.nixfiles.common.me;
in
{
options.nixfiles.common.me = lib.mkEnableOption "my user account";
options.nixfiles.common.me = {
enable = lib.mkEnableOption "my user account";
};
config = lib.mkIf cfg.enable {
users.users.nullbite = {
isNormalUser = true;

View File

@ -19,5 +19,5 @@ in
networking.wireguard.enable = true;
};
options = {
nixfiles.common.remoteAccess = lib.mkEnableOption "remote access options" ; };
nixfiles.common.remoteAccess.enable = lib.mkEnableOption "remote access options" ; };
}

View File

@ -12,7 +12,7 @@ in
(lib.mkIf cfg.enable {
# Enable my account
nixfiles.common.me = lib.mkDefault true;
nixfiles.common.me.enable = lib.mkDefault true;
# locale settings
i18n = {