Formatting
This commit is contained in:
parent
7385941c96
commit
b163b2f9ce
@ -97,7 +97,9 @@
|
|||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
self = self;
|
self = self;
|
||||||
inputs = inputs // { darwin = inputs.nix-darwin; };
|
inputs = inputs // {
|
||||||
|
darwin = inputs.nix-darwin;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
# Add our overlay to the system configuration
|
# Add our overlay to the system configuration
|
||||||
|
|||||||
@ -107,7 +107,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|||||||
@ -60,11 +60,16 @@ in
|
|||||||
|
|
||||||
SHARABLE_URL="$SSO_URL/#/console?account_id=$ACCOUNT_ID&role_name=$ROLE_NAME&destination=$(${pkgs.urlencode}/bin/urlencode "https://$URL")"
|
SHARABLE_URL="$SSO_URL/#/console?account_id=$ACCOUNT_ID&role_name=$ROLE_NAME&destination=$(${pkgs.urlencode}/bin/urlencode "https://$URL")"
|
||||||
|
|
||||||
${if isDarwin then ''
|
${
|
||||||
|
if isDarwin then
|
||||||
|
''
|
||||||
echo -n "$SHARABLE_URL" | pbcopy
|
echo -n "$SHARABLE_URL" | pbcopy
|
||||||
'' else ''
|
''
|
||||||
|
else
|
||||||
|
''
|
||||||
echo -n "$SHARABLE_URL" | ${pkgs.xclip}/bin/xclip -selection clipboard
|
echo -n "$SHARABLE_URL" | ${pkgs.xclip}/bin/xclip -selection clipboard
|
||||||
''}
|
''
|
||||||
|
}
|
||||||
echo "URL copied to clipboard"
|
echo "URL copied to clipboard"
|
||||||
''}";
|
''}";
|
||||||
|
|
||||||
@ -92,14 +97,16 @@ in
|
|||||||
|
|
||||||
git-sync-remote = lib.mkDefault "git remote update origin --prune";
|
git-sync-remote = lib.mkDefault "git remote update origin --prune";
|
||||||
|
|
||||||
cleanup-kube-config = "${pkgs.writeShellApplication {
|
cleanup-kube-config = "${
|
||||||
|
pkgs.writeShellApplication {
|
||||||
name = "app";
|
name = "app";
|
||||||
text = ./zsh/aliases/cleanup-kube-config.sh;
|
text = ./zsh/aliases/cleanup-kube-config.sh;
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
pkgs.gnugrep
|
pkgs.gnugrep
|
||||||
pkgs.coreutils
|
pkgs.coreutils
|
||||||
];
|
];
|
||||||
}}/bin/app";
|
}
|
||||||
|
}/bin/app";
|
||||||
|
|
||||||
klogs = lib.mkDefault "${pkgs.writeShellScript "klogs" ''
|
klogs = lib.mkDefault "${pkgs.writeShellScript "klogs" ''
|
||||||
ctx="$1"
|
ctx="$1"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user