Nix-Vibe public snapshot (squashed history)

This commit is contained in:
2026-09-19 13:56:12 +01:00
commit aee8fb1e9b
119 changed files with 18895 additions and 0 deletions
+79
View File
@@ -0,0 +1,79 @@
# /hosts/mcf-stream/configuration.nix
{ config
, pkgs
, inputs
, lib
, ...
}:
{
imports = [
./hardware-configuration.nix
../../modules/core/common.nix
../../modules/desktop/gui.nix
(import ../../modules/storage/disko.nix {
inherit inputs lib config;
diskoConfigPath = ./disko-config.nix;
})
../../modules/desktop/gnome.nix
../../modules/core/management.nix
../../modules/hardware/nvidia.nix
../../modules/desktop/apps/obs.nix
../../modules/desktop/apps/dvd.nix
../../modules/desktop/apps/carla.nix
];
sops.secrets = {
"users/petere-password" = {
neededForUsers = true;
};
"users/guest-password" = {
neededForUsers = true;
};
};
# Auto-login as guest for this shared/streaming desktop
services.displayManager.autoLogin = {
enable = true;
user = "guest";
};
home-manager.users.petere.imports = [
../../home-manager/modules/desktop-user.nix
];
home-manager.users.guest.imports = [
../../home-manager/modules/gnome-extensions.nix
];
networking.hostName = "mcf-stream";
my.hardware.nvidia = {
enable = true;
nvidiaSettings = true;
# GTX 1050 Ti (Pascal) needs the 580.xx legacy driver branch
package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
};
my.users.petere = {
description = "Peter Edley";
hashedPasswordFile = config.sops.secrets."users/petere-password".path;
};
users.users.guest = {
isNormalUser = true;
description = "Guest";
hashedPasswordFile = config.sops.secrets."users/guest-password".path;
extraGroups = [
"networkmanager"
"video"
"audio"
];
};
# ffmpeg with NVENC encoders (h264/hevc/av1_nvenc) for GPU-accelerated
# encoding on the NVIDIA GPU
environment.systemPackages = with pkgs; [
ffmpeg
];
}
+43
View File
@@ -0,0 +1,43 @@
# /hosts/mcf-stream/disko-config.nix
# This file will contain your disko configuration for mcf-stream.
{
disk = {
nixos = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
swap = {
size = "20G";
type = "8200";
content = {
type = "swap";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
}
@@ -0,0 +1,35 @@
# Hardware configuration for mcf-stream
# Generated for a single NVMe drive (/dev/nvme0n1)
{ config
, lib
, pkgs
, modulesPath
, ...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# fileSystems are managed by Disko — update disko-config.nix for disk layout
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}