all repos — nixfiles @ 0f2c55992677e78d5d2908d0648e410ef9b27436

System and user configuration, managed by nix and home-manager

Organise modules into folders
Alan Pearce alan@alanpearce.eu
Sat, 23 Sep 2017 13:59:19 +0200
commit

0f2c55992677e78d5d2908d0648e410ef9b27436

parent

496b4ed379afe7f1e0563243a0a5efe0857fe3bb

M marvin.nixmarvin.nix
@@ -2,28 +2,29 @@ { config, pkgs, ... }: 
 { imports = [
     ./hardware-configuration.nix
-    ./modules/systemd-boot.nix
-    ./modules/audio.nix
-    ./modules/adb.nix
-    ./modules/syncthing.nix
-    ./modules/nitrokey.nix
-    ./modules/shell.nix
-    ./modules/dotfiles.nix
-    ./modules/berlin.nix
-    ./modules/colemak.nix
-    ./modules/trackball.nix
-    ./modules/british-english.nix
-    ./modules/x250.nix
-    ./modules/user.nix
-    ./modules/dev.nix
-    ./modules/lisp.nix
-    ./modules/javascript.nix
-    ./modules/infrastructure.nix
-    ./modules/accounting.nix
-    ./modules/passwords.nix
-    ./modules/network-manager.nix
-    ./modules/nix.nix 
-    ./modules/i3.nix
+
+    ./modules/configuration/berlin.nix
+    ./modules/configuration/british-english.nix
+    ./modules/configuration/nix.nix
+    ./modules/configuration/user.nix
+    ./modules/development/base.nix
+    ./modules/development/javascript.nix
+    ./modules/development/lisp.nix
+    ./modules/hardware/adb.nix
+    ./modules/hardware/audio.nix
+    ./modules/hardware/colemak.nix
+    ./modules/hardware/network-manager.nix
+    ./modules/hardware/nitrokey.nix
+    ./modules/hardware/systemd-boot.nix
+    ./modules/hardware/trackball.nix
+    ./modules/machines/x250.nix
+    ./modules/programs/accounting.nix
+    ./modules/programs/dotfiles.nix
+    ./modules/programs/i3.nix
+    ./modules/programs/infrastructure.nix
+    ./modules/programs/passwords.nix
+    ./modules/programs/shell.nix
+    ./modules/services/syncthing.nix
   ];
 
   environment.systemPackages = with pkgs; [
A modules/hardware/printing.nix
@@ -0,0 +1,8 @@+{ config, pkgs, lib, ... }:
+
+{ services.printing.enable = true;
+
+  imports = [
+    ../services/zeroconf.nix
+  ];
+}
M modules/laptop.nixmodules/hardware/laptop.nix
@@ -72,6 +72,6 @@ systemd.services.nixos-upgrade.unitConfig.ConditionACPower = true;   systemd.services.nix-gc.unitConfig.ConditionACPower = true;
 
   imports = [
-    ./user-interface.nix
+    ../user-interface.nix
   ];
 }
D modules/printing.nix
@@ -1,8 +0,0 @@-{ config, pkgs, ... }:
-
-{ services.printing.enable = true;
-
-  imports = [
-    ./zeroconf.nix
-  ];
-}
M modules/t470s.nixmodules/machines/t470s.nix
@@ -18,7 +18,8 @@ nvme-cli   ];
 
   imports = [
-    ./intel-gpu.nix
-    ./thinkpad.nix
+    ../hardware/intel-gpu.nix
+    ../hardware/hidpi.nix
+    ../hardware/thinkpad.nix
   ];
 }
M modules/thinkpad.nixmodules/hardware/thinkpad.nix
@@ -31,5 +31,6 @@ }; 
   imports = [
     ./bare-metal.nix
+    ./laptop.nix
   ];
 }
M modules/user-interface.nixmodules/user-interface.nix
@@ -78,6 +78,6 @@ enable = true;   };
 
   imports = [
-    ./xserver.nix
+    ./services/xserver.nix
   ];
 }
M modules/x250.nixmodules/machines/x250.nix
@@ -1,9 +1,6 @@ { config, pkgs, ... }:
 
-{ imports = [
-    ./synaptics.nix
-  ];
-  boot.extraModulePackages = with config.boot.kernelPackages; [
+{ boot.extraModulePackages = with config.boot.kernelPackages; [
     acpi_call
   ];
 
@@ -33,7 +30,8 @@ SATA_LINKPWR_BLACKLIST="host1"   '';
 
   imports = [
-    ./intel-gpu.nix
-    ./thinkpad.nix
+    ../hardware/synaptics.nix
+    ../hardware/intel-gpu.nix
+    ../hardware/thinkpad.nix
   ];
 }
M satoshipad.nixsatoshipad.nix
@@ -3,35 +3,34 @@ {
   imports = [
     ./hardware-configuration.nix
+    ./private/default.nix
+
     ./modules/base.nix
-    ./modules/grub2.nix
-    ./modules/audio.nix
-    ./modules/adb.nix
-    ./modules/syncthing.nix
-    ./modules/hidpi.nix
-    ./modules/nitrokey.nix
-    ./modules/shell.nix
-    ./modules/dotfiles.nix
-    ./modules/berlin.nix
-    ./modules/colemak.nix
-    ./modules/trackball.nix
-    ./modules/british-english.nix
-    ./modules/printing.nix
-    ./modules/t470s.nix
-    ./modules/user.nix
-    ./modules/dev.nix
-    ./modules/lisp.nix
-    ./modules/javascript.nix
+    ./modules/configuration/berlin.nix
+    ./modules/configuration/british-english.nix
+    ./modules/configuration/nix.nix
+    ./modules/configuration/user.nix
+    ./modules/development/base.nix
+    ./modules/development/javascript.nix
+    ./modules/development/lisp.nix
+    ./modules/hardware/adb.nix
+    ./modules/hardware/audio.nix
+    ./modules/hardware/colemak.nix
+    ./modules/hardware/grub2.nix
+    ./modules/hardware/network-manager.nix
+    ./modules/hardware/nitrokey.nix
+    ./modules/hardware/printing.nix
+    ./modules/hardware/trackball.nix
+    ./modules/machines/t470s.nix
+    ./modules/programs/accounting.nix
+    ./modules/programs/dotfiles.nix
+    ./modules/programs/gnome.nix
+    ./modules/programs/i3.nix
+    ./modules/programs/infrastructure.nix
+    ./modules/programs/passwords.nix
+    ./modules/programs/shell.nix
     ./modules/satoshipay.nix
-    ./modules/infrastructure.nix
-    ./modules/accounting.nix
-    ./modules/passwords.nix
-    ./modules/network-manager.nix
-    ./modules/zeroconf.nix
-    ./modules/nix.nix
-    ./modules/i3.nix
-    ./modules/gnome.nix
-    ./private/default.nix
+    ./modules/services/syncthing.nix
   ];
 
   boot.initrd.luks.devices = [