This repository has no description
0

Configure Feed

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

superconfig / machines / xerxes / config.nix
2.4 kB 74 lines
1{ config, lib, pkgs, ... }: 2 3{ 4 imports = [ 5 ../../2configs/retiolum.nix 6 ../../2configs/exim-retiolum.nix 7 ../../2configs/baseX.nix 8 ../../2configs/pipewire.nix 9 ../../2configs/browsers.nix 10 ../../2configs/programs.nix 11 ../../2configs/network-manager.nix 12 ../../2configs/syncthing.nix 13 ../../2configs/sync/sync.nix 14 ../../2configs/steam.nix 15 ../../2configs/wine.nix 16 ../../2configs/fetchWallpaper.nix 17 ../../2configs/pass.nix 18 ../../2configs/mail.nix 19 ]; 20 21 krebs.build.host = config.krebs.hosts.xerxes; 22 23 environment.shellAliases = { 24 deploy = pkgs.writeDash "deploy" '' 25 set -eu 26 export SYSTEM="$1" 27 $(nix-build $HOME/sync/stockholm/lass/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy) 28 ''; 29 usb-tether-on = pkgs.writeDash "usb-tether-on" '' 30 adb shell su -c service call connectivity 33 i32 1 s16 text 31 ''; 32 usb-tether-off = pkgs.writeDash "usb-tether-off" '' 33 adb shell su -c service call connectivity 33 i32 0 s16 text 34 ''; 35 }; 36 37 services.xserver = { 38 displayManager.lightdm.autoLogin.enable = true; 39 displayManager.lightdm.autoLogin.user = "lass"; 40 }; 41 42 boot.blacklistedKernelModules = [ "xpad" ]; 43 systemd.services.xboxdrv = { 44 wantedBy = [ "multi-user.target" ]; 45 script = '' 46 ${pkgs.xboxdrv.overrideAttrs(o: { 47 patches = o.patches ++ [ (pkgs.fetchurl { 48 url = "https://patch-diff.githubusercontent.com/raw/xboxdrv/xboxdrv/pull/251.patch"; 49 sha256 = "17784y20mxqrlhgvwvszh8lprxrvgmb7ah9dknmbhj5jhkjl8wq5"; 50 }) ]; 51 })}/bin/xboxdrv --type xbox360 --dbus disabled -D 52 ''; 53 }; 54 55 programs.adb.enable = true; 56 57 services.logind.lidSwitch = "suspend"; 58 lass.screenlock.enable = lib.mkForce false; 59 60 hardware.bluetooth = { 61 enable = true; 62 powerOnBoot = true; 63 }; 64 hardware.pulseaudio.package = pkgs.pulseaudioFull; 65 # hardware.pulseaudio.configFile = pkgs.writeText "default.pa" '' 66 # load-module module-bluetooth-policy 67 # load-module module-bluetooth-discover 68 # ## module fails to load with 69 # ## module-bluez5-device.c: Failed to get device path from module arguments 70 # ## module.c: Failed to load module "module-bluez5-device" (argument: ""): initialization failed. 71 # # load-module module-bluez5-device 72 # # load-module module-bluez5-discover 73 # ''; 74}