refactor module system

This commit is contained in:
2026-11-08 15:22:26 +01:00
parent d4ef8af473
commit c5bb5cc965
40 changed files with 30 additions and 35 deletions
+12 -17
View File
@@ -1,33 +1,29 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
config,
lib,
pkgs,
...
}:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./packages.nix
../../modules/git.nix
../../modules/nixos/git.nix
];
networking.hostId = "798c7c92";
boot.supportedFilesystems = [ "zfs" ];
boot.initrd.supportedFilesystems = [ "zfs" ];
boot.supportedFilesystems = [ "zfs" ];
boot.initrd.supportedFilesystems = [ "zfs" ];
boot.initrd.availableKernelModules = [
"virtio_pci" "virtio_blk" "virtio_scsi" ];
boot.initrd.availableKernelModules = [
"virtio_pci"
"virtio_blk"
"virtio_scsi"
];
boot.zfs.forceImportRoot = false;
boot.zfs.forceImportRoot = false;
boot.zfs.devNodes = "/dev/disk/by-path";
boot.zfs.devNodes = "/dev/disk/by-path";
boot.kernelParams = [ "console=ttyS0" ];
boot.kernelParams = [ "console=ttyS0" ];
boot.loader.grub = {
enable = true;
zfsSupport = true;
@@ -130,7 +126,6 @@ boot.kernelParams = [ "console=ttyS0" ];
"flakes"
];
# Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true;
@@ -165,7 +160,7 @@ boot.kernelParams = [ "console=ttyS0" ];
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = true;
services.openssh.settings.PermitRootLogin = "yes";
services.openssh.settings.PermitRootLogin = "yes";
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];