forked from ners/NixOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
134 lines (123 loc) · 2.32 KB
/
configuration.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{ config, pkgs, ... }:
let
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz;
unstableOverride = import ( unstableTarball ) { config = config.nixpkgs.config; };
in
{
imports = [
./bootloader.nix
./btrfs.nix
./dvorak.nix
./firefox-nightly.nix
./gnome.nix
./hardware-configuration.nix
./pipewire.nix
./selinux.nix
./sway.nix
./vim.nix
./virtualisation.nix
./zsh.nix
];
nix = {
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
maxJobs = 16;
extraOptions = ''
binary-caches-parallel-connections = 50
keep-outputs = true
keep-derivations = true
'';
};
nixpkgs.config = {
allowUnfree = true;
allowBroken = false;
packageOverrides = pkgs: {
unstable = unstableOverride;
};
};
networking = {
hostName = "nixos";
networkmanager.enable = true;
useNetworkd = true;
};
# Select internationalisation properties.
i18n = {
defaultLocale = "en_GB.UTF-8";
};
console = {
font = "Lat2-Terminus16";
};
services = {
xserver = {
enable = true;
videoDrivers = [ "amdgpu" ];
xkbOptions = "caps:escape";
libinput.enable = true;
};
flatpak.enable = true;
fprintd.enable = true;
fwupd.enable = true;
localtime.enable = true;
openssh.enable = true;
printing.enable = true;
redshift.enable = true;
};
security = {
rtkit.enable = true;
pam.services = {
login.fprintAuth = true;
xscreensaver.fprintAuth = true;
};
};
users = {
users.root = {
initialHashedPassword = "";
};
users.ners = {
isNormalUser = true;
createHome = true;
initialHashedPassword = "$6$P8pZJbrdjFXP7Bkf$CSxDmrTTO6o5pWUVXW0hy/c.Zdf7WtzNOPk1KiEDrDtyDf8x6V.ZvSzhh8kJWx0DKpObq4077SH1BRZZ0wgU/0";
extraGroups = [ "audio" "libvirtd" "networkmanager" "video" "wheel" "dialout" ];
};
};
environment = {
systemPackages = with pkgs; [
aria2
entr
exfat
expect
file
flatpak-builder
fprintd
gitAndTools.gitFull
gnumake
htop
httpie
jq
killall
libsecret
moreutils
mpv
nix-index
nodejs
pciutils
pv
silver-searcher
sshfs-fuse
subversion
tio
tmux
tree
usbutils
wget
wineWowPackages.stable
winetricks
];
};
networking.firewall.enable = false;
system.stateVersion = "21.03";
}