From a5772c7e649ff3305f3dc765c90279a1b23d8107 Mon Sep 17 00:00:00 2001 From: penglei Date: Sun, 20 Oct 2024 12:07:43 +0800 Subject: [PATCH] add sv-alpha machine --- machines.nix | 12 +++++++++++- readme.md | 1 - 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/machines.nix b/machines.nix index 6343062..a8d639a 100644 --- a/machines.nix +++ b/machines.nix @@ -1,6 +1,14 @@ { system, profiles, nixpkgs, pkgOverlays, ... }: -{ +let + cloudconfig = { + inherit system nixpkgs; + overlays = pkgOverlays; + username = "penglei"; + modules = [ ./nixos/cloud ]; + hm-modules = profiles.hm.slim.modules; + }; +in { slim = profiles.nixos-creator { inherit system; nixpkgs = nixpkgs; # nixpkgsForNixOS @@ -84,4 +92,6 @@ modules = [ ./nixos/cloud ]; hm-modules = profiles.hm.slim.modules; }; + + sv-alpha = profiles.nixos-creator (cloudconfig // { hostname = "sv-alpha"; }); } diff --git a/readme.md b/readme.md index d529dae..e2b52af 100644 --- a/readme.md +++ b/readme.md @@ -53,7 +53,6 @@ $ sudo nixos-rebuild switch --flake .#tart-vm ``` # chown -R 0:0 /nix # touch /etc/NIXOS - # touch /etc/NIXOS_LUSTRATE # echo etc/nixos | tee -a /etc/NIXOS_LUSTRATE etc/nixos # mv -v /boot /boot.bak