blob: 28c5d7da93da3f3d2965585646d8858ff9f53fa4 (
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
40
41
42
43
44
45
46
47
48
49
|
{
config,
pkgs,
...
}: {
imports = [./hardware-configuration.nix];
nix.settings.experimental-features = ["nix-command" "flakes"];
boot.loader.grub.device = "/dev/sda";
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
networking = {
hostName = "hostname";
networkmanager.enable = true;
};
users.users.tom = {
isNormalUser = true;
extraGroups = ["wheel" "networkmanager" "video"];
shell = pkgs.zsh;
};
programs = {
slock.enable = true;
zsh = {
enable = true;
promptInit = ''
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '|%F{3}%b%f'
setopt PROMPT_SUBST
PROMPT='<%F{2}%n%f@%F{6}%m%f|%F{5}%~%f''${vcs_info_msg_0_}%f> '
bindkey '^f' end-of-line
'';
};
};
fonts.packages = [pkgs.hermit];
services = {
openssh.enable = true;
xserver = {
enable = true;
autorun = false;
displayManager.startx.enable = true;
};
};
system.stateVersion = "23.11";
zramSwap.enable = true;
}
|