Skip to content

Commit 5ea4843

Browse files
committed
feature: installer image
1 parent dc08d9a commit 5ea4843

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

packages/default.nix

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
{
3636
inherit nil;
3737

38+
installer-iso = (upkgs.callPackage ./installer {inherit (inputs.nixpkgs.lib) nixosSystem;}).config.system.build.isoImage;
39+
3840
advcp = upkgs.callPackage ./advcp {};
3941
"dracula/konsole" = upkgs.callPackage ./dracula/konsole {};
4042
emacs = epkgs.emacs-unstable;

packages/installer/default.nix

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
nixosSystem,
3+
system,
4+
}:
5+
nixosSystem {
6+
inherit system;
7+
8+
modules = [
9+
({modulesPath, ...}: {
10+
imports = [
11+
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
12+
];
13+
14+
services.lvm = {
15+
boot.thin.enable = true;
16+
boot.vdo.enable = true;
17+
dmeventd.enable = true;
18+
};
19+
20+
isoImage.squashfsCompression = "zstd -Xcompression-level 10";
21+
})
22+
];
23+
}

0 commit comments

Comments
 (0)