summaryrefslogtreecommitdiff
path: root/modules/hosts/dragotha/dragotha.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hosts/dragotha/dragotha.nix')
-rw-r--r--modules/hosts/dragotha/dragotha.nix60
1 files changed, 60 insertions, 0 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
+ ";
+ };
+ };
+ };
+}