about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rwxr-xr-xmachines/asus/acpi_overridebin0 -> 113664 bytes
-rwxr-xr-xmachines/asus/configuration.nix42
-rwxr-xr-xmachines/asus/default.nix6
-rw-r--r--machines/asus/hardware-configuration.nix39
4 files changed, 87 insertions, 0 deletions
diff --git a/machines/asus/acpi_override b/machines/asus/acpi_override
new file mode 100755
index 0000000..19d39ae
--- /dev/null
+++ b/machines/asus/acpi_override
Binary files differdiff --git a/machines/asus/configuration.nix b/machines/asus/configuration.nix
new file mode 100755
index 0000000..444f9f0
--- /dev/null
+++ b/machines/asus/configuration.nix
@@ -0,0 +1,42 @@
+{ config, pkgs, ... }:
+
+{
+
+  imports = [
+    ../base.nix
+    ../pl.nix
+    ../../modules/larbs.nix
+    ../../modules/trackpad.nix
+  ];
+
+  networking = {
+    hostName = "asus-t100";
+
+    networkmanager = {
+      enable = true;
+      wifi.backend = "iwd";
+    };
+  };
+
+
+  environment.systemPackages = with pkgs; [
+    libimobiledevice
+  ];
+
+  services.usbmuxd.enable = true;
+
+  services.acpid.enable = true;
+
+  # Battery
+  services.tlp.enable = true;
+
+  services.xserver = {
+    videoDrivers = [ "intel" ];
+    deviceSection = ''
+      Option      "Backlight"  "intel_backlight"
+      Option "DIR" "2"
+      Option "TearFree" "true"
+    '';
+  };
+
+}
diff --git a/machines/asus/default.nix b/machines/asus/default.nix
new file mode 100755
index 0000000..246ffea
--- /dev/null
+++ b/machines/asus/default.nix
@@ -0,0 +1,6 @@
+{
+	imports = [
+		./configuration.nix
+		./hardware-configuration.nix
+	];
+}
diff --git a/machines/asus/hardware-configuration.nix b/machines/asus/hardware-configuration.nix
new file mode 100644
index 0000000..ef6aaa7
--- /dev/null
+++ b/machines/asus/hardware-configuration.nix
@@ -0,0 +1,39 @@
+# Do not modify this file!  It was generated by ‘nixos-generate-config’
+# and may be overwritten by future invocations.  Please make changes
+# to /etc/nixos/configuration.nix instead.
+{ config, lib, pkgs, ... }:
+
+{
+  imports =
+    [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
+    ];
+
+  boot.initrd.availableKernelModules = [ "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_acpi" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ "kvm-intel" ];
+  boot.extraModulePackages = [ ];
+
+  boot.initrd.prepend = [ "${./acpi_override}" ];
+
+  boot.loader.grub = {
+    efiSupport = true;
+    device = "nodev";
+  };
+
+  fileSystems."/" = lib.mkForce
+    { device = "/dev/disk/by-uuid/7ee757e6-4f50-4681-9b5b-27c2cb1f84e4";
+      fsType = "ext4";
+    };
+
+  fileSystems."/boot" = lib.mkForce
+    { device = "/dev/disk/by-uuid/5386-B9AE";
+      fsType = "vfat";
+    };
+
+  swapDevices = lib.mkForce
+    [ { device = "/dev/disk/by-uuid/8924970e-10bd-4d6f-a137-61d05a886106"; }
+    ];
+
+  nix.maxJobs = lib.mkDefault 4;
+  powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+}