-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
43 lines (36 loc) · 1003 Bytes
/
default.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
{ klokkijker, ... }:
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.stratum;
in {
config = mkIf cfg.enable {
systemd.enableEmergencyMode = mkDefault false;
time.timeZone = mkDefault "UTC";
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
networking.nftables.enable = true;
environment.systemPackages = with pkgs; [
picocom minicom
pps-tools
dtc
klokkijker.packages."${pkgs.system}".default
ethtool
];
environment.etc."stratum/flake.nix".source = ./flake.nix.example;
environment.etc."stratum/README.md".source = ./README.md;
environment.etc."stratum/options.md".source = ./docs/options.md;
system.stateVersion = mkDefault "24.05";
};
imports = [
( import ./modules/monitoring.nix { inherit klokkijker; })
./modules/options.nix
./modules/hardware/raspberry-pi.nix
./modules/hardware/i2c-rtc.nix
./modules/gps
./modules/ntp
./modules/openssh.nix
];
}