Fix deploy-rs

This commit is contained in:
Fern Garden 2025-08-29 11:54:27 +08:00
parent b23046ea5d
commit a4fb022930

View file

@ -53,7 +53,8 @@ with inputs.nixpkgs.lib; {
})
];
};
in {
in
{
nixosConfigurations.${hostname} = nixosSystem {
inherit system pkgs;
@ -99,8 +100,9 @@ with inputs.nixpkgs.lib; {
++ optionals (docker == true) [./suites/server/docker] # Enable docker if required.
++ (filesystem.listFilesRecursive ./modules); # Custom modules.
};
deploy.nodes.${hostname} = mkIf (strings.hasPrefix "server" suite) {
}
// optionalAttrs (strings.hasPrefix "server" suite) {
deploy.nodes.${hostname} = {
hostname = "${hostname}.local";
profiles.system = {
user = "root";