about summary refs log tree commit diff
path: root/machines/aszlig/slylandro.nix
Commit message (Collapse)AuthorAgeFilesLines
* slylandro: Switch to PipeWireaszlig2022-09-261-0/+11
| | | | | | | | | I've been testing PipeWire on this machine for quite a while and it works pretty well so far. My goal is to switch all my machines to it, but since Dnyarri currently has a pretty complicated audio setup I decided to not make it the default for the workstation profile yet. Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Switch location provider to geoclue2aszlig2022-09-261-0/+2
| | | | | | | | | I do have location.latitude and location.longitude set in my workstation profile, but since Slylandro is a laptop that frequently changes location it makes sense to automate this in a way that I don't need to manually set the location every time I switch places. Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Add light commandaszlig2022-09-261-0/+2
| | | | | | | | | | | | While I do use redshift to decrease the brightness at night, I also tend to sometimes use the laptop when barely awake. Having a convenient CLI makes it easier to script, eg. "mpv somefile; light -S 0". The reason why I did not add this to my generic workstation profile is because my workstations are usually placed in a way that I need to be awake enough to approach them. Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Add libinput config for touchpadaszlig2022-09-261-0/+6
| | | | | | | | | | | | | | I never got really used to the "buttonareas" click method and while "clickfinger" does have some disadvantages (eg. dragging is much more difficult without drag lock), in most other cases I find the clickfinger method a lot more convenient, since it usually only requires one hand to operate. Since we have clickfinger enabled, I also don't see a point in enabling middle click emulation since three fingers already count for a real middle click. Signed-off-by: aszlig <aszlig@nix.build>
* machines/slylandro: Remove tuxedo-keyboard moduleaszlig2022-09-081-1/+0
| | | | | | | | | This actually consists of several modules which are of poor code quality, none of them however are essential for the TUXEDO Pulse 15 because its keyboard backlight is single color so let's drop them since they just taint the kernel for no reason. Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Add quirk for disabling D3cold on NVMeaszlig2022-08-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | After resume from suspend the NVMe does not wake up again when the device was put into D3cold. This is something that is worked around by TUXEDO Tomte[1] via udev rules. However, I personally don't like this approach and it can lead to race conditions when we're going into suspend before udev is initialised. Interestingly, the device does even go into NPSS via APST, but if changing to D3cold while APST is enabled, the device does not wake up again. Right now I just added a new quirk to disable D3cold during device probe for now, but we could maybe find a better workaround eg. by disabling APST before D3cold and re-enabling it again. Not sure whether this is feasible, but since I have limited time right now I can't dig more into this. [1]: https://github.com/tuxedocomputers/tuxedo-tomte/commit/2c8d71170868a2663705fbea6ac150eecb96e6ce Signed-off-by: aszlig <aszlig@nix.build>
* machines + modules: Fix Nix option definitionsaszlig2022-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the options in nix.conf are now exposed as a submodule with a freeform type and since that change[1] got introduced, we get a bunch of warnings during machine evaluation: trace: warning: The option `nix.useSandbox' defined in `...' has been renamed to `nix.settings.sandbox'. trace: warning: The option `nix.maxJobs' defined in `...' has been renamed to `nix.settings.max-jobs'. trace: warning: The option `nix.buildCores' defined in `...' has been renamed to `nix.settings.cores'. To shut them up, I went through all machines and modules and renamed the remaining options that were not renamed back then when @devhell did some renames in a0297bf921399c3243dcca99626d8697f0735abe. This was done by looking through the output of: $ git grep -A 10 '\<nix\(\.\| *=\)' machines modules After that I tested the contents of the nix.conf of all the machines against the changes this commit introduced via the following command: $ nix-build --no-out-link -E ' with import <nixpkgs/lib>; map (m: m.eval.config.environment.etc."nix/nix.conf".source) (collect (m: m ? eval) (import ./machines)) ' I've sorted the resulting nix.conf files and diffed on that result and the only difference that showed up was the following: allowed-users = * -auto-optimise-store = false auto-optimise-store = true builders-use-substitutes = true cores = 0 This is because the previous way to generate the config was by concatenating strings whereas the new way works on an attribute set, so we get deduplication by design. [1]: https://github.com/NixOS/nixpkgs/pull/139075 Signed-off-by: aszlig <aszlig@nix.build> Cc: @devhell Cc: @Profpatsch Cc: @sternenseemann
* slylandro: Initialise amdgpu module early in bootaszlig2022-08-031-0/+1
| | | | | | | | The amdgpu module is initialised at roughly the same time as the X server, which sometimes leads into race conditions where X won't start because the kernel driver is not yet loaded. Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Enable keyboard backlightaszlig2022-08-031-0/+1
| | | | | | | | This is a custom kernel module for TUXEDO laptops, which allows to control the backlight. I haven't played around with its settings yet, but having the module available helps with that. Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Add linux-firmwareaszlig2022-08-031-0/+1
| | | | | | This is needed for the GPU and the WiFi adapter. Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Disable caps lock keyaszlig2022-08-031-0/+1
| | | | | | | | | | | I'm used to a TypeMatrix keyboard, where caps lock is only a small key on the side instead of being prominently placed atop switch. Slylandro's internal keyboard however has that pesky caps lock key directly atop the left shift key and I'm constantly triggering it by accident. Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Set DPI for Xorgaszlig2022-08-031-0/+2
| | | | | | | | This makes the screen readable again, but might get us into trouble when switching to an external display. Again, similar to enabling bonding in the previous commit, let's find out :-) Signed-off-by: aszlig <aszlig@nix.build>
* slylandro: Use bonding for WiFi/Ethernetaszlig2022-08-031-2/+17
| | | | | | | | | This is mainly because I want to have a seamless transition between both, at least in theory. Whether this will work out to be so smooth when trying it on various networks out there remains to be seen, but let's try it :-) Signed-off-by: aszlig <aszlig@nix.build>
* machines: Re-add slylandro with different hardwareaszlig2022-08-021-0/+56
| | | | | | | | | | | | | | | | | | I've already got a temporary laptop back then where I used the same name and I introduced it in e73fcff03faed773df2500965cb9c4a4fcfbc04d and subsequently removed it in 240378dcec205b78b32c329ff02eb9bea8af2c11. With the new permanent hardware having arrived today, I decided to reuse the name, because it sounds nicer than "tishtushi" (which is my crappy laptop) and I also like the Slylandro Probes[1] a lot in Star Control. The configuration here is pretty much bare-bones as we had before with the temporary hardware and it's essentially a remix between dnyarri and the old config, more to refine later... [1]: https://wiki.uqm.stack.nl/Probe Signed-off-by: aszlig <aszlig@nix.build>
* machines: Remove slylandroaszlig2021-06-241-54/+0
| | | | | | | | | | | | | | | As mentioned in the initial commit (e73fcff03faed773df2500965cb9c4a4fc), the machine was only temporary as a substitute for tishtushi. Since slylandro had a pretty slow dual core CPU and its own quirks, this was never a long-term solution and for the time being my intentions are to work with dnyarri's new hardware until I have a less annoying setup when I'm on the road again. While writing this message, slylandro just died a gruesome death with "cryptsetup erase", followed by "blkdiscard" on the whole drive. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Remove GRUB from base profileaszlig2021-06-021-1/+1
| | | | | | | | | | | After all the goal was to move all hardware specific stuff to the actual machine definition, which includes the boot loader. Since GRUB is enabled by default but with a higher priority value, we now no longer need to mkForce-disable the option for machines using systemd-boot. Signed-off-by: aszlig <aszlig@nix.build>
* machines/dnyarri: Switch to AMD CPU microcodeaszlig2021-06-021-0/+2
| | | | | | | | The new hardware for dnyarri no longer contains an Intel CPU, so apart from switching the microcode updates to AMD I also removed the setting from the base profile because it clearly doesn't belong there. Signed-off-by: aszlig <aszlig@nix.build>
* machines: Add temporary laptop slylandroaszlig2021-03-121-0/+52
Since Tishtushi had a SSD failure and thus became a majoor nuisance to work with, I got a temporary laptop from someone (since I don't know whether they want to be mentioned, I leave out their name for now) in order to be able to be more productive than waiting for several seconds for a 1 KiB text file to be saved. Right now, I'm not sure whether any firmware is needed for the temporary laptop, so this is a hardware configuration just to get started with a proper Hydra channel. Signed-off-by: aszlig <aszlig@nix.build>