summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-10-13 19:23:05 +0000
committerMike Vink <mike1994vink@gmail.com>2023-10-13 19:24:15 +0000
commit4396dcc62119ea96e648bdf637ed785c224d3f03 (patch)
tree26ebfbc3e778d4d69a6372705066e0eecf67cc33 /flake.nix
parent36bec51e58c092a7bacb26ce4a0105f1470805bc (diff)
switch to nixosModules
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix19
1 files changed, 8 insertions, 11 deletions
diff --git a/flake.nix b/flake.nix
index 6c9cd09..f5f4a36 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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
])));