This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

RIP xerxes

-166
-83
machines/xerxes/config.nix
··· 1 - { 2 - config, 3 - lib, 4 - pkgs, 5 - ... 6 - }: 7 - 8 - { 9 - imports = [ 10 - ../../2configs/retiolum.nix 11 - ../../2configs/exim-retiolum.nix 12 - ../../2configs/baseX.nix 13 - ../../2configs/pipewire.nix 14 - ../../2configs/browsers.nix 15 - ../../2configs/programs.nix 16 - ../../2configs/network-manager.nix 17 - ../../2configs/syncthing.nix 18 - ../../2configs/sync/sync.nix 19 - ../../2configs/steam.nix 20 - ../../2configs/wine.nix 21 - ../../2configs/fetchWallpaper.nix 22 - ../../2configs/pass.nix 23 - ../../2configs/mail.nix 24 - ]; 25 - 26 - krebs.build.host = config.krebs.hosts.xerxes; 27 - 28 - environment.shellAliases = { 29 - deploy = pkgs.writeDash "deploy" '' 30 - set -eu 31 - export SYSTEM="$1" 32 - $(nix-build $HOME/sync/stockholm/lass/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy) 33 - ''; 34 - usb-tether-on = pkgs.writeDash "usb-tether-on" '' 35 - adb shell su -c service call connectivity 33 i32 1 s16 text 36 - ''; 37 - usb-tether-off = pkgs.writeDash "usb-tether-off" '' 38 - adb shell su -c service call connectivity 33 i32 0 s16 text 39 - ''; 40 - }; 41 - 42 - services.xserver = { 43 - displayManager.lightdm.autoLogin.enable = true; 44 - displayManager.lightdm.autoLogin.user = "lass"; 45 - }; 46 - 47 - boot.blacklistedKernelModules = [ "xpad" ]; 48 - systemd.services.xboxdrv = { 49 - wantedBy = [ "multi-user.target" ]; 50 - script = '' 51 - ${ 52 - pkgs.xboxdrv.overrideAttrs (o: { 53 - patches = o.patches ++ [ 54 - (pkgs.fetchurl { 55 - url = "https://patch-diff.githubusercontent.com/raw/xboxdrv/xboxdrv/pull/251.patch"; 56 - sha256 = "17784y20mxqrlhgvwvszh8lprxrvgmb7ah9dknmbhj5jhkjl8wq5"; 57 - }) 58 - ]; 59 - }) 60 - }/bin/xboxdrv --type xbox360 --dbus disabled -D 61 - ''; 62 - }; 63 - 64 - programs.adb.enable = true; 65 - 66 - services.logind.lidSwitch = "suspend"; 67 - lass.screenlock.enable = lib.mkForce false; 68 - 69 - hardware.bluetooth = { 70 - enable = true; 71 - powerOnBoot = true; 72 - }; 73 - hardware.pulseaudio.package = pkgs.pulseaudioFull; 74 - # hardware.pulseaudio.configFile = pkgs.writeText "default.pa" '' 75 - # load-module module-bluetooth-policy 76 - # load-module module-bluetooth-discover 77 - # ## module fails to load with 78 - # ## module-bluez5-device.c: Failed to get device path from module arguments 79 - # ## module.c: Failed to load module "module-bluez5-device" (argument: ""): initialization failed. 80 - # # load-module module-bluez5-device 81 - # # load-module module-bluez5-discover 82 - # ''; 83 - }
-83
machines/xerxes/physical.nix
··· 1 - { 2 - modulesPath, 3 - pkgs, 4 - lib, 5 - ... 6 - }: 7 - { 8 - imports = [ 9 - ./config.nix 10 - (modulesPath + "/installer/scan/not-detected.nix") 11 - ]; 12 - 13 - boot.loader.grub = { 14 - enable = true; 15 - device = "/dev/sda"; 16 - efiSupport = true; 17 - efiInstallAsRemovable = true; 18 - }; 19 - 20 - boot.blacklistedKernelModules = [ 21 - "sdhci_pci" 22 - ]; 23 - 24 - boot.initrd.availableKernelModules = [ 25 - "xhci_pci" 26 - "ahci" 27 - "usbhid" 28 - "sd_mod" 29 - ]; 30 - boot.initrd.luks.devices.crypted.device = "/dev/sda3"; 31 - boot.kernelModules = [ "kvm-intel" ]; 32 - boot.kernelParams = [ 33 - "fbcon=rotate:1" 34 - "boot.shell_on_fail" 35 - ]; 36 - 37 - fileSystems."/" = { 38 - device = "/dev/disk/by-uuid/8efd0c22-f712-46bf-baad-1fbf19d9ec25"; 39 - fsType = "xfs"; 40 - }; 41 - 42 - fileSystems."/boot" = { 43 - device = "/dev/disk/by-uuid/7F23-DDB4"; 44 - fsType = "vfat"; 45 - }; 46 - 47 - swapDevices = [ ]; 48 - 49 - boot.extraModprobeConfig = '' 50 - options zfs zfs_arc_max=107374182 51 - ''; 52 - 53 - nix.maxJobs = lib.mkDefault 4; 54 - 55 - networking.hostId = "9b0a74ac"; 56 - networking.networkmanager.enable = true; 57 - 58 - hardware.opengl.enable = true; 59 - 60 - services.tlp.enable = true; 61 - services.tlp.extraConfig = '' 62 - CPU_SCALING_GOVERNOR_ON_AC=ondemand 63 - CPU_SCALING_GOVERNOR_ON_BAT=powersave 64 - CPU_MIN_PERF_ON_AC=0 65 - CPU_MAX_PERF_ON_AC=100 66 - CPU_MIN_PERF_ON_BAT=0 67 - CPU_MAX_PERF_ON_BAT=30 68 - ''; 69 - 70 - services.logind.extraConfig = '' 71 - HandlePowerKey=suspend 72 - IdleAction=suspend 73 - IdleActionSec=300 74 - ''; 75 - 76 - services.xserver = { 77 - videoDrivers = [ "intel" ]; 78 - displayManager.sessionCommands = '' 79 - (sleep 2 && ${pkgs.xorg.xrandr}/bin/xrandr --output eDP1 --rotate right) 80 - (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) 81 - ''; 82 - }; 83 - }