parent
655eac9ad6
commit
a67f0fd422
19 changed files with 409 additions and 57 deletions
checks
13
checks/apps.nix
Normal file
13
checks/apps.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
pkgs,
|
||||
self,
|
||||
}: let
|
||||
inherit (pkgs.lib) mapAttrs' nameValuePair removeAttrs removeSuffix;
|
||||
in
|
||||
mapAttrs'
|
||||
(name: app:
|
||||
nameValuePair "app-${name}" (pkgs.symlinkJoin {
|
||||
name = "app-${name}";
|
||||
paths = [(removeSuffix "/bin/${name}" (toString app.program))];
|
||||
}))
|
||||
(removeAttrs self.apps.${pkgs.system} ["genflake"])
|
|
@ -2,6 +2,7 @@
|
|||
pkgs,
|
||||
self,
|
||||
}: let
|
||||
apps = import ./apps.nix {inherit pkgs self;};
|
||||
nixosMachines = import ./machines.nix {inherit pkgs self;};
|
||||
in
|
||||
nixosMachines
|
||||
apps // nixosMachines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue