flake-parts/setups: update descriptions

This commit is contained in:
Gabriel Arazas 2024-01-17 17:59:09 +08:00
parent 4671d1654b
commit cce282dbcf
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 6 additions and 4 deletions

View File

@ -36,19 +36,19 @@ let
remoteBuild = lib.mkEnableOption "pass the build process to the remote machine"; remoteBuild = lib.mkEnableOption "pass the build process to the remote machine";
profiles = lib.mkOption { profiles = lib.mkOption {
type = with lib.types; functionTo (attrsOf anything); type = with lib.types; functionTo (attrsOf anything);
default = os: { default = homeenv: {
home = { home = {
sshUser = username; sshUser = username;
user = username; user = username;
path = inputs.deploy.lib.${os.system}.activate.home-manager os.config; path = inputs.deploy.lib.${homeenv.system}.activate.home-manager homeenv.config;
}; };
}; };
defaultText = lib.literalExpression '' defaultText = lib.literalExpression ''
os: { homeenv: {
home = { home = {
sshUser = "$USERNAME"; sshUser = "$USERNAME";
user = "$USERNAME"; user = "$USERNAME";
path = <deploy-rs>.lib.''${os.system}.activate.home-manager os.config; path = <deploy-rs>.lib.''${homeenv.system}.activate.home-manager homeenv.config;
}; };
} }
''; '';

View File

@ -284,6 +284,8 @@ in
formats = [ "do" "linode" ]; formats = [ "do" "linode" ];
nixpkgsBranch = "nixos-unstable-small"; nixpkgsBranch = "nixos-unstable-small";
deploy = { deploy = {
autoRollback = true;
magicRollback = true;
}; };
}; };