summaryrefslogtreecommitdiff
path: root/accounts/gkleen@vidhar.nix
blob: c73faa967347d02306d49347f098ed216ea9e95c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ flake, pkgs, userName, ... }: {
  imports = with flake.nixosModules.userProfiles.${userName}; [
    feeds
  ];
  
  config = {
    users.users.${userName} = {
      uid = 1000;
      openssh.authorizedKeys.keys = [
        "command=\"${pkgs.unison}/bin/unison -server\",no-port-forwarding,no-X11-forwarding,no-pty,no-agent-forwarding,no-user-rc ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA4izEz5pEjJqFLeJewHCoqtskqA+olKZNEP1yZWK7Ui gkleen@sif"
      ];
    };

    home-manager.users.${userName} = {
      file = {
        ".config/user-tmpfiles.d/gnupg.conf".text = ''
          d /run/user/${config.users.users.${userName}.uid}/gnupg 0700 ${userName} ${config.users.users.${userName}.group} -
        '';
      };
    };
  };
}