about summary refs log tree commit diff
path: root/modules/user/aszlig
Commit message (Collapse)AuthorAgeFilesLines
* profiles/base: Add termdown to systemPackagesaszlig2024-06-191-0/+1
| | | | | | | | | | | | | | I used to use coreutils "sleep" for simple countdown timers and given that I get an urgency hint whenever a command completes, this made a pretty good stopwatch. However, with "sleep" it's a little bit tricky (eg. via procfs) to find out the elapsed time, which is something I occasionally need. Termdown does that and also displays the countdown in a more fancy way via Figlet, so it's exactly what I want for this purpose. Signed-off-by: aszlig <aszlig@nix.build>
* profile: Fix renamed optionsaszlig2024-05-232-31/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is just to get the noise down during evaluation and fixes the following warnings: The option `services.xserver.xkbVariant' defined in `.../modules/user/aszlig/profiles/base.nix' has been renamed to `services.xserver.xkb.variant'. The option `services.xserver.layout' defined in `.../modules/user/aszlig/profiles/base.nix' has been renamed to `services.xserver.xkb.layout'. The option `services.xserver.displayManager.defaultSession' defined in `.../modules/user/aszlig/profiles/workstation' has been renamed to `services.displayManager.defaultSession'. The option `services.xserver.displayManager.autoLogin' defined in `.../modules/user/aszlig/profiles/workstation' has been renamed to `services.displayManager.autoLogin'. The option `fonts.fonts' defined in `.../modules/user/aszlig/profiles/workstation' has been renamed to `fonts.packages'. Signed-off-by: aszlig <aszlig@nix.build>
* profile: Use nixVersions.latest by defaultaszlig2024-05-231-1/+1
| | | | | | | | | | | | | | Another eval error to fix: error: nixVersions.unstable has been removed. For bleeding edge (Nix master, roughly weekly updated) use nixVersions.git, otherwise use nixVersions.latest. I do track Git versions, but in this case it's for the base Nix version I want to use on all my machines, so let's stick to the latest release version since we can still use newer versions on an ad-hoc basis. Signed-off-by: aszlig <aszlig@nix.build>
* aszlig/lazy-packages: Replace mpg321 by mpg123aszlig2024-05-231-1/+1
| | | | | | | | | | | I could probably even delete that package since I'm not using it, but to get evaluation fixed, let's just use the suggestion right now from the eval error: error: 'mpg321' has been removed due to it being unmaintained by upstream. Consider using mpg123 instead. Signed-off-by: aszlig <aszlig@nix.build>
* Remove aXbo stuffaszlig2024-03-252-4/+0
| | | | | | | | I'm no longer using that device and I'm not willing to fix up random Java stuff every time the build breaks for things I don't use, so let's remove it. Signed-off-by: aszlig <aszlig@nix.build>
* profile: Use /run instead of /var/run for shellaszlig2024-02-241-1/+1
| | | | | | | | | | | | | | The /var/run directory no longer is the canonical location for what is now /run and /var/run is also not in /etc/shells, so let's switch to /run instead. From hier(7): /run This directory contains information which describes the system since it was booted. Once this purpose was served by /var/run and programs may continue to use it. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation/git: Don't keep .orig filesaszlig2023-12-161-0/+1
| | | | | | | | | | | While those .orig files might be useful for post-mortem analysis of a rebase or merge, I never actually use them and rather resort to things such as reflog to find the old tree/file. Having those .orig files around just adds unnecessary noise, so let's avoid that. Signed-off-by: aszlig <aszlig@nix.build>
* machines: Remove tyree and brawndoaszlig2023-09-141-110/+0
| | | | | | | | | | | | | The former no longer exists and the latter has a new hardware and it's self-managed by the owner now (which is always the best IMHO). With both machines gone, we no longer need the "managed" profile and the BFQ module that was used for the old hardware of Brawndo was no longer used anywhere else. Same with the T100HA module, since Tyree was an ASUS T100HA and apart from the module being probably very much outdated we don't have another such hardware in Vuizvui. Signed-off-by: aszlig <aszlig@nix.build>
* profiles: Revert "Use Nix stable for nixos-option"aszlig2023-09-141-8/+0
| | | | | | | | | | | | | | | | This reverts commit b9a7b3f0710ed828c9ec7562a6e641810fadd61b. Our override is no longer needed and it actually doesn't build anymore since even current stable Nix (2.17.0) is too new for nixos-option. This is why in nixpkgs, there is a specific override for nixos-option which uses Nix 2.15 instead. For us this essentially means that we can drop the override, since either someone fixes nixos-option to work with newer Nix versions or we get a specific override that doesn't interfere with our (as in Vuizvui) override of the "nix" attribute. Signed-off-by: aszlig <aszlig@nix.build>
* workstation: Remove services.xserver.layoutaszlig2023-08-041-1/+0
| | | | | | | | | | | This is already defined in the base profile, so we really don't need to define it twice, espacially because since ee758fdcdbbcae14d7a50d1809c1b2 both definitions are conflicting. I actually had this removed locally but forgot to stage this for the aforementioned commit. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Fix XKB Dvorak keyboard layoutaszlig2023-08-021-1/+2
| | | | | | | | | | | | The right XKB configuration should be using "us" as its layout and "dvorak" as the variant, because there are other such variants such as "it", "fr" or "de" and just using "dvorak" as the layout has very long been an alias that now has been removed[1] in the latest version of xkeyboard-config. [1]: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/commit/470ad2cd8fea84d7210377161d86b31999bb5ea6 Signed-off-by: aszlig <aszlig@nix.build>
* workstation: Don't wait for all NICs to be onlineaszlig2023-07-151-0/+4
| | | | | | | | I occasionally run wireguard setups, sometimes broken beyond repair, and I really don't care whether those are online or not as long as *any* interface is alive. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Use Nix stable for nixos-optionaszlig2023-07-141-0/+8
| | | | | | | | | Right now, nixos-option fails to build with latest nixUnstable and since I currently don't have a lot of time to properly fix it and also don't care a whole lot about nixos-option, I decided to override it using the normal Nix stable package. Signed-off-by: aszlig <aszlig@nix.build>
* packages: Replace youtube-dl with yt-dlpaszlig2023-06-021-1/+1
| | | | | | | | | | I had yt-dlp in my local Nix profile since quite a while and didn't use youtube-dl at all since months. It's been so long that I actually forget about that, thinking I already did this very change already. Turns out, that I didn't, hence this commit. Signed-off-by: aszlig <aszlig@nix.build>
* treewide: address rename of boot.cleanTmpDir optionsternenseemann2023-05-142-2/+2
| | | | cc @Profpatsch @aszlig
* slylandro: Remove hidpi specific settings for nowaszlig2023-04-093-8/+2
| | | | | | | | | | | | | | | | | This reverts commit c88fd9eaa12c8a3c06502b09c2056d3c91421952. The hardware.video.hidpi.enable option was removed a while ago[1] because it's not clear what a single boolean option should mean, so it doesn't make sense anymore to make any of our options depend on it. Forthermore, I'm experimenting with different Wayland compositors at the moment and most of the stuff that I did here is for Xorg. I expect most of the stuff to be gone when I'm settled with a Wayland setup that works for me. [1]: https://github.com/NixOS/nixpkgs/pull/222689 Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Fix deprecated option definitionsaszlig2023-03-151-4/+7
| | | | | | | | | | | | | | | | | | | | Essentially gets rid of these warnings: * The option `services.openssh.permitRootLogin' defined in `...' has been renamed to `services.openssh.settings.PermitRootLogin'. * The option `services.openssh.passwordAuthentication' defined in `...' has been renamed to `services.openssh.settings.PasswordAuthentication'. * The option `services.openssh.kbdInteractiveAuthentication' defined in `...' has been renamed to `services.openssh.settings.KbdInteractiveAuthentication'. * The option `nix.readOnlyStore' defined in `...' has been renamed to `boot.readOnlyNixStore'. Evaluation leads to the same derivation path as before, so apart from shutting up warnings this should not change any functionality. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Explicitly set locale categoriesaszlig2023-01-201-0/+12
| | | | | | | | | | | | | | | The default locale is en_US.UTF-8, but this also comes with a 12 hour clock and a few other nuisances such as imperial units. So while I do prefer a German locale I don't want things to be in the German *language*, so setting something like de_DE.UTF-8 for LC_TIME doesn't fly very well, since it could result in something like "Freitag, 20. Januar". To cope with this, I used the C locale to make sure that we get a 24h clock and english week/month names. Similarily I do not want floats to be formatted with a comma. Signed-off-by: aszlig <aszlig@nix.build>
* workstation/packages: Remove Python 2 stuffaszlig2023-01-171-4/+3
| | | | | | | | | | | | All the packages (hetzner, pep8 and polib) have Python 3 support but I've used the Python 2 versions of them. Since Python 2 is failing evaluation because it's marked as insecure, let's switch to the Python 3 versions. I also removed the the Python 2 interpreter, especially since I haven't been using it for quite a while. Signed-off-by: aszlig <aszlig@nix.build>
* i3: Really add global fullscreen toggleaszlig2022-11-201-2/+2
| | | | | | | | | My mind must have been in a weird state when I wrote 20bfcfe5dd3a5203cb58f489bc01ddd0729dea3e, because I just added yet another keybinding for the same *normal* fullscreen toggling key instead of actually using the "fullscreen toggle global". Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Revert fix for i3 config validationaszlig2022-11-141-12/+2
| | | | | | | | | This reverts commit 7aa89c91f34c0acf4fe6dc62cf6387a12698853f. The change in question is part of release 4.21.1 and thus we no longer need to keep the patch around. Signed-off-by: aszlig <aszlig@nix.build>
* i3: Add keybinding for fullscreen across all headsaszlig2022-11-011-0/+3
| | | | | | | While I don't use it very often, it's sometimes quite useful for example for watching movies across both monitors. Signed-off-by: aszlig <aszlig@nix.build>
* workstation: Switch to Nix-managed Firefoxaszlig2022-10-271-1/+1
| | | | | | | | | | | | | | I had this laying around locally for a year now and I'm still not really happy with some things, for example not having yet full source builds of the extensions and a few config options not yet managed by Nix (eg. search engines). However, since Firefox takes a while to build it's a bit tedious to always do it directly (and locally) after I update my machines. Having this part of my workstation profile should make sure that my version of Firefox is available at all times. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation/git: Sort branches by dateaszlig2022-10-091-0/+1
| | | | | | | | When you have a lot of branches it's sometimes tedious to find out the ones you've been working on recently. Sorting the branches by committer date by default should make it more obvious. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Add fix for i3 config validationaszlig2022-10-061-2/+12
| | | | | | | | | | | | | Quoting from https://github.com/i3/i3/pull/5173: A bug was introduced in https://github.com/i3/i3/pull/5118 in which configs with bar blocks will segfault during validation. They were copying the i3 font which is not set during validation. This PR simply checks that the load_type is not validated before copying the font. This fixes the Hydra build for the i3 configuration on my machines. Signed-off-by: aszlig <aszlig@nix.build>
* Fix attribute name for iproute2aszlig2022-09-261-1/+1
| | | | | | | | | | | The attribute has been renamed[1] to iproute2 a while ago and recently the alias was converted to a throw[2], so let's do the rename on our side as well. [1]: https://github.com/NixOS/nixpkgs/commit/20a9caf0a474e182909ac850fa6 [2]: https://github.com/NixOS/nixpkgs/commit/d06207386df9a53fe01f8a30130 Signed-off-by: aszlig <aszlig@nix.build>
* Fix attribute name for man-pages-posixaszlig2022-09-261-1/+1
| | | | | | | | | | | | The posix_man_pages attribute has been renamed in nixpkgs[1] to man-pages-posix to more closely match the upstream name. This now[2] results in an evaluation error. [1]: https://github.com/NixOS/nixpkgs/commit/4461230cc5e11952407f8ddd205 [2]: https://github.com/NixOS/nixpkgs/commit/d06207386df9a53fe01f8a30130 Signed-off-by: aszlig <aszlig@nix.build> Cc: @devhell
* radare2: Add patch to default to AT&T ASM syntaxaszlig2022-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some personal history on this: I started to get used to AT&T syntax because it's the default in GDB and used that ever since until I one day starting to do some more reverse engineering using radare, which defaults to Intel syntax. Ever since then probably my most used command in GDB was "set disassembly-flavor intel" (because I was to lazy to add it to the config) because I constantly got confused by the source/destination operand swaps. This even happened during live reverse engineering at rC3 where I was confused about some function logic only to find out that I was viewing in AT&T syntax. Fast-forward to today: I'm debugging some application using WINE and winedbg uses AT&T syntax, which I didn't like at first. After reflecting on this for a while, I thought it would probably be better to get used to AT&T syntax again and switch everything to use AT&T for the following reasons: * Operands are more natural to read, since most libraries/APIs in higher level languages do it like this (well, except memcpy, strcpy, etc... maybe I now get confused by libc functions...) * AT&T syntax feels less verbose, for example "mov ecx, dword [eax]" is just "movl (%eax), %ecx" This very commit makes sure that radare2 now defaults to AT&T syntax instead of eg. ensuring that GDB uses Intel syntax by default. Signed-off-by: aszlig <aszlig@nix.build>
* workstation/packages: Add zbar to system packagesaszlig2022-09-111-0/+1
| | | | | | | | | | | Just had to scan the credentials for a Wi-Fi access point and they were only available via QR code, but was unable to make it available via Nix shell because I had (for obvious reasons) no access to the Internet. Adding zbar to all my machines will ensure that something like this won't happen again. Signed-off-by: aszlig <aszlig@nix.build>
* workstation: Use oldschool font pack from nixpkgsaszlig2022-09-051-11/+1
| | | | | | | | | Back then when I added the font pack in 0171f8d895efd46300ba01c6adeb7aa, version 2.0 was not yet merged to nixpkgs. This has happened in the meantime and the current version is version 2.2 and I also do not see any reason to keep the 2.0 version in Vuizvui. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation: Use autoLogin on LUKSaszlig2022-09-051-19/+28
| | | | | | | | | | | | | | | | | After countless boots with unlocking my LUKS containers and thereafter logging in via lightdm I started to wonder whether it really makes sense to do the latter. All of my workstations are single-user, I usually don't switch my session type (and even if, then via system configuration) and if someone manages to unlock my LUKS containers, it's really trivial to circumvent the user authentication. So if I'm not forgetting about something big[TM], the only purpose this additional auth serves is me being annoyed for no reason, so let's disable it if the configuration indicates that LUKS is used. Signed-off-by: aszlig <aszlig@nix.build>
* Use a font point size of 10 on hidpiaszlig2022-09-053-2/+7
| | | | | | | | | With my new laptop, a font size of 12pt is rather large and given that hidpi displays usually have a quite large resolution (the name might hint at that), we don't necessarily need to use embedded bitmaps anymore which was one of the reasons why I used a point size of 12. Signed-off-by: aszlig <aszlig@nix.build>
* machines + modules: Fix Nix option definitionsaszlig2022-08-152-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* profiles/workstation: Add perf to systemPackagesaszlig2022-08-151-5/+8
| | | | | | | | I use perf on a regular basis and since it's dependant on the currently running kernel version, it' just makes sense to have it available at all times rather than "nix run" it with the right kernel version. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/managed: Remove TLPaszlig2022-08-151-2/+0
| | | | | | | | | | | | | | Right now we're getting an eval error like this: Failed assertions: - You have set services.power-profiles-daemon.enable = true; which conflicts with services.tlp.enable = true; Since the machines in question are for desktop environment users, TLP doesn't make a lot of sense. Besides, the option should not be defined in managed.nix anyway, because it's a hardware-specific option. Signed-off-by: aszlig <aszlig@nix.build>
* packages: Replace jwhois by whoisaszlig2022-08-151-1/+1
| | | | | | | | | | | | | | | | The upstream project seems to be no longer maintained[1] and the last release from 2005 contains a whole bunch of outdated NIC information so that it became pretty annoying to use. Back then jwhois was the only whois client packaged in nixpkgs, so this might be the reason why it ended up in my setup in the first place. The "whois" package on the other hand seems to be actively maintained and works well for the domains I care about. [1]: https://github.com/jonasob/jwhois/issues/32 Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Use XKB config for console keymapaszlig2022-08-031-1/+2
| | | | | | | | | | | | This is mainly for having a consistent and central way to define our keybord config. The main reason for doing so is because of Slylandro, which comes with a keyboard that has a caps lock key atop the left shift key and it drives me mad. Since I'd like to keep things DRY, let's just use XKB for everything keymap-related. Signed-off-by: aszlig <aszlig@nix.build>
* programs/git: Fix path for sysdir.caszlig2022-08-021-1/+1
| | | | | | | | Since libgit2 version 1.5.0, sysdir.c is in a subdirectory called "libgit2", which was made to distinguish the sources from the ones in the CLI tool and util. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Fix deprecated SSH config optionaszlig2022-05-141-3/+3
| | | | | | | | | | | | | | | | | | This gets rid of the following warning: trace: warning: The option `services.openssh.challengeResponseAuthentication' defined in `.../modules/user/aszlig/profiles/base.nix' has been renamed to `services.openssh.kbdInteractiveAuthentication'. The option actually didn't make sense in the first place because it was an alias leftover from SSH 1. I also changed the priority for the OpenSSH options from 1000 to 500 to avoid any future conflicts should the upstream module use mkDefault one day. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation: Allow unraw via sysrqaszlig2022-05-141-0/+3
| | | | | | | | | | I just was forced to reboot my workstation while working on a program that sets the VT into raw mode but finding out that the unraw key now doesn't work anymore. This used to be the case but with the sysctl include that comes with systemd-coredump, the kernel.sysrq value defaults to only allowing sync (16). Signed-off-by: aszlig <aszlig@nix.build>
* modules/zsh: Really fix evaluation this timeaszlig2022-03-241-3/+1
| | | | | | | Gosh, today my brain really doesn't work very well it seems, because I actually forgot to add the first hunk via "git add -p". Signed-off-by: aszlig <aszlig@nix.build>
* modules/zsh: Fix evaluation error and clean upaszlig2022-03-241-8/+8
| | | | | | | | | | | | | | Regression introduced by 25a077f90a0005b519db071a6b5b4d20bd6d2d45. I usually let Vim perform a syntax check on the Nix file I'm editing, which usually displays errors. However, given that the zsh module is one of my older modules where I did a big "with lib;" over the whole scope, a nix-instantiate --parse didn't find the missing pkgs argument. So apart from just fixing the error, I removed the "with lib;" and also moved from the old lib.overrideDerivation to package.overrideAttrs. Signed-off-by: aszlig <aszlig@nix.build>
* programs/zsh: Add syntax highlightingaszlig2022-03-241-1/+46
| | | | | | | | | | | | | I'm already using zsh-fast-syntax-highlighting since weeks via the configuration.nix and I actually forgot why I used this implementation rather than one of the others out there. However, since I'm also using Nushell[1] on a regular basis, I got quite used to syntax highlighting so that's why I added it to zsh as well. [1]: https://www.nushell.sh/ Signed-off-by: aszlig <aszlig@nix.build>
* workstation/redshift: Lower nightly brightnessaszlig2022-03-241-0/+1
| | | | | | | I've been testing 0.5 for weeks now and already got sufficiently used to it so that I'd become blind if it would be the default value (1.0). Signed-off-by: aszlig <aszlig@nix.build>
* aszlig/managed: skype -> skypeforlinuxdevhell2022-03-021-1/+1
|
* aszlig/workstation: youtubeDL -> youtube-dldevhell2022-03-021-1/+1
|
* {aszlig,devhell}/profiles: Rename more packagesdevhell2022-03-021-1/+1
| | | | Even more packages are being renamed.
* treewide: Rename packagesdevhell2022-03-021-1/+1
| | | | More packages have been renamed recently.
* treewide: Fix broken package symbolsProfpatsch2022-03-022-2/+2
| | | | | | | | Due to unnecessary renames in https://github.com/NixOS/nixpkgs/pull/161146 I replaced the packages with the ones the error messages mentioned, I have not checked whether they are actually a no-op replacement.
* treewide: reflect removal of pulseaudioLight aliassternenseemann2022-02-281-1/+1
| | | | | pulseaudioLight has been the same as pulseaudio for a while (apparently since 2018). The alias has finally been removed now.