Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Jan 2, 2024
1 parent 14c2382 commit 2befbbe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

jobs:
lockfile:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check flake
uses: DeterminateSystems/flake-checker-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 3 additions & 15 deletions src/haumea/nixosModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,8 @@ let
f
];

callModuleLazily =
inputs: path:
let
importer = l.scopedImport inputs;
f = toFunction (importer path);
in
lazyArgsPerParameter f inputs;

callModuleLazily' =
inputs: path: importer:
let
f = toFunction (importer path);
in
lazyArgsPerParameter f inputs;
callModuleLazily = haumea.lib.loaders.scoped;
callModuleLazily' = haumea.lib.loaders.default;

removeFileSuffix = l.removeSuffix ".nix";
removeDefault = l.removeSuffix "/default";
Expand Down Expand Up @@ -134,7 +122,7 @@ let
if (l.isFunction v) then
lazyArgsPerParameter v (moduleArgs // extraArgs)
else if (l.isPath v) then
callModuleLazily' (moduleArgs // extraArgs) v import
callModuleLazily' (moduleArgs // extraArgs) v
else
v
;
Expand Down

0 comments on commit 2befbbe

Please sign in to comment.