diff options
author | lassulus <git@lassul.us> | 2023-09-07 12:26:31 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-09-07 13:50:26 +0200 |
commit | f55307fd73af235069744dd5155fda0bc73fe613 (patch) | |
tree | f048d7750a50e48493505a08784c96d07d291f89 /lass/1systems/xerxes | |
parent | 85ae348bf3f53125c8281669a32bf007dc0063be (diff) |
lass: migrate away
Diffstat (limited to 'lass/1systems/xerxes')
-rw-r--r-- | lass/1systems/xerxes/config.nix | 76 | ||||
-rw-r--r-- | lass/1systems/xerxes/physical.nix | 73 |
2 files changed, 0 insertions, 149 deletions
diff --git a/lass/1systems/xerxes/config.nix b/lass/1systems/xerxes/config.nix deleted file mode 100644 index d1ee4cf71..000000000 --- a/lass/1systems/xerxes/config.nix +++ /dev/null @@ -1,76 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - imports = [ - <stockholm/lass> - - <stockholm/lass/2configs/retiolum.nix> - <stockholm/lass/2configs/exim-retiolum.nix> - <stockholm/lass/2configs/baseX.nix> - <stockholm/lass/2configs/pipewire.nix> - <stockholm/lass/2configs/browsers.nix> - <stockholm/lass/2configs/programs.nix> - <stockholm/lass/2configs/network-manager.nix> - <stockholm/lass/2configs/syncthing.nix> - <stockholm/lass/2configs/sync/sync.nix> - <stockholm/lass/2configs/steam.nix> - <stockholm/lass/2configs/wine.nix> - <stockholm/lass/2configs/fetchWallpaper.nix> - <stockholm/lass/2configs/pass.nix> - <stockholm/lass/2configs/mail.nix> - ]; - - krebs.build.host = config.krebs.hosts.xerxes; - - environment.shellAliases = { - deploy = pkgs.writeDash "deploy" '' - set -eu - export SYSTEM="$1" - $(nix-build $HOME/sync/stockholm/lass/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy) - ''; - usb-tether-on = pkgs.writeDash "usb-tether-on" '' - adb shell su -c service call connectivity 33 i32 1 s16 text - ''; - usb-tether-off = pkgs.writeDash "usb-tether-off" '' - adb shell su -c service call connectivity 33 i32 0 s16 text - ''; - }; - - services.xserver = { - displayManager.lightdm.autoLogin.enable = true; - displayManager.lightdm.autoLogin.user = "lass"; - }; - - boot.blacklistedKernelModules = [ "xpad" ]; - systemd.services.xboxdrv = { - wantedBy = [ "multi-user.target" ]; - script = '' - ${pkgs.xboxdrv.overrideAttrs(o: { - patches = o.patches ++ [ (pkgs.fetchurl { - url = "https://patch-diff.githubusercontent.com/raw/xboxdrv/xboxdrv/pull/251.patch"; - sha256 = "17784y20mxqrlhgvwvszh8lprxrvgmb7ah9dknmbhj5jhkjl8wq5"; - }) ]; - })}/bin/xboxdrv --type xbox360 --dbus disabled -D - ''; - }; - - programs.adb.enable = true; - - services.logind.lidSwitch = "suspend"; - lass.screenlock.enable = lib.mkForce false; - - hardware.bluetooth = { - enable = true; - powerOnBoot = true; - }; - hardware.pulseaudio.package = pkgs.pulseaudioFull; - # hardware.pulseaudio.configFile = pkgs.writeText "default.pa" '' - # load-module module-bluetooth-policy - # load-module module-bluetooth-discover - # ## module fails to load with - # ## module-bluez5-device.c: Failed to get device path from module arguments - # ## module.c: Failed to load module "module-bluez5-device" (argument: ""): initialization failed. - # # load-module module-bluez5-device - # # load-module module-bluez5-discover - # ''; -} diff --git a/lass/1systems/xerxes/physical.nix b/lass/1systems/xerxes/physical.nix deleted file mode 100644 index 5a6f07215..000000000 --- a/lass/1systems/xerxes/physical.nix +++ /dev/null @@ -1,73 +0,0 @@ -{ pkgs, lib, ... }: -{ - imports = [ - ./config.nix - <nixpkgs/nixos/modules/installer/scan/not-detected.nix> - ]; - - boot.loader.grub = { - enable = true; - device = "/dev/sda"; - efiSupport = true; - efiInstallAsRemovable = true; - }; - - boot.blacklistedKernelModules = [ - "sdhci_pci" - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; - boot.initrd.luks.devices.crypted.device = "/dev/sda3"; - boot.kernelModules = [ "kvm-intel" ]; - boot.kernelParams = [ - "fbcon=rotate:1" - "boot.shell_on_fail" - ]; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/8efd0c22-f712-46bf-baad-1fbf19d9ec25"; - fsType = "xfs"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/7F23-DDB4"; - fsType = "vfat"; - }; - - swapDevices = [ ]; - - boot.extraModprobeConfig = '' - options zfs zfs_arc_max=107374182 - ''; - - nix.maxJobs = lib.mkDefault 4; - - networking.hostId = "9b0a74ac"; - networking.networkmanager.enable = true; - - hardware.opengl.enable = true; - - services.tlp.enable = true; - services.tlp.extraConfig = '' - CPU_SCALING_GOVERNOR_ON_AC=ondemand - CPU_SCALING_GOVERNOR_ON_BAT=powersave - CPU_MIN_PERF_ON_AC=0 - CPU_MAX_PERF_ON_AC=100 - CPU_MIN_PERF_ON_BAT=0 - CPU_MAX_PERF_ON_BAT=30 - ''; - - services.logind.extraConfig = '' - HandlePowerKey=suspend - IdleAction=suspend - IdleActionSec=300 - ''; - - services.xserver = { - videoDrivers = [ "intel" ]; - displayManager.sessionCommands = '' - (sleep 2 && ${pkgs.xorg.xrandr}/bin/xrandr --output eDP1 --rotate right) - (sleep 2 && ${pkgs.xorg.xinput}/bin/xinput set-prop "pointer:Goodix Capacitive TouchScreen" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1) - ''; - }; -} |