blob: 8824dfd51f9ae13ac04eb6782006b5e0c0d79b06 (
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
|
{
config,
lib,
pkgs,
this,
...
}:
with lib;
let
cfg = config.nixfiles.modules.profiles.default;
in
{
imports = attrValues (modulesIn ./.);
options.nixfiles.modules.profiles.default.enable =
mkEnableOption "The most default profile of them all."
// {
default = true;
};
config = mkIf cfg.enable {
assertions = [
{
assertion = !(with this; isHeadless && isHeadful);
message = ''
The configuration cannot be both "headful" and "headless" at the same
time.
'';
}
];
ark.directories = [ "/var/log" ];
nixfiles.modules = {
bat.enable = true;
eza.enable = true;
htop.enable = true;
tmux.enable = true;
vim.enable = true;
};
programs = {
less = {
enable = true;
envVariables.LESSHISTFILE = "-";
};
nano.enable = false;
};
environment.systemPackages = with pkgs; [
arping
cryptsetup
dnsutils
file
inetutils
ldns
lshw
lsof
pciutils
psmisc
rsync
smartmontools
socat
sysstat
tcpdump
tree
util-linux
];
};
}
|