Skip to content

Commit

Permalink
chore: expose system and hardware in flake
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Nov 3, 2024
1 parent a85a90f commit 7800545
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,14 @@
./local
./machines
];
}
// {
nixlab = {
system = ./modules/system;
hardware = {
incus = ./modules/hardware/incus.nix;
ms-01 = ./modules/hardware/ms-01.nix;
};
};
};
}
2 changes: 1 addition & 1 deletion modules/system/apps/docker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ in
config = lib.mkIf cfg.enable {
assertions = [
{
assertion = (!cfg.rootless) && cfg.startDockerSockProxy;
assertion = (!cfg.rootless) || (!cfg.startDockerSockProxy);
message = "docker.sock proxy is currently only supported in root mode";
}
];
Expand Down
1 change: 1 addition & 0 deletions modules/system/backup.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ in
};
}
);
default = [ ];
};
snapshotMountPath = lib.mkOption {
type = lib.types.str;
Expand Down

0 comments on commit 7800545

Please sign in to comment.