diff options
| author | Martin Fischer <martin@push-f.com> | 2026-02-21 19:04:55 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-02-21 19:19:32 +0100 |
| commit | 8aac00d135764626b175c32b01a6257646676d64 (patch) | |
| tree | a88be89d986332df62059b86d2d8292ce09ac0c1 /nixos | |
| parent | 8b5a4f29b4578aa005c9fe8d2f3bb8ce301004d0 (diff) | |
refactor: move let sources to imports definition
Imports cannot use _module.args since that leads to a cyclic dependency.
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/profiles/common/default.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/nixos/profiles/common/default.nix b/nixos/profiles/common/default.nix index a508a32..1705adf 100644 --- a/nixos/profiles/common/default.nix +++ b/nixos/profiles/common/default.nix @@ -1,12 +1,13 @@ { config, pkgs, ... }: -let - sources = import <top/npins>; -in { - imports = [ - ./sanix.nix - ./basics.nix - "${sources.agenix}/modules/age.nix" - ]; + imports = + let + sources = import <top/npins>; + in + [ + ./sanix.nix + ./basics.nix + "${sources.agenix}/modules/age.nix" + ]; } |
