-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.nix
More file actions
86 lines (76 loc) · 2.06 KB
/
system.nix
File metadata and controls
86 lines (76 loc) · 2.06 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{ config, pkgs, ...}: {
# Locale
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
location.provider = "geoclue2";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "nl_NL.UTF-8";
LC_IDENTIFICATION = "nl_NL.UTF-8";
LC_MEASUREMENT = "nl_NL.UTF-8";
LC_MONETARY = "nl_NL.UTF-8";
LC_NAME = "nl_NL.UTF-8";
LC_NUMERIC = "nl_NL.UTF-8";
LC_PAPER = "nl_NL.UTF-8";
LC_TELEPHONE = "nl_NL.UTF-8";
LC_TIME = "nl_NL.UTF-8";
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.tijmen = {
isNormalUser = true;
description = "tijmen";
extraGroups = [ "networkmanager" "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHCAOh2ehYZdZt6CaD05aHV2qvqJjq0aWhsXYiDCJ1fq tijme@PC-Tijmen"
];
packages = with pkgs; [];
};
# Shell
users.defaultUserShell = pkgs.fish;
environment.shells = with pkgs; [ fish ];
programs.fish = {
enable = true;
shellAliases = {
# replace ls with exa
ls = "exa";
lsa = "exa -lahG";
tree = "exa -T";
# replace cat with bat
cat = "bat";
# replace (h)top with btop
top = "btop";
htop = "btop";
};
};
# Setup NeoVim as system-wide default editor
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
};
# Sound
#sound.enable = false;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
};
# Fonts
fonts = {
fonts = with pkgs; [
(nerdfonts.override { fonts = [ "Meslo" ]; })
];
fontconfig.defaultFonts = {
monospace = [ "Meslo LG L Regular Nerd Font Complete Mono" ];
};
};
# Misc
security.polkit.enable = true;
}