about summary refs log tree commit diff
path: root/users/flokli/archivist/default.nix
blob: ef49c46db2f6f427f5816888a2e288a2f5217d86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ depot
, pkgs
, ...
}:
depot.nix.readTree.drvTargets {
  shell = pkgs.mkShell {
    name = "archivist-shell";
    packages = with pkgs; [ awscli2 ];

    AWS_PROFILE = "archivist";
    AWS_CONFIG_FILE = pkgs.writeText "aws-config" ''
      [sso-session nixos]
      sso_region = eu-north-1
      sso_start_url = https://nixos.awsapps.com/start
      sso_registration_scopes = sso:account:access

      [profile "archivist"]
      sso_session = nixos
      sso_account_id = 286553126452
      sso_role_name = AWSAdministratorAccess

      [profile "archeologist"]
      sso_session = nixos
      sso_account_id = 080433136561
      sso_role_name = archeologist
    '';
  };
}