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 83 lines
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}