add wheatley stuff, and aarch64 emulation on GLaDOS

This commit is contained in:
Lillian Violet 2024-12-02 20:44:03 +01:00
parent 965fbba1eb
commit ef6fd0bafd
7 changed files with 125 additions and 82 deletions

View file

@ -12,11 +12,11 @@
imports = [
inputs.home-manager.nixosModules.home-manager
./armv7l.nix
./hardware-configuration.nix
# Import shared configurations
../../shared
# ../../../disko/wheatley
];
boot.loader.generic-extlinux-compatible.enable = true;
@ -78,20 +78,20 @@
};
networking.wireless.enable = true;
networking.wireless.environmentFile = config.sops.secrets."wireless.env".path;
networking.wireless.networks."KPNAA6306" = {
hidden = true;
auth = ''
key_mgmt=WPA-PSK
password="@PSK_HOME@"
'';
};
# networking.wireless.environmentFile = config.sops.secrets."wireless.env".path;
# networking.wireless.networks."KPNAA6306" = {
# hidden = true;
# auth = ''
# key_mgmt=WPA-PSK
# password="@PSK_HOME@"
# '';
# };
networking.firewall.enable = true;
networking.firewall = {
allowedTCPPorts = [22 80 443 5335 8080];
allowedUDPPorts = [5335];
allowedTCPPorts = [22 80 443 5335 8080 46899 46898];
allowedUDPPorts = [5335 46899 46898];
};
# Set your time zone.
time.timeZone = "Europe/Amsterdam";

View file

@ -1,49 +1,26 @@
# 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.
{
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["usbhid"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
fileSystems = {
# Prior to 19.09, the boot partition was hosted on the smaller first partition
# Starting with 19.09, the /boot folder is on the main bigger partition.
# The following is to be used only with older images. Note such old images should not be considered supported anymore whatsoever, but if you installed back then, this might be needed
# "/boot" = {
# device = "/dev/disk/by-label/FIRMWARE";
# fsType = "vfat";
# };
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
options = ["relatime" "mode=755" "size=75%"];
};
swapDevices = [{device = "/dev/disk/by-uuid/b299ad0d-37a0-43d6-9647-5f717aca7b3";}];
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
# 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.enu1u1.useDHCP = lib.mkDefault true;
# networking.interfaces.ip6tnl0.useDHCP = lib.mkDefault true;
# networking.interfaces.sit0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
fileSystems."/nix" = {
device = "/dev/disk/by-label/NIXOS";
fsType = "btrfs";
options = ["compress=zstd"];
};
nixpkgs.hostPlatform = lib.mkDefault "armv7l-linux";
fileSystems."/swap" = {
device = "/dev/disk/by-label/NIXOS";
fsType = "btrfs";
options = ["noatime" "subvol=swap"];
};
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
swapDevices = [{device = "/swap/swapfile";}];
}