-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.nix
44 lines (37 loc) · 889 Bytes
/
base.nix
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
{ config, lib, pkgs, ... }:
{
imports = [
./git
./nix
./shell
./urxvt
./vim
];
options = {
dotfiles = lib.mkOption {
type = lib.types.path;
apply = toString;
example = "${config.home.homeDirectory}/.dotfiles";
description = "Location of the dotfiles working copy";
};
};
config = {
home.stateVersion = "20.09";
home.homeDirectory = "/home/${config.home.username}";
dotfiles = "${config.home.homeDirectory}/.dotfiles";
home.sessionVariables = {
EDITOR = "vim";
};
home.sessionPath = [
"${config.dotfiles}/bin"
"${config.home.homeDirectory}/.local/bin"
];
systemd.user.startServices = true;
# Random stuff
home.packages = [
pkgs.bat # cat clone with wings
pkgs.jq # json processing in scripts / terminal
pkgs.openssl # key handling
];
};
}