modify structure

This commit is contained in:
Sean Kovacs 2025-12-14 15:35:13 -05:00
commit dc8d6c3db3
Signed by: sckova
GPG key ID: 00F325187C68651A
13 changed files with 40 additions and 42 deletions

78
hardware/alien/default.nix Executable file
View file

@ -0,0 +1,78 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [
"v4l2loopback"
"snd-aloop"
"kvm-intel"
];
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback.out ];
boot.extraModprobeConfig = ''
# exclusive_caps: Skype, Zoom, Teams etc. will only show device when actually streaming
# card_label: Name of virtual camera, how it'll show up in Skype, Zoom, Teams
# https://github.com/umlaeute/v4l2loopback
options v4l2loopback exclusive_caps=1 card_label="Virtual Camera"
'';
fileSystems."/" = {
device = "/dev/disk/by-uuid/d83ec136-df01-4b9e-a523-6d75726fb904";
fsType = "btrfs";
options = [ "subvol=@" ];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/e369d905-a82b-45c5-838a-323169233583";
fsType = "btrfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6444-169A";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/881bdf55-1e43-4bfc-a1bf-3b2f72dbc122";
fsType = "btrfs";
};
swapDevices = [
{ device = "/dev/disk/by-uuid/056af100-9382-4cbd-b3d5-90df7da69585"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}