-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlivecd.nix
More file actions
54 lines (53 loc) · 1.52 KB
/
livecd.nix
File metadata and controls
54 lines (53 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ inputs, ... }:
{
flake.nixosConfigurations.livecd = inputs.nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
(
{
pkgs,
modulesPath,
...
}:
{
nixpkgs.config.allowUnfree = true;
isoImage.squashfsCompression = "zstd";
imports = [
inputs.nix-packages.nixosModules.daed
(modulesPath + "/installer/cd-dvd/latest-kernel.nix")
(modulesPath + "/installer/cd-dvd/installation-cd-graphical-calamares-plasma6.nix")
];
services.daed = {
enable = true;
package = inputs.nix-packages.packages.${system}.daed;
openFirewall = {
enable = true;
port = 12345;
};
configDir = "/etc/daed";
listen = "0.0.0.0:2023";
};
networking.firewall.allowedTCPPorts = [ 2023 ];
environment.systemPackages = with pkgs; [
git
ntfsprogs-plus
];
services.openssh = {
enable = true;
settings.PermitRootLogin = "yes";
openFirewall = true;
};
boot.supportedFilesystems.bcachefs = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
open = true;
gsp.enable = true;
modesetting.enable = true;
powerManagement.enable = true;
branch = "bleeding_edge";
};
}
)
];
};
}