Added sithlainnir

This commit is contained in:
Serĉanto de Scio 2019-12-13 09:02:55 +10:00
parent ad37661cd4
commit 5302916355
Signed by: sercanto
GPG key ID: A4122FF3971B6865

38
hosts/sithlainnir.nix Normal file
View file

@ -0,0 +1,38 @@
# Configuration for sithlainnir, 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.146";
networking.hostName = "sithlainnir"; # 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
}