Snapshot.
This commit is contained in:
parent
a2be2bdcac
commit
7a6a16ca1c
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.iso
|
||||
result
|
||||
|
|
3
boot-iso.sh
Executable file
3
boot-iso.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
qemu-system-x86_64 -nographic -smp 4 -m 2048 -audiodev pa,id=Sound -device intel-hda -device hda-output,audiodev=Sound -cdrom result/iso/nixos-*.iso
|
|
@ -8,12 +8,18 @@
|
|||
../../base.nix
|
||||
../../users/root.nix
|
||||
../../users/nolan.nix
|
||||
../../roles/pipewire.nix
|
||||
../../espeakup.nix
|
||||
../../roles/tailscale.nix
|
||||
../../roles/minio.nix
|
||||
../../roles/vscode-remote.nix
|
||||
../../roles/media-pc.nix { username = "nolan"; }
|
||||
../../roles/media-pc.nix
|
||||
];
|
||||
|
||||
services.minio = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
@ -31,6 +37,11 @@
|
|||
"flakes"
|
||||
];
|
||||
|
||||
services.mediaPC = {
|
||||
enable = true;
|
||||
autoLoginUser = "nolan";
|
||||
};
|
||||
|
||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||
#
|
||||
|
|
9
iso.nix
9
iso.nix
|
@ -10,7 +10,16 @@
|
|||
./espeakup.nix
|
||||
];
|
||||
|
||||
boot.kernelParams = [ "console=ttyS0,115200" ];
|
||||
|
||||
sound.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
systemWide = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
services.espeakup.enable = true;
|
||||
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
|
||||
|
|
|
@ -1,20 +1,35 @@
|
|||
{
|
||||
username ? "",
|
||||
}:
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./gnome.nix ];
|
||||
services.displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = username;
|
||||
options.services.mediaPC = {
|
||||
enable = lib.mkEnableOption "Media PC";
|
||||
autoLoginUser = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "User to autologin as";
|
||||
};
|
||||
};
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
# package = pkgs.firefox.override { nativeMessagingHosts = [ pkgs.gnome-browser-connector ]; };
|
||||
};
|
||||
config = lib.mkIf config.services.mediaPC.enable {
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
};
|
||||
|
||||
# From https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
||||
systemd.services."getty@tty1".enable = false;
|
||||
systemd.services."autovt@tty1".enable = false;
|
||||
displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = config.services.mediaPC.autoLoginUser;
|
||||
};
|
||||
};
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
# package = pkgs.firefox.override { nativeMessagingHosts = [ pkgs.gnome-browser-connector ]; };
|
||||
};
|
||||
|
||||
# From https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
||||
systemd.services."getty@tty1".enable = false;
|
||||
systemd.services."autovt@tty1".enable = false;
|
||||
};
|
||||
}
|
||||
|
|
9
roles/minio.nix
Normal file
9
roles/minio.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.minio = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ minio-client ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user