mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
32 lines
688 B
Nix
32 lines
688 B
Nix
{ self, ... }:
|
|
{
|
|
perSystem = { system, ... }:
|
|
let
|
|
mkApps = system: names: self: builtins.listToAttrs (map
|
|
(name: {
|
|
inherit name;
|
|
value = {
|
|
type = "app";
|
|
program = "${self.packages.${system}.${name}}/bin/${name}";
|
|
meta = {
|
|
description = "Custom app ${name}.";
|
|
};
|
|
};
|
|
})
|
|
names);
|
|
|
|
appNames = [
|
|
"swarsel-bootstrap"
|
|
"swarsel-install"
|
|
"swarsel-rebuild"
|
|
"swarsel-postinstall"
|
|
];
|
|
|
|
appSet = mkApps system appNames self;
|
|
in
|
|
{
|
|
apps = appSet // {
|
|
default = appSet.swarsel-bootstrap;
|
|
};
|
|
};
|
|
}
|