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
+8 -8
View File
@@ -8,16 +8,16 @@
./drives.nix ./drives.nix
./packages.nix ./packages.nix
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/git.nix
../../modules/sops.nix ../../modules/sops.nix
../../modules/audio.nix
../../modules/gaming.nix
../../modules/office.nix
../../modules/system.nix
../../modules/scripts.nix
../../modules/desktop/vr.nix ../../modules/desktop/vr.nix
../../modules/virtualization.nix ../../modules/nixos/git.nix
../../modules/programs/nixvim/neovim.nix ../../modules/nixos/audio.nix
../../modules/nixos/gaming.nix
../../modules/nixos/office.nix
../../modules/nixos/system.nix
../../modules/nixos/scripts.nix
../../modules/nixos/virtualization.nix
../../modules/nixos/nixvim/neovim.nix
]; ];
environment.etc."libinput/local-overrides.quirks".text = '' environment.etc."libinput/local-overrides.quirks".text = ''
+2 -2
View File
@@ -7,11 +7,11 @@
{ {
imports = [ imports = [
./programs.nix ./programs.nix
../../../modules/shell ../../../modules/home/shell
../../../modules/home/mpd.nix ../../../modules/home/mpd.nix
../../../modules/home/hyprland ../../../modules/home/hyprland
../../../modules/home/kitty.nix ../../../modules/home/kitty.nix
../../../modules/programs/qutebrowser.nix ../../../modules/home/qutebrowser.nix
]; ];
home.username = "user"; home.username = "user";
+2 -2
View File
@@ -7,8 +7,8 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./packages.nix ./packages.nix
../../modules/git.nix ../../modules/nixos/git.nix
../../modules/remote-builder.nix ../../modules/nixos/remote-builder.nix
]; ];
boot.loader.grub = { boot.loader.grub = {
+2 -2
View File
@@ -1,9 +1,9 @@
{ {
imports = [ imports = [
./programs.nix ./programs.nix
../../../modules/shell ../../../modules/home/shell
../../../modules/home/kitty.nix ../../../modules/home/kitty.nix
../../../modules/programs/qutebrowser.nix ../../../modules/home/qutebrowser.nix
]; ];
home.username = "user"; home.username = "user";
+2 -2
View File
@@ -7,8 +7,8 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./packages.nix ./packages.nix
../../modules/server ../../modules/nixos/server
../../modules/git.nix ../../modules/nixos/git.nix
../../modules/sops.nix ../../modules/sops.nix
]; ];
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
imports = [ imports = [
../../../modules/shell ../../../modules/home/shell
../../../modules/home/beets.nix ../../../modules/home/beets.nix
]; ];
+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, pkgs,
... ...
}: }:
{ {
imports = [ imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./packages.nix ./packages.nix
../../modules/git.nix ../../modules/nixos/git.nix
]; ];
networking.hostId = "798c7c92"; networking.hostId = "798c7c92";
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
boot.initrd.supportedFilesystems = [ "zfs" ]; boot.initrd.supportedFilesystems = [ "zfs" ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [
"virtio_pci" "virtio_blk" "virtio_scsi" ]; "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 = { boot.loader.grub = {
enable = true; enable = true;
zfsSupport = true; zfsSupport = true;
@@ -130,7 +126,6 @@ boot.kernelParams = [ "console=ttyS0" ];
"flakes" "flakes"
]; ];
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true; # services.libinput.enable = true;
@@ -165,7 +160,7 @@ boot.kernelParams = [ "console=ttyS0" ];
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = true; services.openssh.settings.PasswordAuthentication = true;
services.openssh.settings.PermitRootLogin = "yes"; services.openssh.settings.PermitRootLogin = "yes";
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
imports = [ imports = [
../../../modules/shell.nix ../../../modules/home/shell
]; ];
home.username = "user"; home.username = "user";