blob: 0081e23a29671e36df3fb3b74fd1fc858ece5a3f (
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
|
{pkgs, ...}: {
imports = [./hardware-configuration.nix];
nix.settings = {
experimental-features = ["nix-command" "flakes"];
auto-optimise-store = true;
};
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
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 = "24.05";
zramSwap.enable = true;
}
|