-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommons.nix
96 lines (79 loc) · 1.54 KB
/
commons.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
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
86
87
88
89
90
91
92
93
94
95
96
{ config, pkgs, ... }:
let
username = (import ./variables.nix).username;
in
{
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowBroken = true;
time.timeZone = "Europe/Paris";
location.latitude = 48.8502;
location.longitude = 2.3488;
i18n.defaultLocale = "fr_FR.UTF-8";
console.useXkbConfig = true;
fonts = {
enableDefaultPackages = true;
fontDir.enable = true;
packages = with pkgs; [
dina-font
emojione
fira-code
fira-code-symbols
font-awesome
font-awesome_5
hasklig
proggyfonts
];
};
services = {
openssh.enable = true;
udisks2.enable = true;
};
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
acpi
alsaUtils
brightnessctl
direnv
dnsutils
efibootmgr
gnupg
lm_sensors
lsof
mkpasswd
ntfs3g
neofetch
p7zip
pciutils
powertop
sct
tmux
udisks
unar
unzip
usbutils
vim
wget
zip
zsh antibody
];
programs = {
gnupg.agent.enable = true;
zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
};
};
users = {
defaultUserShell = pkgs.zsh;
extraUsers.${username} = {
isNormalUser = true;
uid = 4280;
initialPassword = "changeme";
createHome = true;
home = "/home/${username}";
extraGroups = [ "${username}" "wheel" "networkmanager" "video" "input" ];
};
};
}