Compare commits
2 commits
5bddee4588
...
0abc5cc90f
Author | SHA1 | Date | |
---|---|---|---|
0abc5cc90f | |||
837b3d1b96 |
1 changed files with 3 additions and 4 deletions
|
@ -60,7 +60,7 @@ self = {
|
|||
( lib.filterAttrs (name: type:
|
||||
(
|
||||
(type == "regular" && lib.hasSuffix ".nix" name)
|
||||
|| (type == "directory" && builtins.pathExists "${./.}/hosts/${name}/default.nix")
|
||||
|| (type == "directory" && builtins.pathExists "${builtins.toString ./.}/hosts/${name}/default.nix")
|
||||
)
|
||||
&& !lib.hasPrefix "." name
|
||||
))
|
||||
|
@ -73,6 +73,7 @@ self = {
|
|||
builtins.attrValues
|
||||
builtins.listToAttrs
|
||||
];
|
||||
updateList = import ./update-list.nix self;
|
||||
# FIXME: currently impure
|
||||
# NOTE: to run, you need to evaluate outputs.nix instead of default.nix
|
||||
# nix-shell outputs.nix -A update
|
||||
|
@ -80,9 +81,7 @@ self = {
|
|||
updateScript = (self.packagesForSystem (builtins.currentSystem)).den-update-script;
|
||||
in updateScript {
|
||||
path = "";
|
||||
packages = lib.pipe ./update-list.nix [
|
||||
import
|
||||
(x: x self)
|
||||
packages = lib.pipe self.updateList [
|
||||
lib.attrsToList
|
||||
(lib.imap1 (i: {name, value}: {
|
||||
name = builtins.toString i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue