-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustomIso.nix
61 lines (52 loc) · 1.69 KB
/
customIso.nix
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
55
56
57
58
59
60
61
{config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-base.nix>
# Provide an initial copy of the NixOS channel so that the user
# doesn't need to run "nix-channel --update" first.
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
./customIsoFiles/files.nix
];
# Grub also needs zfs
boot.loader.grub.zfsSupport = true;
# Enable ZFS (unstable needed for native zfs encryption)
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.enableUnstable = true;
# Select internationalisation properties.
console.font = "Lat2-Terminus16";
console.keyMap = "sg-latin1"; # Swiss German keyboard layout
i18n.defaultLocale = "de_CH.UTF-8";
# Provide networkmanager for easy wireless configuration.
networking.networkmanager.enable = true;
networking.wireless.enable = false;
# Time.
time.timeZone = "Europe/Zurich";
# State Version - mostly for bases
system.stateVersion = "20.09";
environment.files.root = {
root = "/root";
files = {
".tmux.conf".source = "${./customIsoFiles/tmux.conf}";
"min_conf.nix".source = "${./customIsoFiles/min_conf.nix}";
"installZFS" = {
mode = "a+rwx";
user = "root";
source = "${./customIsoFiles/installZFS}";
};
".fullInstall" = {
mode = "a+rwx";
user = "root";
source = "${./customIsoFiles/fullInstall}";
};
};
};
# List of packages that gets installed....
environment.systemPackages = with pkgs; [
cryptsetup
htop
# kate
# gparted
rsync
tmux
];
}