AWS: don't clutter homedir
This commit is contained in:
parent
791aaaa836
commit
28a2a7aec4
@ -3,6 +3,7 @@
|
||||
./hardware-configuration.nix
|
||||
inputs.self.nixosProfiles.desktop
|
||||
inputs.self.nixosModules.print-scan
|
||||
inputs.self.nixosModules.aws
|
||||
];
|
||||
deviceSpecific.devInfo = {
|
||||
cpu = {
|
||||
@ -28,8 +29,6 @@
|
||||
enable = true;
|
||||
cache.clean.enable = false; # Scary...
|
||||
|
||||
state.homeFiles = [ ".aws/credentials" ];
|
||||
|
||||
state.directories = [ "/home/balsoft/.local/share/Steam" ];
|
||||
|
||||
derivative.directories = [ "/home/balsoft/.wine" "/home/balsoft/.wine32" ];
|
||||
|
12
modules/workspace/aws.nix
Normal file
12
modules/workspace/aws.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
secrets.aws_credentials = {
|
||||
owner = "balsoft:users";
|
||||
services = [ ];
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
AWS_SHARED_CREDENTIALS_FILE = config.secrets.aws_credentials.decrypted;
|
||||
AWS_CONFIG_FILE = toString (pkgs.writeText "aws_config"
|
||||
(pkgs.my-lib.genIni { default.region = "eu-west-2"; }));
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user