summaryrefslogtreecommitdiffstats
path: root/hjem.nix
blob: fcc38ece45a21048afc6429eba8a23022f186103 (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
57
58
59
60
61
62
63
64
65
66
67
68
{ 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;
          sfeed = pkgs.sfeed;
          rmpc = pkgs.rmpc;
          librewolf = pkgs.librewolf;
        }
      );

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


        ".sfeed/sfeedrc".source = ./dotfiles/sfeed/sfeedrc;

    };

    packages = with pkgs; [
      discord
      lazygit
      librewolf
      btop
      mpv
      zathura
      lf
      sfeed

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

}