tested and confirms it works

This commit is contained in:
2026-11-09 18:15:45 -05:00
parent 1991b48f98
commit bf40b1d4a6
8 changed files with 18 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
{ ... }:
{ pkgs, ... }:
{
# This file installs these apps on all configurations
@@ -39,4 +39,4 @@
"vscodium"
"firefox"
];
}
}

View File

@@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{ pkgs, lib, config, ... }:
let
cfg = config.archiveApps;
@@ -30,12 +30,12 @@ let
'';
in
{
optiosn.archiveApps = lib.mkOption {
type = lib.types.typesOf (lib.types.attrsOf lib.types.str);
options.archiveApps = lib.mkOption {
type = lib.types.listOf (lib.types.attrsOf lib.types.str);
default = [ ];
description = "Apps distributed as .zip archives to install into /Applications";
}
};
system.activationScripts.postActivation.text =
config.system.activationScripts.postActivation.text =
lib.concatMapStringsSep "\n" appScript cfg;
}

View File

@@ -22,10 +22,10 @@ in
{
options.pkgInstalls = lib.mkOption {
type = lib.types.listOf (lib.types.attrsOf lib.types.str);
default = [ ];'
default = [ ];
description = "PKG files to install on activation";
};
system.activationScripts.postActivation.text =
config.system.activationScripts.postActivation.text =
lib.concatMapStringsSep "\n" installScript cfg;
}