brian/profiles #1

Merged
brian merged 5 commits from brian/profiles into main 2026-11-09 18:16:34 -05:00
16 changed files with 210 additions and 119 deletions
Showing only changes of commit bf40b1d4a6 - Show all commits

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
result

View File

@@ -28,9 +28,9 @@
};
in
{
darwinConfigurations."Brians-MacBook-Air" = nix-darwin.lib.darwinSystem {
darwinConfigurations = {
personal = mkDarwin { profile = "personal"; user = "briannelson"; };
work = mkDarwin { profile = "work"; user = "briannelson"; };
work = mkDarwin { profile = "work"; user = "YOUR-WORK-USERNAME"; };
};
};
}

View File

@@ -1,4 +1,4 @@
{ ... }:
{ pkgs, ... }:
{
# This file installs these apps on all configurations

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;
}

View File

@@ -31,5 +31,5 @@
"libreoffice"
"protonvpn"
"rustdesk"
]
];
}

View File

@@ -4,6 +4,5 @@
imports = [
./cli-tools.nix
./apps.nix
./archive-installs.nix
]
];
}

View File

@@ -4,5 +4,5 @@
imports = [
./apps.nix
./cli-tools.nix
]
];
}