-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuser-settings.nix
More file actions
67 lines (58 loc) · 1.47 KB
/
Copy pathuser-settings.nix
File metadata and controls
67 lines (58 loc) · 1.47 KB
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
{ config, pkgs, ... }:
{
time.timeZone = "Europe/Zurich";
i18n.supportedLocales = [
"en_DK.UTF-8/UTF-8"
"de_DE.UTF-8/UTF-8"
"de_CH.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
];
i18n.defaultLocale = "en_US.UTF-8";
users.users.michael = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFGSGdjns3/K3vwrQvwtvEMruFIqDtV//CHWVLUm4XNt michael@midna"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHlXLvR47KGYvY27G0+QKqGl4100VcGNclmhrnloZP6/ michael@m1a.lan"
];
isNormalUser = true;
description = "Michael Stapelberg";
extraGroups = [ "wheel" ];
shell = pkgs.zsh;
packages = with pkgs; [ ];
};
environment.systemPackages = with pkgs; [
git # for checking out github.com/stapelberg/configfiles
rsync
zsh
vim
(import ./emacs-config.nix {
inherit pkgs;
})
wget
curl
rxvt-unicode # for terminfo
btop
dool # dstat clone
ncdu # often useful to get a sense of data
lsof
psmisc # for killall
];
programs.zsh.enable = true;
services.openssh.enable = true;
# Adding michael as trusted user means
# we can upgrade the system via SSH (see Makefile).
nix.settings.trusted-users = [
"michael"
"root"
];
# Enable flakes for interactive usage.
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Clean the Nix store every week.
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
}