From b556e0ad88c1f9b54df8664fc449ca8f435688ab Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 17 Jul 2023 19:23:00 +0200 Subject: [PATCH] One more tiny change --- hosts/nixos/lapetus/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hosts/nixos/lapetus/default.nix b/hosts/nixos/lapetus/default.nix index 4d9541a..3f54302 100644 --- a/hosts/nixos/lapetus/default.nix +++ b/hosts/nixos/lapetus/default.nix @@ -1,18 +1,21 @@ -{ config, ... }: { +{ config, ... }: +let + device = "/dev/sda"; +in +{ imports = [ ../common/global ../common/users/adrielus.nix ../common/optional/slambda.nix ./hardware-configuration.nix - ./boot.nix ]; # Set the name of this machine! networking.hostName = "lapetus"; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion - system.stateVersion = "22.11"; + system.stateVersion = "23.05"; # Configure ZFS boot.supportedFilesystems = [ "zfs" ]; @@ -29,13 +32,13 @@ # ''; disko.devices = import ./partitions.nix { - devices = [ "/dev/sda" ]; + devices = [ device ]; }; # Boot boot.loader.grub = { + inherit device; enable = true; version = 2; - device = "/dev/sda"; }; }