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 {
formatter = eachSystem (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
packages = eachSystem (system: import ./pkgs inputs.nixpkgs.legacyPackages.${system});
nixosModules.default = ./nixos/modules;
### NixOS
nixosConfigurations = {

View file

@ -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