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";
profiles = lib.mkOption {
type = with lib.types; functionTo (attrsOf anything);
default = os: {
default = homeenv: {
home = {
sshUser = 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 ''
os: {
homeenv: {
home = {
sshUser = "$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" ];
nixpkgsBranch = "nixos-unstable-small";
deploy = {
autoRollback = true;
magicRollback = true;
};
};