mv firefox to module

This commit is contained in:
smayzy 2025-07-08 17:39:23 +02:00
parent 3bb89d0b97
commit 6966de63c9
4 changed files with 23 additions and 2 deletions

View File

@ -12,6 +12,7 @@
steam.enable = true;
prism.enable = true;
fzf.enable = true;
firefox.enable = true;
};
home-manager = {
@ -97,7 +98,5 @@
];
};
programs.firefox.enable = true;
programs.zsh.enable = true;
}

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./firefox.nix
];
}

View File

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.firefox.enable = mkOption {
type = types.bool;
default = false;
description = "firefox";
};
config = mkIf config.smayzy.firefox.enable {
programs.firefox.enable = true;
};
}

View File

@ -6,6 +6,7 @@
./hardware
./virt
./games
./browser
];
# Timzone and locales (same for all machines so I put it here)