mio-ops/hosts/sithlainnir.nix

39 lines
973 B
Nix
Raw Normal View History

2019-12-12 23:02:55 +00:00
# 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";
2020-03-06 04:50:11 +00:00
deployment.targetHost = "10.69.0.121";
2019-12-12 23:02:55 +00:00
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
2020-04-24 05:46:05 +00:00
"nixpkgs=https://nixos.org/channels/nixos-20.03/nixexprs.tar.xz"
2019-12-12 23:02:55 +00:00
];
system.stateVersion = "18.09"; # The version of NixOS originally installed
}