From 04bd246a2a8b9569a2c42c3419fd99e7450af75d Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 15 Nov 2024 21:09:57 +0100 Subject: [PATCH] feat: Add OS release info --- modules/image/disk/builder.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/image/disk/builder.nix b/modules/image/disk/builder.nix index 39f321c..ba3329c 100644 --- a/modules/image/disk/builder.nix +++ b/modules/image/disk/builder.nix @@ -1,6 +1,7 @@ { config, lib, + options, pkgs, ... }: @@ -132,6 +133,21 @@ let in { + # This fields is immutable by default, but can be overridden. + options.system.nixos.codeName = lib.mkOption { readOnly = false; }; + options.system.nixos.release = lib.mkOption { readOnly = false; }; + + # FIXME: Should be configured somehow + config.system.nixos = { + codeName = "Finn"; + distroId = "patos"; + distroName = "PatOS"; + release = "2024-11"; + variant_id = "server"; + variantName = "Server"; + vendorName = "PatOS"; + }; + options.image.compress = lib.mkEnableOption "image compression" // { default = true; };