328 current 1970-01-01 01:00:00 23.11.20240518.e7cc617 6.6.30-rt30 *
This commit is contained in:
@ -4,19 +4,21 @@
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myPrograms;
|
||||
cfg = config.myConfig.programs;
|
||||
in {
|
||||
imports = [./foot.nix ./thunderbird.nix ./nextcloud.nix ./udiskie.nix];
|
||||
|
||||
options = {
|
||||
myPrograms.enable = lib.mkEnableOption "programs for desktop use";
|
||||
options.myConfig.programs = {
|
||||
enable = lib.mkEnableOption "programs for desktop use";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
myPrograms.foot.enable = lib.mkDefault true;
|
||||
myPrograms.thunderbird.enable = lib.mkDefault true;
|
||||
myPrograms.nextcloud.enable = lib.mkDefault true;
|
||||
myPrograms.udiskie.enable = lib.mkDefault true;
|
||||
myConfig.programs = {
|
||||
foot.enable = lib.mkDefault true;
|
||||
thunderbird.enable = lib.mkDefault true;
|
||||
nextcloud.enable = lib.mkDefault true;
|
||||
udiskie.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
unzip
|
||||
|
@ -3,10 +3,10 @@
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myPrograms.foot;
|
||||
cfg = config.myConfig.programs.foot;
|
||||
in {
|
||||
options = {
|
||||
myPrograms.foot.enable = lib.mkEnableOption "foot, a lightweight wayland terminal emulator";
|
||||
options.myConfig.programs.foot = {
|
||||
enable = lib.mkEnableOption "foot, a lightweight wayland terminal emulator";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -3,10 +3,10 @@
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myPrograms.nextcloud;
|
||||
cfg = config.myConfig.programs.nextcloud;
|
||||
in {
|
||||
options = {
|
||||
myPrograms.nextcloud.enable = lib.mkEnableOption "nextcloud client";
|
||||
options.myConfig.programs.nextcloud = {
|
||||
enable = lib.mkEnableOption "nextcloud client";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -3,10 +3,10 @@
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myPrograms.thunderbird;
|
||||
cfg = config.myConfig.programs.thunderbird;
|
||||
in {
|
||||
options = {
|
||||
myPrograms.thunderbird.enable = lib.mkEnableOption "thunderbird, a email client";
|
||||
options.myConfig.programs.thunderbird = {
|
||||
enable = lib.mkEnableOption "thunderbird, a email client";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -3,10 +3,10 @@
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myPrograms.udiskie;
|
||||
cfg = config.myConfig.programs.udiskie;
|
||||
in {
|
||||
options = {
|
||||
myPrograms.udiskie.enable = lib.mkEnableOption "auto media mounting";
|
||||
options.myConfig.programs.udiskie = {
|
||||
enable = lib.mkEnableOption "auto media mounting";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
Reference in New Issue
Block a user