-
Notifications
You must be signed in to change notification settings - Fork 1
/
minimal-configuration.nix
45 lines (41 loc) · 1.21 KB
/
minimal-configuration.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
# This is a basic NixOS configuration template for a live minimal ISO image
# that can be used to install NixOS on a system.
# ISO can be built using `nix build .#nixosConfigurations.nixos-minimal.config.system.build.isoImage`
# Make sure to enable flakes and nix-command on the host system before building the ISO
# Resulting image can be found in ./result/iso/ directory
{
config,
lib,
pkgs,
system,
...
}: {
nixpkgs.hostPlatform = lib.mkDefault system;
nix.settings.experimental-features = [
"nix-command"
"flakes"
]; # enable nix command and flakes
boot.kernelPackages = pkgs.linuxPackages_zen;
boot.supportedFilesystems = [
"btrfs"
"f2fs"
"xfs"
"ntfs"
"bcachefs"
"ext4"
];
networking.hostName = "nixos-minimal"; # set live session hostname
# Wireless network and wired network is enabled by default
nixpkgs.config.allowUnfree = true;
# Set environment variable for allowing non-free packages
environment.sessionVariables = {
NIXPKGS_ALLOW_UNFREE = "1";
};
environment.systemPackages = with pkgs; [
# Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
git
curl
parted
firefox
];
}