diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-10-13 19:23:05 +0000 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-10-13 19:24:15 +0000 |
| commit | 4396dcc62119ea96e648bdf637ed785c224d3f03 (patch) | |
| tree | 26ebfbc3e778d4d69a6372705066e0eecf67cc33 /flake.nix | |
| parent | 36bec51e58c092a7bacb26ce4a0105f1470805bc (diff) | |
switch to nixosModules
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -42,17 +42,14 @@ ]))); }; - nixosConfigurations.core = extraModules: nixpkgs.lib.nixosSystem { - inherit lib system; - specialArgs = {inherit inputs;}; - modules = extraModules ++ [ - ({config, ... }: { - nixpkgs.overlays = with lib; [(composeManyExtensions [ - (import ./overlays/vimPlugins.nix {inherit pkgs;}) - ])]; - }) - ./profiles/station/k8s.nix - ] ++ (attrValues + nixosModules.core = { ... }: { + imports = [ + ({config, ... }: { + nixpkgs.overlays = with lib; [(composeManyExtensions [ + (import ./overlays/vimPlugins.nix {inherit pkgs;}) + ])]; + }) + ] ++ (attrValues (attrsets.mergeAttrsList (map modulesIn [ ./profiles/core ]))); |
