summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/hosts/dragotha/dragotha.nix60
-rw-r--r--modules/hosts/dragotha/hardware.nix14
-rw-r--r--modules/hosts/tiamat/tiamat.nix4
3 files changed, 74 insertions, 4 deletions
diff --git a/modules/hosts/dragotha/dragotha.nix b/modules/hosts/dragotha/dragotha.nix
new file mode 100644
index 0000000..ff8f470
--- /dev/null
+++ b/modules/hosts/dragotha/dragotha.nix
@@ -0,0 +1,60 @@
+{
+ inputs,
+ self,
+ ...
+}: {
+ flake.nixosConfigurations.dragotha = inputs.nixpkgs.lib.nixosSystem {
+ modules = [
+ self.nixosModules.dragotha
+ self.nixosModules.dragothaHardware
+
+ self.nixosModules.createHost
+ self.nixosModules.hostOptions
+
+ self.nixosModules.desktop
+ self.nixosModules.nasClient
+ ];
+ };
+
+ flake.nixosModules.dragotha = {pkgs, ...}: {
+ hostOptions = {
+ host.name = "dragotha";
+ user.name = "jck";
+ user.email = "jckrinsky@gmail.com";
+ };
+
+ boot.kernelParams = ["quiet"];
+
+ hardware.graphics = {
+ enable = true;
+ enable32Bit = true;
+ };
+
+ networking.nameservers = ["1.1.1.1" "9.9.9.9"];
+
+ services.automatic-timezoned.enable = true;
+
+ services.kanata = {
+ enable = true;
+ keyboards.tkb = {
+ devices = [
+ "dev/input/by-path/platform-i8042-serio-0-event-kbd"
+ ];
+ config = "
+ (defsrc h j k l caps)
+
+ (deflayer default _ _ _ _ @press)
+ (deflayer arrows left down up right @press)
+
+ (defalias press
+ (tap-hold-press 200 200 esc (layer-while-held arrows))
+ )
+ ";
+
+ extraDefCfg = "
+ process-unmapped-keys yes
+ ";
+ };
+ };
+ };
+}
diff --git a/modules/hosts/dragotha/hardware.nix b/modules/hosts/dragotha/hardware.nix
new file mode 100644
index 0000000..19bd7f1
--- /dev/null
+++ b/modules/hosts/dragotha/hardware.nix
@@ -0,0 +1,14 @@
+{
+ self,
+ inputs,
+ ...
+}: {
+ flake.nixosModules.dragothaHardware = {
+ config,
+ lib,
+ pkgs,
+ modulesPath,
+ ...
+ }: {
+ };
+}
diff --git a/modules/hosts/tiamat/tiamat.nix b/modules/hosts/tiamat/tiamat.nix
index d41ce40..58c90b9 100644
--- a/modules/hosts/tiamat/tiamat.nix
+++ b/modules/hosts/tiamat/tiamat.nix
@@ -3,10 +3,6 @@
self,
...
}: {
- imports = [
- inputs.home-manager.flakeModules.home-manager
- ];
-
flake.nixosConfigurations.tiamat = inputs.nixpkgs.lib.nixosSystem {
modules = [
self.nixosModules.tiamat