nixfiles/hosts/nixos-live/nixos-live.nix

50 lines
982 B
Nix
Raw Normal View History

{
config,
tree,
modulesPath,
lib,
...
2023-09-18 03:56:58 +01:00
}: let
inherit (lib.modules) mkForce;
in {
2023-08-28 18:50:25 +01:00
imports = with tree; [
(modulesPath + "/installer/cd-dvd/installation-cd-graphical-gnome.nix")
2022-11-02 09:05:24 +00:00
(modulesPath + "/installer/cd-dvd/channel.nix")
2023-08-28 18:50:25 +01:00
users.root
profiles.base
profiles.sshd
2023-09-18 03:56:58 +01:00
profiles.connectivity.iOS
profiles.connectivity.networkManager
2023-08-28 18:50:25 +01:00
];
# disable zfs
nixpkgs.overlays = [
(_final: super: {
2023-08-28 18:50:25 +01:00
zfs = super.zfs.overrideAttrs (_: {
meta.platforms = [];
});
})
2022-11-02 09:05:24 +00:00
];
2023-08-28 18:50:25 +01:00
2023-09-18 03:56:58 +01:00
networking.wireless.enable = mkForce false;
2023-08-28 18:50:25 +01:00
nixpkgs.config.allowBroken = true;
home-manager.users.root = {
imports = with tree; [home.base home.dev];
};
home-manager.users.nixos = {
imports = with tree; [home.base home.dev];
};
isoImage = {
isoBaseName = "nixos-chaos";
compressImage = false;
squashfsCompression = "zstd -Xcompression-level 1";
};
2023-09-18 03:56:58 +01:00
services.openssh.settings.PermitRootLogin = mkForce "yes";
2022-11-02 09:05:24 +00:00
}