summaryrefslogtreecommitdiff
path: root/host/obelix.nix
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-06-20 13:28:04 +0200
committerAdrian Kummerlaender2018-06-20 13:30:45 +0200
commit57ded1cfdfa3a3d9ac511ca8cc936983428267c5 (patch)
tree7bdfb3681e78a67cec6866ab8d1dab2b8d625b35 /host/obelix.nix
parentcf1540d975d9dfbb2b830ed90a83e8380047f942 (diff)
downloadnixos_system-57ded1cfdfa3a3d9ac511ca8cc936983428267c5.tar
nixos_system-57ded1cfdfa3a3d9ac511ca8cc936983428267c5.tar.gz
nixos_system-57ded1cfdfa3a3d9ac511ca8cc936983428267c5.tar.bz2
nixos_system-57ded1cfdfa3a3d9ac511ca8cc936983428267c5.tar.xz
nixos_system-57ded1cfdfa3a3d9ac511ca8cc936983428267c5.zip
Split host-specific configuration
Managed using "host/current.nix" symlink.
Diffstat (limited to 'host/obelix.nix')
-rw-r--r--host/obelix.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/host/obelix.nix b/host/obelix.nix
new file mode 100644
index 0000000..c20dbab
--- /dev/null
+++ b/host/obelix.nix
@@ -0,0 +1,27 @@
+{
+ imports = [ ./hardware/obelix.nix ];
+
+ boot = {
+ kernelParams = [ "vga=0x31B" ];
+
+ loader.grub = {
+ enable = true;
+ version = 2;
+ device = "/dev/sdb";
+ };
+
+ initrd.luks.devices = [ {
+ name = "root";
+ device = "/dev/disk/by-uuid/6205da24-b1b2-402c-b175-4036e678dea9";
+ preLVM = true;
+ allowDiscards = true;
+ } ];
+ };
+
+ networking = {
+ hostName = "obelix";
+ firewall.enable = false;
+ };
+
+ services.xserver.videoDrivers = [ "nvidiaBeta" ];
+}