fist commit - images lib in a working condition for debian
This commit is contained in:
commit
ad2092531c
12 changed files with 308 additions and 0 deletions
24
lib/images/debian/templates.nix
Normal file
24
lib/images/debian/templates.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# create additional useful template images from upstream images
|
||||
{ pkgs, lib, system, commons, upstreamImages, customs, ... }:
|
||||
with commons;
|
||||
with scriptsNFiles;
|
||||
{
|
||||
v12 = rec {
|
||||
# default image with essential functionalities like ssh, networking etc
|
||||
default = customizeImage upstreamImages.v12 (customs.essentials // {
|
||||
name = "default";
|
||||
hostname = "debian";
|
||||
});
|
||||
|
||||
# playground with easy root access
|
||||
play = customizeImage default (customs.rooted // {
|
||||
name = "play";
|
||||
nameToHostname = false;
|
||||
});
|
||||
|
||||
# proxmox
|
||||
proxmox = customizeImage default (customs.proxmoxOnDebian12 // {
|
||||
name = "proxmox";
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue