pkgs.uvms: init
...with some basic optional persistence and without having to rebuild images for every app nix run -f . pkgs.uvms -- --persist-home librewolf alacritty --run librewolf --run alacritty
This commit is contained in:
parent
22b613d157
commit
384b45bdef
15 changed files with 1155 additions and 452 deletions
|
|
@ -4,6 +4,14 @@ let
|
|||
in
|
||||
lib.makeScope newScope (
|
||||
self:
|
||||
let
|
||||
callPackage =
|
||||
fun: overrides:
|
||||
let
|
||||
result = self.callPackage fun overrides;
|
||||
in
|
||||
result // { override = result.__originalOverride or result.override; };
|
||||
in
|
||||
dirToAttrs ./.
|
||||
[
|
||||
(
|
||||
|
|
@ -14,9 +22,9 @@ lib.makeScope newScope (
|
|||
(
|
||||
name: fpath: typ:
|
||||
if typ == "regular" then
|
||||
self.callPackage fpath { }
|
||||
callPackage fpath { }
|
||||
else if typ == "directory" && builtins.pathExists (fpath + "/package.nix") then
|
||||
self.callPackage (fpath + "/package.nix") { }
|
||||
callPackage (fpath + "/package.nix") { }
|
||||
else
|
||||
null
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue