From 99bdd0927e754d64d449e33a6d838507f80ebfd2 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sat, 16 Dec 2023 02:40:41 +0800 Subject: [PATCH] flake: use nixosModules --- flake.nix | 1 + nixos/profiles/core/default.nix | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 5a2e9ba..6a17724 100755 --- a/flake.nix +++ b/flake.nix @@ -157,6 +157,7 @@ in { formatter = eachSystem (system: inputs.nixpkgs.legacyPackages.${system}.alejandra); packages = eachSystem (system: import ./pkgs inputs.nixpkgs.legacyPackages.${system}); + nixosModules.default = ./nixos/modules; ### NixOS nixosConfigurations = { diff --git a/nixos/profiles/core/default.nix b/nixos/profiles/core/default.nix index ebdd218..d2f6b6f 100644 --- a/nixos/profiles/core/default.nix +++ b/nixos/profiles/core/default.nix @@ -5,13 +5,12 @@ ... }: { imports = [ - ../../modules - ./nix ./packages ./sysctl.nix # Flake modules + inputs.self.nixosModules.default inputs.disko.nixosModules.disko inputs.home-manager.nixosModules.home-manager inputs.impermanence.nixosModules.impermanence