summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorKJ <orbekk@dragon.qlic.orbekk.com>2017-11-17 21:40:50 -0500
committerKJ <orbekk@dragon.qlic.orbekk.com>2017-11-17 21:40:50 -0500
commit30b25029be9f9d668952373e12909d2d50797b4b (patch)
tree88eac822ba6178ca8115f1008f16813ec56c547b /machines
parent94edfd22e3c2fbf76addc368f0685ec17c6b5ee3 (diff)
Add config for dragon
Diffstat (limited to 'machines')
-rw-r--r--machines/dragon.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/machines/dragon.nix b/machines/dragon.nix
new file mode 100644
index 0000000..f3257bf
--- /dev/null
+++ b/machines/dragon.nix
@@ -0,0 +1,37 @@
+{ config, lib, pkgs, ... }:
+{
+ imports =
+ [ ../config/common.nix
+ ../config/users.nix
+ ];
+
+ boot.kernelParams = [ "console=tty0" ''console="ttyS0,115200n8"'' ];
+ boot.loader.grub.extraConfig = ''
+ GRUB_TERMINAL="console serial"
+ GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
+ '';
+ boot.loader.grub.enable = true;
+ boot.loader.grub.version = 2;
+ boot.loader.grub.devices = ["/dev/sda" "/dev/sdb"];
+
+ networking = {
+ hostName = lib.mkForce "dragon";
+ };
+
+ services = {
+ openssh = {
+ enable = lib.mkDefault true;
+ passwordAuthentication = false;
+ };
+ };
+
+ fileSystems = {
+ "/storage" = {
+ device = "/dev/sda3";
+ fsType = "btrfs";
+ options = [ "subvol=storage" ];
+ };
+ };
+
+ system.stateVersion = lib.mkForce "17.09";
+}