toggle physics

This commit is contained in:
martyTF 2025-12-18 11:47:21 +01:00
parent 44a2f3ee01
commit e13ad6a8ee
13 changed files with 79 additions and 112 deletions

70
hosts/marty-latitude.nix Normal file
View file

@ -0,0 +1,70 @@
{
config,
lib,
pkgs,
modulesPath,
home-manager,
inputs,
...
}:
{
networking = {
hostName = "marty-latitude";
};
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users = {
marty = import ./../modules/home.nix;
};
};
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/867e1bdf-87c8-4f74-9a9e-c2d897644518";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D9F7-437B";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/8dff6670-2f63-44e3-a2e5-1966ebbd4fbf"; }
];
# 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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

74
hosts/marty-pc.nix Normal file
View file

@ -0,0 +1,74 @@
{
config,
lib,
pkgs,
modulesPath,
home-manager,
inputs,
...
}:
{
networking = {
hostName = "marty-pc";
interfaces = {
enp42s0 = {
wakeOnLan = {
enable = true;
policy = [ "magic" ];
};
};
};
};
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users = {
marty = import ./../modules/home.nix;
};
};
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a26cdc8b-abc9-47cf-ad33-c81e56e56d22";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/C9B2-7254";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
fileSystems = {
"/mnt/SSD" = {
device = "/dev/disk/by-uuid/af5282f0-0e02-4532-902f-97509af70d11";
fsType = "ext4";
};
"/mnt/HDD" = {
device = "/dev/disk/by-uuid/41e7ec41-2e43-4254-9f00-f4be98cddc6e";
fsType = "ext4";
};
};
}

70
hosts/marty-server.nix Normal file
View file

@ -0,0 +1,70 @@
{
config,
lib,
pkgs,
modulesPath,
home-manager,
inputs,
...
}:
{
networking = {
hostName = "marty-server";
interfaces = {
eno1 = {
wakeOnLan = {
enable = true;
policy = [ "magic" ];
};
};
};
};
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users = {
marty = import ./../modules/home.nix;
};
};
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a804bdf0-194c-4fe4-a451-64620d3d293d";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/44A5-B01F";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
fileSystems = {
"/mnt/Data" = {
device = "/dev/disk/by-uuid/20eaea9c-6924-40c6-a784-cd5018d8fabb";
fsType = "ext4";
};
};
}