Snapshot.

This commit is contained in:
Nolan Darilek 2024-11-22 14:06:59 -06:00
parent a2be2bdcac
commit 7a6a16ca1c
7 changed files with 63 additions and 15 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.iso
result

3
boot-iso.sh Executable file
View 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

View File

@ -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.
#

View File

@ -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" ];

View File

View File

@ -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
View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
services.minio = {
enable = true;
};
environment.systemPackages = with pkgs; [ minio-client ];
}