mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-13 18:18:59 +00:00
27 lines
732 B
Nix
27 lines
732 B
Nix
{ lib, inputs, ... }: {
|
|
flake = { nixosModules.default = ../modules; };
|
|
|
|
perSystem = { lib, pkgs, system, ... }: {
|
|
formatter = pkgs.treefmt;
|
|
|
|
devShells.default = import ../../shell.nix { inherit pkgs; };
|
|
|
|
# Just make sure it actually compiles with a very minimal NixOS
|
|
# configuration.
|
|
checks.nixos-module-test = let
|
|
nixosSystem = args:
|
|
import "${inputs.nixpkgs}/nixos/lib/eval-config.nix" args;
|
|
in nixosSystem {
|
|
modules = [
|
|
({ modulesPath, ... }: {
|
|
imports = [ "${modulesPath}/profiles/minimal.nix" ];
|
|
|
|
nixpkgs.hostPlatform = system;
|
|
boot.loader.grub.enable = false;
|
|
fileSystems."/".device = "nodev";
|
|
})
|
|
];
|
|
};
|
|
};
|
|
}
|