From 212eb1599f578d6703c533b2540ad4e0eabdd305 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Wed, 11 Dec 2019 11:52:19 +1000 Subject: [PATCH] Added iolear-beag --- hosts/iolear-beag.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 hosts/iolear-beag.nix diff --git a/hosts/iolear-beag.nix b/hosts/iolear-beag.nix new file mode 100644 index 0000000..b4d4106 --- /dev/null +++ b/hosts/iolear-beag.nix @@ -0,0 +1,38 @@ +# Configuration for a Lenovo x201 + +{ config, pkgs, ... }: + +{ + imports = + [ + ../hardware/lenovo_x201.nix + ../roles/desktop_common.nix + ]; + + # Use the GRUB 2 boot loader. + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.device = "/dev/sda"; + + deployment.targetHost = "10.69.0.158"; + networking.hostName = "iolear-beag"; # Define your hostname. + + # Adapted from gchristensen + nix.nixPath = [ + # Ruin the config so we don't accidentally run + # nixos-rebuild switch on the host + (let + cfg = pkgs.writeText "configuration.nix" + '' + assert builtins.trace "This system is managed by NixOps." false; + {} + ''; + in "nixos-config=${cfg}") + + # Copy the channel version from the deploy host to the target + "nixpkgs=/run/current-system/nixpkgs" + ]; + + system.stateVersion = "18.09"; # The version of NixOS originally installed + +}