Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit 7311feb

Browse files
Allow building installers with custom configs
- Move previous config snippets into snippet files, used as default snippets (getCustomOrDefaultSnippet) - If a custom snippet is found in customConfigSnippets, it is used instead
1 parent 2d6e267 commit 7311feb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+290
-343
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ insert_final_newline = true
2727
indent_style = tab
2828
insert_final_newline = true
2929

30+
[*.snippet]
31+
indent_style = space
32+
indent_size = 2
33+
insert_final_newline = true

modules/nixos/defaultConfigs/modules/.gitkeep

Whitespace-only changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Enable sound with pipewire.
2+
sound.enable = false;
3+
hardware.pulseaudio.enable = false;
4+
security.rtkit.enable = true;
5+
services.pipewire = {
6+
enable = true;
7+
alsa.enable = true;
8+
alsa.support32Bit = true;
9+
pulse.enable = true;
10+
# If you want to use JACK applications, uncomment this
11+
#jack.enable = true;
12+
13+
# use the example session manager (no others are packaged yet so this is enabled by default,
14+
# no need to redefine it in your config for now)
15+
#media-session.enable = true;
16+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Enable automatic login for the user.
2+
services.xserver.displayManager.autoLogin.enable = true;
3+
services.xserver.displayManager.autoLogin.user = "@@username@@";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
2+
systemd.services."getty@tty1".enable = false;
3+
systemd.services."autovt@tty1".enable = false;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Enable automatic login for the user.
2+
services.getty.autologinUser = "@@username@@";
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Bootloader.
2+
boot.loader.grub.enable = true;
3+
boot.loader.grub.device = "@@bootdev@@";
4+
boot.loader.grub.useOSProber = true;
5+
boot.tmp.useTmpfs = true;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Bootloader.
2+
boot.loader.systemd-boot.enable = true;
3+
boot.loader.systemd-boot.configurationLimit = 42;
4+
boot.loader.efi.canTouchEfiVariables = true;
5+
boot.tmp.useTmpfs = true;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Setup keyfile
2+
boot.initrd.secrets = {
3+
"/boot/crypto_keyfile.bin" = null;
4+
};
5+
6+
boot.loader.grub.enableCryptodisk = true;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Disable bootloader.
2+
boot.loader.grub.enable = false;

0 commit comments

Comments
 (0)