mv firefox to module
This commit is contained in:
parent
3bb89d0b97
commit
6966de63c9
@ -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;
|
||||
}
|
||||
|
||||
6
modules/nix/browser/default.nix
Normal file
6
modules/nix/browser/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./firefox.nix
|
||||
];
|
||||
}
|
||||
15
modules/nix/browser/firefox.nix
Normal file
15
modules/nix/browser/firefox.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
@ -6,6 +6,7 @@
|
||||
./hardware
|
||||
./virt
|
||||
./games
|
||||
./browser
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user