From 8a8bc566c64b0c71b222bff00f2173a0789b1bed Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sat, 5 Aug 2017 09:17:30 +0200 Subject: [PATCH] aplysia --- aplysia.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 aplysia.nix diff --git a/aplysia.nix b/aplysia.nix new file mode 100644 index 0000000..0d807b4 --- /dev/null +++ b/aplysia.nix @@ -0,0 +1,43 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + ./common-headless.nix + ]; + + # Use the GRUB 2 boot loader. + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.zfsSupport = true; + boot.supportedFilesystems = ["zfs"]; + # boot.loader.grub.efiSupport = true; + # boot.loader.grub.efiInstallAsRemovable = true; + # boot.loader.efi.efiSysMountPoint = "/boot/efi"; + # Define on which hard drive you want to install Grub. + # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only + boot.loader.grub.mirroredBoots = [ + { devices = [ "/dev/sda" ]; path = "/boota"; } + { devices = [ "/dev/sdb" ]; path = "/bootb"; } + { devices = [ "/dev/sdc" ]; path = "/bootc"; } + { devices = [ "/dev/sdd" ]; path = "/bootd"; } + { devices = [ "/dev/sde" ]; path = "/boote"; } + { devices = [ "/dev/sdf" ]; path = "/bootf"; } + ]; + + networking.hostName = "aplysia"; # Define your hostname. + networking.hostId = "34a820f1"; + + services.openssh.enable = true; + + users.extraUsers.gebner = { + isNormalUser = true; + extraGroups = ["wheel"]; + }; + + boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages; + + # The NixOS release to be compatible with for stateful data such as databases. + system.stateVersion = "17.03"; + +}