mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
chore: move shared options to correct header
This commit is contained in:
parent
b5bde41718
commit
803649e5cb
1 changed files with 21 additions and 5 deletions
|
|
@ -3814,11 +3814,6 @@ in
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** Mirror home-manager shared options (automatically active)
|
|
||||||
:PROPERTIES:
|
|
||||||
:CUSTOM_ID: h:30b81bf9-1e69-4ce8-88af-5592896bcee4
|
|
||||||
:END:
|
|
||||||
|
|
||||||
|
|
||||||
#+begin_src nix-ts :tangle modules/home/common/sharedoptions.nix
|
#+begin_src nix-ts :tangle modules/home/common/sharedoptions.nix
|
||||||
{ lib, config, nixosConfig ? null, ... }:
|
{ lib, config, nixosConfig ? null, ... }:
|
||||||
|
|
@ -10336,6 +10331,27 @@ This section sets up all the imports that are used in the home-manager section.
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
**** Mirror home-manager shared options (automatically active)
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: h:30b81bf9-1e69-4ce8-88af-5592896bcee4
|
||||||
|
:END:
|
||||||
|
|
||||||
|
|
||||||
|
#+begin_src nix-ts :tangle modules/home/common/sharedoptions.nix
|
||||||
|
{ lib, config, nixosConfig ? null, ... }:
|
||||||
|
let
|
||||||
|
# mirrorAttrs = lib.mapAttrs (_: v: lib.mkDefault v) nixosConfig.swarselsystems;
|
||||||
|
inherit (lib) mkDefault mapAttrs filterAttrs;
|
||||||
|
mkDefaultCommonAttrs = base: defaults:
|
||||||
|
lib.mapAttrs (_: v: lib.mkDefault v)
|
||||||
|
(lib.filterAttrs (k: _: base ? ${k}) defaults);
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# config.swarselsystems = mirrorAttrs;
|
||||||
|
config.swarselsystems = lib.mkIf (nixosConfig != null) (mkDefaultCommonAttrs config.swarselsystems nixosConfig.swarselsystems);
|
||||||
|
}
|
||||||
|
#+end_src
|
||||||
|
|
||||||
**** General home-manager-settings
|
**** General home-manager-settings
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: h:4af4f67f-7c48-4754-b4bd-6800e3a66664
|
:CUSTOM_ID: h:4af4f67f-7c48-4754-b4bd-6800e3a66664
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue