summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-12-17 11:57:32 +0100
committerAdrian Kummerlaender2018-12-17 11:57:32 +0100
commit423496f53509b82142af9c9c276f2c74204b62c1 (patch)
treec013d7426fac1b9c2726a8b94bc2f136155f6ede
parent4e3825da58280e04c9393081a5c6efd581151c25 (diff)
downloadnixos_system-423496f53509b82142af9c9c276f2c74204b62c1.tar
nixos_system-423496f53509b82142af9c9c276f2c74204b62c1.tar.gz
nixos_system-423496f53509b82142af9c9c276f2c74204b62c1.tar.bz2
nixos_system-423496f53509b82142af9c9c276f2c74204b62c1.tar.lz
nixos_system-423496f53509b82142af9c9c276f2c74204b62c1.tar.xz
nixos_system-423496f53509b82142af9c9c276f2c74204b62c1.tar.zst
nixos_system-423496f53509b82142af9c9c276f2c74204b62c1.zip
Add majestix system config
-rw-r--r--host/hardware/majestix.nix31
-rw-r--r--host/majestix.nix48
2 files changed, 79 insertions, 0 deletions
diff --git a/host/hardware/majestix.nix b/host/hardware/majestix.nix
new file mode 100644
index 0000000..5c78ed8
--- /dev/null
+++ b/host/hardware/majestix.nix
@@ -0,0 +1,31 @@
+# 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" "ehci_pci" "ahci" "usbhid" "sd_mod" "sr_mod" ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/6eb9a8c7-0384-4c47-9e4e-24d2ed57fc2e";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/e8a055f9-4293-4a55-9974-9ca39bf209cd";
+ fsType = "ext2";
+ };
+
+ swapDevices =
+ [ { device = "/dev/disk/by-uuid/b27d07d6-bc07-4e7c-bd14-2b67c89dbf20"; }
+ ];
+
+ nix.maxJobs = lib.mkDefault 8;
+ powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+}
diff --git a/host/majestix.nix b/host/majestix.nix
new file mode 100644
index 0000000..8d5aab7
--- /dev/null
+++ b/host/majestix.nix
@@ -0,0 +1,48 @@
+{ pkgs, ... }:
+
+{
+ imports = [
+ ./hardware/majestix.nix
+ ./software/desktop
+ ];
+
+ boot = {
+ loader.grub = {
+ enable = true;
+ version = 2;
+ device = "/dev/sda";
+ };
+
+ initrd.luks.devices = [ {
+ name = "encrypted";
+ device = "/dev/sda2";
+ preLVM = true;
+ } ];
+ };
+
+ networking = {
+ hostName = "majestix";
+ firewall.enable = false;
+ networkmanager.enable = true;
+ };
+
+ users.extraUsers.common.extraGroups = [ "networkmanager" ];
+
+ services = {
+ acpid.enable = true;
+
+ xserver = {
+ videoDrivers = [ "intel" ];
+ };
+
+ printing = {
+ enable = true;
+ drivers = [ pkgs.brgenml1cupswrapper ];
+ };
+
+ avahi = {
+ enable = true;
+ nssmdns = true;
+ };
+ };
+}