summaryrefslogtreecommitdiff
path: root/accounts/mherold@eostre.nix
blob: 538a3903017d1c5eef9c7d220c992ac43a824b3e (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
{ 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."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;
        };
      };
    };
  };
}