Exclude laptops from deploy-rs

This commit is contained in:
Fern Garden 2025-07-11 18:05:07 +08:00
parent 09f05fccfd
commit 20c6461e14

View file

@ -1,7 +1,6 @@
inputs:
with inputs;
with inputs.nixpkgs.lib; let
in {
with inputs.nixpkgs.lib; {
mergeHosts = lists.foldl' (
a: b: attrsets.recursiveUpdate a b
) {};
@ -45,7 +44,8 @@ in {
feishin = (import nixpkgs-pr-feishin {inherit system;}).feishin;
webone = pkgs.callPackage ./packages/webone {};
};
in {
in
{
nixosConfigurations.${hostname} = nixosSystem rec {
inherit system pkgs;
@ -71,7 +71,8 @@ in {
++ (filesystem.listFilesRecursive ./modules)
++ extraModules;
};
}
// optionalAttrs (suite != "laptop") {
deploy.nodes.${hostname} = {
hostname = "${hostname}.local";
profiles.system = {