Modularise firefox and rofi
This commit is contained in:
15
modules/app/firefox.nix
Normal file
15
modules/app/firefox.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.app.firefox;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.app.firefox = {
|
||||
enable = lib.mkEnableOption "firefox";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefox
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user