blob: eb7a78f069b99cb1f93b04ddd0294ec7b17e0fc1 (
plain) (
blame)
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
|
{ config, pkgs, unfreePkgs, lib, ... }:
let
cfg = config.vuizvui.user.aszlig.profiles.base;
in {
options.vuizvui.user.aszlig.profiles.base = {
enable = lib.mkEnableOption "Base profile for aszlig";
};
config = lib.mkIf cfg.enable {
boot.readOnlyNixStore = true;
nix.settings = {
sandbox = true;
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
};
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "C.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "C.UTF-8";
};
users.defaultUserShell = "/var/run/current-system/sw/bin/zsh";
networking.wireless.enable = false;
networking.firewall.enable = false;
networking.useNetworkd = true;
networking.useDHCP = false;
services.xserver.layout = "us";
services.xserver.xkbVariant = "dvorak";
console.useXkbConfig = true;
console.font = "lat9w-16";
programs.ssh.startAgent = false;
programs.ssh.extraConfig = ''
ServerAliveInterval 60
'';
vuizvui.user.aszlig.programs.zsh.enable = true;
vuizvui.enableGlobalNixpkgsConfig = true;
services.journald.extraConfig = ''
MaxRetentionSec=3month
'';
services.openssh.settings = {
PasswordAuthentication = lib.mkOverride 500 false;
PermitRootLogin = lib.mkOverride 500 "no";
KbdInteractiveAuthentication = lib.mkOverride 500 false;
};
environment.systemPackages = with pkgs; [
binutils
cacert
ddrescue
file
htop
iotop
moreutils
vuizvui.aszlig.nlast
psmisc
unfreePkgs.unrar
unzip
vlock
vuizvui.aszlig.vim
wget
xz
];
nixpkgs.config = {
pulseaudio = true;
allowBroken = true;
};
nixpkgs.overlays = lib.singleton (lib.const (super: {
netrw = super.netrw.override {
checksumType = "mhash";
};
nix = super.nixUnstable;
uqm = super.uqm.override {
use3DOVideos = true;
useRemixPacks = true;
};
w3m = super.w3m.override {
graphicsSupport = true;
};
# Doesn't build with latest Nix unstable and since I rarely use it, I
# don't mind if it's using an older Nix version.
nixos-option = super.nixos-option.override {
# Note: This is *super*, not *self* because self already has nix
# replaced by nixUnstable.
inherit (super) nix;
};
}));
system.fsPackages = with pkgs; [ sshfs-fuse ];
time.timeZone = "Europe/Berlin";
};
}
|