Add checks

This commit is contained in:
Jack O'Sullivan 2022-02-17 20:50:53 +00:00
parent 22c878bb69
commit ac0d2bc001
2 changed files with 13 additions and 2 deletions

View File

@ -40,8 +40,9 @@
}:
let
inherit (builtins) mapAttrs attrValues;
inherit (lib.flake) eachDefaultSystem;
inherit (lib.my) attrsToList mkApp mkShellApp mkShellApp' inlineModules mkDefaultSystemsPkgs flakePackageOverlay;
inherit (lib) recurseIntoAttrs;
inherit (lib.flake) flattenTree eachDefaultSystem;
inherit (lib.my) attrsToList inlineModules mkDefaultSystemsPkgs flakePackageOverlay;
# Extend a lib with extras that _must not_ internally reference private nixpkgs. flake-utils doesn't, but many
# other flakes (e.g. home-manager) probably do internally.
@ -136,6 +137,10 @@
in
# Stuff for each platform
{
checks = flattenTree {
homeConfigurations = recurseIntoAttrs self.homes;
};
devShell = pkgs.devshell.mkShell {
env = attrsToList {
# starship will show this

View File

@ -40,6 +40,12 @@ in
# plenty of free memory.
boot.kernel.sysctl."vm.overcommit_memory" = "1";
# This should be overridden by whatever boot mechanism is used
fileSystems."/" = mkDefault {
device = "none";
fsType = "tmpfs";
};
environment.systemPackages = with pkgs; [
# We disable networking.useDHCP, so bring this in for the user
dhcpcd