flake: use nixosModules

This commit is contained in:
Guanran Wang 2023-12-16 02:40:41 +08:00
parent 74baa7b6bd
commit 99bdd0927e
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 2 additions and 2 deletions

View file

@ -157,6 +157,7 @@
in { in {
formatter = eachSystem (system: inputs.nixpkgs.legacyPackages.${system}.alejandra); formatter = eachSystem (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
packages = eachSystem (system: import ./pkgs inputs.nixpkgs.legacyPackages.${system}); packages = eachSystem (system: import ./pkgs inputs.nixpkgs.legacyPackages.${system});
nixosModules.default = ./nixos/modules;
### NixOS ### NixOS
nixosConfigurations = { nixosConfigurations = {

View file

@ -5,13 +5,12 @@
... ...
}: { }: {
imports = [ imports = [
../../modules
./nix ./nix
./packages ./packages
./sysctl.nix ./sysctl.nix
# Flake modules # Flake modules
inputs.self.nixosModules.default
inputs.disko.nixosModules.disko inputs.disko.nixosModules.disko
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
inputs.impermanence.nixosModules.impermanence inputs.impermanence.nixosModules.impermanence