feat: hey it works, ish
Some checks failed
/ lint (push) Failing after 2m17s

This commit is contained in:
Tine 2024-09-01 11:26:09 +02:00
parent 6199a75b07
commit fadd0c41d4
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
4 changed files with 20 additions and 15 deletions

2
.gitignore vendored
View file

@ -39,4 +39,4 @@ terraform.rc
admin.*config admin.*config
# Nix # Nix
**/result/* **/result

View file

@ -1,5 +1,4 @@
{ {
config,
lib, lib,
pkgs, pkgs,
modulesPath, modulesPath,
@ -26,21 +25,8 @@
boot.growPartition = true; boot.growPartition = true;
boot.kernelParams = [ "console=ttyS0" ]; boot.kernelParams = [ "console=ttyS0" ];
boot.loader.systemd-boot.enable = true; 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; 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.qemuGuest.enable = true;
services.cloud-init = { services.cloud-init = {

View file

@ -10,6 +10,7 @@
build-qcow2 = nixpkgs.lib.nixosSystem { build-qcow2 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./qcow2.nix
./configuration.nix ./configuration.nix
]; ];
}; };

View 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);
};
}