summaryrefslogtreecommitdiffstats
path: root/hjem.nix
blob: 300ac0aa43da837fbad8a906a54686833b2f7067 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ config, pkgs, ... }:
{
  imports = [
  ];

  # Define a user account. Don't forget to set a password with ‘passwd’.
  users.users.andrew = {
    isNormalUser = true;

    extraGroups = [
      "networkmanager"
      "wheel"
    ];
    packages = with pkgs; [ ];
  };

  hjem.users.andrew = {
    directory = "/home/andrew";
    files = {

      ".config/sxhkd/sxhkdrc".text = builtins.readFile (
        pkgs.replaceVars ./dotfiles/sxhkd/sxhkdrc {
          dmenu = pkgs.dmenu;
          st = pkgs.st;
          surf = pkgs.surf;
          pamixer = pkgs.pamixer;
          maim = pkgs.maim;
          xdotool = pkgs.xdotool;
          xclip = pkgs.xclip;
          lockscreen = pkgs.lock-screen;
        }
      );

      ".config/surf/styles/default.css".text = builtins.readFile ./dotfiles/surf/styles/default.css;

    };
    packages = with pkgs; [
      discord
      lazygit
      librewolf
      btop

      (pkgs.writeShellScriptBin "surf.sh" (
        builtins.readFile (
          pkgs.replaceVars ./dotfiles/surf/surf.sh {
            dmenu = pkgs.dmenu;
            xprop = pkgs.xprop;
            gnused = pkgs.gnused;
            coreutils = pkgs.coreutils;
          }
        )
      ))
    ];
  };

}