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