fix(aws): make directories writable
This commit is contained in:
parent
be6b1e23c5
commit
d5279a25d2
1 changed files with 14 additions and 8 deletions
|
|
@ -128,14 +128,20 @@ in
|
||||||
(lib.mkIf node [ "${config.xdg.dataHome}/pnpm" ])
|
(lib.mkIf node [ "${config.xdg.dataHome}/pnpm" ])
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile."aws/config" = lib.mkIf aws {
|
home.activation.awsConfig = lib.mkIf aws (
|
||||||
text = ''
|
lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
[default]
|
dir="${config.xdg.configHome}/aws"
|
||||||
[profile barrett]
|
mkdir -p "$dir"
|
||||||
region = us-east-2
|
if [ ! -f "$dir/config" ]; then
|
||||||
output = json
|
cat > "$dir/config" << 'AWSEOF'
|
||||||
'';
|
[default]
|
||||||
};
|
[profile barrett]
|
||||||
|
region = us-east-2
|
||||||
|
output = json
|
||||||
|
AWSEOF
|
||||||
|
fi
|
||||||
|
''
|
||||||
|
);
|
||||||
|
|
||||||
xdg.configFile."npm/npmrc" = lib.mkIf node {
|
xdg.configFile."npm/npmrc" = lib.mkIf node {
|
||||||
text = ''
|
text = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue