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

53 lines
1 KiB
Nix
Raw Normal View History

{
self,
config,
tree,
modulesPath,
2023-08-28 18:50:25 +01:00
pkgs,
lib,
...
}: {
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
profiles.kernels.latest
profiles.connectivity.ios
profiles.connectivity.network_manager
];
# disable zfs
nixpkgs.overlays = [
(final: super: {
zfs = super.zfs.overrideAttrs (_: {
meta.platforms = [];
});
})
2022-11-02 09:05:24 +00:00
];
2023-08-28 18:50:25 +01:00
networking.wireless.enable = lib.mkForce false;
nixpkgs.config.allowBroken = true;
home-manager.users.root = {
imports = with tree; [home.base home.dev];
home.stateVersion = "23.05";
};
home-manager.users.nixos = {
imports = with tree; [home.base home.dev];
home.stateVersion = "23.05";
};
isoImage = {
isoBaseName = "nixos-chaos";
compressImage = false;
squashfsCompression = "zstd -Xcompression-level 1";
};
2023-08-28 18:50:25 +01:00
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
2022-11-02 09:05:24 +00:00
}