This commit is contained in:
parent
6199a75b07
commit
fadd0c41d4
4 changed files with 20 additions and 15 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -39,4 +39,4 @@ terraform.rc
|
|||
admin.*config
|
||||
|
||||
# Nix
|
||||
**/result/*
|
||||
**/result
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
|
@ -26,21 +25,8 @@
|
|||
boot.growPartition = true;
|
||||
boot.kernelParams = [ "console=ttyS0" ];
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
#boot.loader.grub.device = "nodev";
|
||||
#boot.loader.grub.efiSupport = true;
|
||||
#boot.loader.grub.efiInstallAsRemovable = true;
|
||||
boot.loader.timeout = 0;
|
||||
|
||||
system.build.qcow2 = import "${toString modulesPath}/../lib/make-disk-image.nix" {
|
||||
inherit lib config pkgs;
|
||||
name = "nixos";
|
||||
diskSize = "auto";
|
||||
format = "qcow2-compressed";
|
||||
partitionTableType = "efi";
|
||||
copyChannel = true;
|
||||
configFile = pkgs.writeText "configuration.nix" (pkgs.lib.readFile ./configuration.nix);
|
||||
};
|
||||
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
services.cloud-init = {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
build-qcow2 = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./qcow2.nix
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
|
|
18
proxmox.tjo.cloud/qcow2.nix
Normal file
18
proxmox.tjo.cloud/qcow2.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
{
|
||||
system.build.qcow2 = import "${toString modulesPath}/../lib/make-disk-image.nix" {
|
||||
inherit lib config pkgs;
|
||||
name = "nixos";
|
||||
diskSize = "auto";
|
||||
format = "qcow2-compressed";
|
||||
partitionTableType = "efi";
|
||||
copyChannel = true;
|
||||
configFile = pkgs.writeText "configuration.nix" (pkgs.lib.readFile ./configuration.nix);
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue