2023-09-23 18:36:27 +02:00
{ config , pkgs , . . . }:
{
imports =
[
./hardware-configuration.nix
2023-10-09 12:37:26 +02:00
./host-specific.nix
2023-09-23 18:36:27 +02:00
../../modules/home-manager.nix
2023-10-20 15:01:12 +02:00
../../modules/nur-and-unstable.nix
2024-08-13 14:46:55 +02:00
../../modules/unfree.nix
2023-09-23 18:36:27 +02:00
../../modules/base.nix
2024-11-26 10:12:46 +01:00
../../modules/base-efi-systemd.nix
2023-10-09 12:05:56 +02:00
../../modules/headless.nix
2023-10-09 12:13:36 +02:00
2023-11-03 16:14:15 +01:00
../../modules/ssh-fde-unlock.nix
2023-09-23 18:36:27 +02:00
#../../modules/git.nix
../../modules/zsh.nix
#../../modules/ssh-client.nix
../../modules/ssh-server.nix
2023-11-14 18:59:31 +01:00
2023-09-23 18:36:27 +02:00
#../../modules/podman.nix
../../modules/docker.nix
2024-08-13 15:17:35 +02:00
#../../modules/docker-pushrm.nix
2024-09-28 22:25:36 +02:00
../../modules/ContainerImages.nix
2023-11-14 18:59:31 +01:00
2023-09-23 18:36:27 +02:00
../../modules/sendmail-mta.nix
../../modules/journalwatch.nix
2023-11-14 18:59:31 +01:00
2023-09-27 18:56:12 +02:00
../../modules/btrbk
2023-11-17 15:06:01 +01:00
./btrbk-config.nix
2023-11-28 15:21:03 +01:00
2023-11-14 19:04:58 +01:00
../../modules/netcup-dns.nix
2023-11-14 18:54:13 +01:00
../../modules/de-p1st-monitor.nix
2023-11-23 20:11:28 +01:00
../../modules/spin-down/hdparm.nix
../../modules/spin-down/hd-idle.nix
2023-10-08 22:02:21 +02:00
../../modules/btrfs-scrub.nix
2023-10-09 10:46:57 +02:00
../../modules/btrfs-mount-options.nix
2023-09-23 18:36:27 +02:00
] ;
networking . hostName = " y o d a N a s " ;
2023-09-26 18:21:57 +02:00
boot . initrd . luks . devices . " l u k s - 3 d 9 7 4 b d 0 - f 3 7 3 - 4 6 9 b - 8 e 9 c - 2 d 5 5 1 6 e 9 f 0 f 5 " . allowDiscards = true ;
2023-10-09 10:46:57 +02:00
yoda . btrfsFileSystems = [ " / " " / m n t / d a t a " " / m n t / b a c k u p " ] ;
#yoda.btrfsMounts = yoda.btrfsFileSystems;
2023-11-23 20:11:28 +01:00
yoda . spin-down . hdparm = [
2023-11-23 12:08:27 +01:00
# 4tb1
" a t a - W D C _ W D 4 0 E F R X - 6 8 N 3 2 N 0 _ W D - W C C 7 K 0 C P F 0 N 1 "
# 3tb1
" a t a - W D C _ W D 3 0 E F R X - 6 8 E U Z N 0 _ W D - W C C 4 N 1 1 7 3 1 5 7 "
# 3tb2
" a t a - W D C _ W D 3 0 E F R X - 6 8 E U Z N 0 _ W D - W M C 4 N 0 5 6 4 0 9 5 "
] ;
2023-11-23 20:11:28 +01:00
yoda . spin-down . hd-idle = [ ] ;
2023-11-28 15:21:03 +01:00
yoda . de-p1st-monitor = ( builtins . readFile ../../assets/de-p1st-monitor/yodaNas.ini ) ;
2024-12-15 16:23:37 +01:00
# Updates the A and AAAA record of @.biketripplanner.de, @.p1st.de, @.privacy1st.de
2024-12-09 11:22:04 +01:00
yoda . netcup-dns = ../../secrets/netcup-dns-nas.json ;
2023-09-23 18:36:27 +02:00
2023-11-16 11:08:11 +01:00
boot . kernelParams = [
# Microarchitectural Data Sampling (MDS), see https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html#mitigation-control-on-the-kernel-command-line
" m d s = f u l l , n o s m t "
] ;
2023-09-23 18:36:27 +02:00
boot . kernelPackages = pkgs . linuxPackages ;
2023-12-15 13:03:18 +01:00
2024-02-07 14:29:55 +01:00
# Most users should never change this value after the initial install, for any reason, even if you've upgraded your system to a new NixOS release.
2023-12-15 13:03:18 +01:00
system . stateVersion = " 2 3 . 0 5 " ;
2023-09-23 18:36:27 +02:00
}