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