summaryrefslogtreecommitdiff
path: root/accounts/mherold@eostre.nix
blob: 287cabd681f254fa8d5e1535d1c8f6e009b56c2f (plain)
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
29
30
31
32
33
34
35
36
37
38
39
{ userName, pkgs, lib, ... }: {
  config = {
    users.users.${userName} = {
      hashedPassword = lib.mkForce "$6$rounds=500000$TaikR1KI4CGveV0a$jLrBjNScflgniUiy87zxQ.IjnyK8K7FbYTW7L0k0EBVrdiImds26WwNjA6DrQpENALwPMzJVIK5BTie17fFVG.";
    };

    systemd.services."home-manager-${userName}" = {
      bindsTo = ["home-${userName}.mount"];
      after = ["home-${userName}.mount"];
    };

    systemd.mounts = [
      {
        where = "/home/${userName}";
        wants = ["home-manager-${userName}.service"];
      }
    ];

    home-manager.users.${userName} = {
      nixpkgs.config = {
        allowUnfree = true;
      };

      home.packages = with pkgs; [
        thunderbird libreoffice element-desktop keepassxc
      ];

      home.keyboard.layout = "de";

      programs.firefox = {
        enable = true;
        profiles.default.settings = {
          "dom.security.https_only_mode" = true;
          "browser.cache.disk.enable" = false;
        };
      };
    };
  };
}