about summary refs log tree commit diff
path: root/modules/user/aszlig/profiles/workstation/default.nix
Commit message (Collapse)AuthorAgeFilesLines
* profiles/workstation: Set XTerm colours to 256aszlig2020-05-071-0/+1
| | | | | | | | | | | So far I've been fine with just everything using 16 colours, but since I'm even using 256 colours in my own ASCII art spriting engine I think I can safely enter the 90ies and get some more colours. Of course, the XTerm version I'm using is already supporting 256 colors, it's just that the terminfo entry doesn't say so. Signed-off-by: aszlig <aszlig@nix.build>
* treewide: Remove hardware.opengl.s3tcSupportdevhell2020-04-231-1/+0
| | | | | | | This option has been dropped upstream in 4732f59226a21b01d630c7ef4fb884bbfbe7dc83 Cc: @aszlig
* treewide: Switch to displayManager.defaultSessionaszlig2020-02-101-3/+1
| | | | | | | | | | | | | | The option services.xserver.desktopManager.default and services.xserver.windowManager.default are deprecated since quite a while[1], so let's use the displayManager.defaultSession option instead. Additionally, there no longer is any need to explicitly disable the "xterm" desktopManager, so I removed that option as well. [1]: https://github.com/NixOS/nixpkgs/commit/8dc5ff7dcfd1c58c32004ffae25 Signed-off-by: aszlig <aszlig@nix.build> Cc: @devhell
* treewide: Remove all references to SLiMaszlig2019-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following evaluation error: The option `services.xserver.displayManager.slim' can no longer be used since it's been removed. The SLIM project is abandoned and their last release was in 2013. Because of this it poses a security risk to your system. Other issues include it not fully supporting systemd and logind sessions. Please use a different display manager such as LightDM, SDDM, or GDM. You can also use the startx module which uses Xinitrc. Here is the nixpkgs upstream pull request removing SLiM: https://github.com/NixOS/nixpkgs/pull/73251 Since I was using a custom theme for SLiM and actually liked the minimalism, it's probably time to start patching LightDM soon. For now however, I'll stay with a default LightDM configuration and wait until I'm getting annoyed :-) Signed-off-by: aszlig <aszlig@nix.build>
* workstation: Fix latitude/longitude optionsaszlig2019-09-231-2/+3
| | | | | | | | | | | | | The services.redshift.{latitude,longitude} options are deprecated and the replacement for them are the location.{latitude,longitude} options that have been introduced since a while[1]. Both of the new options now use floating point numbers instead of strings, which I changed accordingly (and also rounded them a bit). [1]: https://github.com/NixOS/nixpkgs/commit/c4de0bf49289bc6b1448420dea39d7a5b0f3c374 Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation: Switch from Gajim to Psi 2aszlig2019-06-211-1/+6
| | | | | | | | | | | | | | | | | | | After using Gajim for years now, I got really frustrated by all its warts, which mainly boil down the lack of type safety and its interactions with its plugins. Of course, I could also rip apart the plugin mechanism and Nixify them, but in the end, the issues would still persist without a myriad of tests that I don't have time right now to write. After discovering a while back that Psi development has gained some activity I decided to take a look into it a few weeks ago and while there is certainly always things I don't like about some detail, it's IMO a way better base for my future XMPP client. So goodbye Gajim and hello Psi :-) Signed-off-by: aszlig <aszlig@nix.build>
* modules/vlock: Allow to change the user nameaszlig2019-03-111-0/+1
| | | | | | | | | | | | When writing that module back then in 88a10f1a6e2ea172ff985f64bfcf82e2, I had to work around a systemd limitation (which I need to check whether this is still the case today) and hardcoded the user name for the time being. While it's still quite ugly, there was interest from @Profpatsch, so I decided to add an internal option to change that username. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation: Switch to zswap moduleaszlig2018-07-161-21/+3
| | | | | | | The zswap module is essentially what I had here, so let's just use that instead. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation: Refine zswap configurationaszlig2018-07-141-1/+20
| | | | | | | | | | | | Since kernel 4.18 contains the zstd compression module in the crypto API, it really makes sense to use that instead of the default (lzo) as it seems to have lower CPU usage with higher compression ratios. Another change I've made is to use z3fold for the pooling, so that 3 pages are cramped into one page of the pool. I did also have a look at zsmalloc, but it seems to come with the cost of additional CPU usage. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation: Set dark Gtk themeaszlig2018-07-081-0/+3
| | | | | | | | | Two of the applications I use (gpodder and gajim) use Gtk and the default Adwaita theme is rather blinding me, especially at night. So let's set the GTK_THEME environment variable globally. Signed-off-by: aszlig <aszlig@nix.build>
* profiles/base: Provide sane OpenSSH defaultsaszlig2018-04-211-4/+1
| | | | | | | | | It's been ages since I needed to authenticate to SSHd via a password, so let's actually make sure we only use pubkey auth by default. If we need more than that we can still change the value to something else on a per- machine basis. Signed-off-by: aszlig <aszlig@nix.build>
* Remove my patched version of Gajim everywhereaszlig2018-04-041-1/+0
| | | | | | | | | | | | | | | | | | The config.patch doesn't apply for Gajim 1.0 anymore anyway, so let's throw everything away, including my custom config in order to start with a new abomination. With the new approach, I'm going to patch the configuration defaults *directly* into Gajim, because one of the problems with the old approach was that whenever specifics about a configuration value has changed, I didn't get noticed by a patch failure. So in the end the config I was ending up was a big mess. I'm going to start this with a new unpatched version and someday get to a patched version that I'm staisfied with... hopefully ;-) Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation: Fix attr for sound.enableaszlig2018-03-071-1/+2
| | | | | | | I'm testing every fart that I push to nixpkgs, so why don't I test it here as well? Dammit! Signed-off-by: aszlig <aszlig@nix.build>
* profiles/workstation: Enable ALSA soundaszlig2018-03-071-0/+1
| | | | | | | | Since NixOS/nixpkgs@a43e33d0e48b2284ac3a2222d7f1965cef66f5e2 this is no longer enabled by default so in order to, for example, restore card volumes we need to have this enabled. Signed-off-by: aszlig <aszlig@nix.build>
* taalo-build: Rewrite as wrapper and move to pkgsaszlig2017-11-121-2/+0
| | | | | | | | | | | | | | | | | | | | We no longer use the legacy SSH store protocol for taalo but the new ssh-ng protocol, which makes the implementation of taalo-build a LOT less clunky. It also didn't make sense to have this as a NixOS module when we after all just emit a static store path without any stuff depending on configuration options. The new implementation basically just wraps nix-build and nix-store -r along with the right NIX_REMOTE variable. With Nix 1.2 this can also be done with the new "nix build" command using the --store option, but unfortunately "nix build" doesn't yet have the same functionality as nix-build. Signed-off-by: aszlig <aszlig@nix.build> Cc: @Profpatsch, @bendlas
* modules/aszlig: Change my email addressaszlig2017-10-271-1/+1
| | | | | | | I'm no longer employed by RedMoon Studios, so while I still receive email on this address, it makes more sense to move on to nix.build :-) Signed-off-by: aszlig <aszlig@nix.build>
* Change to new GnuPG keyaszlig2017-10-241-1/+1
| | | | | | | | | | | The previous GnuPG key (4DFD43EC834B6901BDA2BAAC1DE8E48E57DB5436) was subject to the ROCA vulnerability, so I had to revoke it. For details about this vulnerability, please visit: https://crocs.fi.muni.cz/public/papers/rsa_ccs17 Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* madules/programs: Remove xpdf moduleaszlig2017-09-021-1/+0
| | | | | | | | | Since version 4.0 of xpdf, the UI has vastly changed and the configuration setting I'm using in this module no longer is necessary for me. So let's drop the module altogether until I'm getting used to the new xpdf and find new things I don't like :-) Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Rename all occurences of gpg2 to gpgaszlig2017-08-191-1/+1
| | | | | | | | | | | | This is in reaction to upstream commit NixOS/nixpkgs@e34ce9d1c551fb43742aada6bb43ccb1a52e64a1. One of the changes in GnuPG 2.1.23 is that the main binary is now called gpg instead of gpg2. See the full release announcement here: https://lists.gnupg.org/pipermail/gnupg-announce/2017q3/000412.html Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* santander: Update + convert to Chromium extensionaszlig2017-06-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new version of the "TRAVIC-Sign" extension that's used by the Santander bank now relies on native messaging, so it's much much easier for us to sandbox and also easier to integrate. For more information about native messaging see: https://developer.chrome.com/extensions/nativeMessaging So the upstream only contains a Firefox extension, but it doesn't deviate very much (at least since the new non-XUL API) from the Chromium extension API, so we only need to patch the manifest (where we also constrain the sites that the extension is allowed to run) and refer to the Wine wrapper in the native messaging host configuration file. Right now, the Chromium version that we have in <nixpkgs> still refers to /usr/share/chromium/extensions in order to search for system-provided extensions, so we need to fix that as well. In our workstation profiles we now no longer have the santander package in lazyPackages, because it's also no longer a binary. Previously the main reason why I added it to lazyPackages was that the whole santander package had a closure size of several hundred megabytes because of the Wine prefix. The latter now is essentially empty. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules/aszlig: Cope with new xrandrHeads optionsaszlig2017-06-181-5/+6
| | | | | | | | | | | | | | | The way xrandrHeads are addressed has changed with the following upstream merge commit: NixOS/nixpkgs@9dca737d6269759745c9e68ea462446cde4d9be9 Now xrandrHeads are no longer a list of strings but a list of attribute sets, but we new do have even more information about a particular head. So apart from fixing this, we new also set --primary whenever applicable in "xreset". Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Make a few pkgs lazyaszlig2017-02-081-0/+2
| | | | | | | | Most of these packages I don't need for daily work and thus only clutter up the closure paths of those systems, so let's put them into lazyPackages. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Move taalo-build to workstation profileaszlig2016-12-151-0/+2
| | | | | | | I need this on all my machines, so nix-env'ing it on every machine on demand was getting tedious over time. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Remove RXVT-specific optionsaszlig2016-09-121-11/+0
| | | | | | | I didn't use RXVT for years now, so it doesn't make sense to set options for it here. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Switch to pulseaudioFull for most of my machinesaszlig2016-06-261-0/+1
| | | | | | | | The default (light) package doesn't contain all the modules I need from time to time, so having te replace the running pulseaudio daemon with the full one is more of a hassle than worth keeping the light package. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Disable Microsoft fontsaszlig2016-06-071-1/+0
| | | | | | | | | | After disabling allowUnfree a while ago, I also decided that I want my machines to stay clear of proprietary stuff as much as possible. And as I particularly don't use any of the Microsoft corefonts, I don't shed a tear if they're gone :-) Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Fix signingkey Git optionaszlig2016-06-051-1/+1
| | | | | | | | | The right name for it is "signingkey" instead of "signkey" and the reason this has worked for so long was that if there is no signingkey value set, Git falls back to using the users name and email address instead, which is accepted by GnuPG as well. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules: Update my GnuPG public keyaszlig2016-06-051-1/+1
| | | | | | | | | | | Time for a new GnuPG key, this time CCID-only :-) This is the last commit you'll get using my old key (which will soon be revoked as soon as I moved everything over to use the new key), so if you're paranoid be sure to check the fingerprint against the signature of this very commit. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Enable GnuPG scdaemonaszlig2016-06-041-0/+1
| | | | | | This is needed to access things such as the YubiKey 4. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Enable PCSC-Liteaszlig2016-06-041-0/+3
| | | | | | | Needed for various stuff such as YubiKey and card readers I use for online banking. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* workstation/redshift: Don't modify brightnessaszlig2016-05-141-2/+0
| | | | | | | | I found this quite annoying sometimes if the screen is so dark that you can't see anything. Just switching to red is pretty much sufficient I'd say, at least for me. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Use services.redshiftaszlig2016-05-071-1/+10
| | | | | | | | It's a lot more controllable running as a user service rather than having it started with the X session, especially because I occasionally tend to turn it off. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules: Rename gpg-agent to gnupgaszlig2016-04-041-2/+3
| | | | | | | | | We do things such as placing gnupg into environment.systemPackages, so calling this just "programs.gpg-agent" doesn't fit that. Especially if we really want to have a way to specify configuration values in case I'm getting masochistic someday ;-) Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Move to new gpg-agent moduleaszlig2016-04-021-2/+3
| | | | | | | | | The obsolete option services.xserver.startGnuPGAgent is now no longer available and we have our own module now, so let's bite the dust and enable it, especially because I haven't tested it outside of the scope of the VM test. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* aszlig/profiles: Move VirtualBox to dnyarri onlyaszlig2016-03-211-2/+0
| | | | | | | Actually this is the *only* machine where I actually use VirtualBox, on every other machine I'm fine with qemu/KVM. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Use users.users/users.groups instead of extra*aszlig2016-02-151-5/+2
| | | | | | | It has been renamed since months (NixOS/nixpkgs@14321ae) and users.extra* are now just aliases to users.users and users.groups. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Add my PlayStation 2 gamepadaszlig2016-01-261-0/+26
| | | | | | | This one is a PlayStation 2 gamepad connected via USB using some GreenAsia adapter. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules: Add my own custom xpdf configurationaszlig2016-01-141-0/+1
| | | | | | | | | It's only a very handy keybinding for toggling the outline, because it sometimes gets very annoying if you don't want to go full screen but still don't want that outline eating up space (and no, I don't want to reach for the mouse). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Add more printing driversaszlig2016-01-141-0/+1
| | | | | | | For example at the place where I am right now, I need hplip to access the printer. Also, it won't hurt to include gutenprint as well. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Reboot 30m after panicaszlig2015-12-211-1/+1
| | | | | | | | | | Just happened to have a kernel panic on mmrnmhrm and no way to physically access the machine, which is quite a bummer. While we can't prevent kernel panics, we can at least prevent the machine to hang indefinitely. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Fix option for virtualbox.aszlig2015-08-201-2/+2
| | | | | | | | The option is no longer called services.virtualboxHost but now virtualisation.virtualbox.host. See NixOS/nixpkgs@6440e9b for more details. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Use new taskwarrior module.aszlig2015-05-091-0/+1
| | | | Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* profiles/workstation: Remove pulseaudio override.aszlig2015-04-271-3/+0
| | | | | | It was redundant anyway, see previous commit (e08f399). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* aszlig/workstation: Disable KSM again.aszlig2015-04-031-1/+0
| | | | | | | | | | | | | | | | | | | | I wanted to use it for my countless XTerms, so I patched xterm+zsh to use madvise() with MADV_MERGEABLE on every allocation and the results weren't *that* bright: pages_shared: 83 pages_sharing: 1498 pages_unshared: 942 pages_volatile: 1 With 20 terminals, so roughly 5.85 MB "saved" and ~9 for 120 instances. That really isn't worth the CPU overhead, thus I'm turning it off again. So, I need a better strategy to support my habit of running hundreds of terminals (or better: shells, because that's really what's actually eating up my RAM). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules: Revert new system module to enable KSM.aszlig2015-04-011-2/+1
| | | | | | | | This reverts commit fc53a72f48ae6b567e7bf9901a2bd3657853633c. Applied upstream at NixOS/nixpkgs@224ed7e. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* aszlig/workstation: Enable KSM by default.aszlig2015-04-011-0/+2
| | | | | | | | I can't stand it anymore when my excessive use of "lots of xterms" is getting my machines into the need to use swapspace. The last time one of my machines got to a crawl was with >300 open xterms. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Move mpv override into its own program module.aszlig2015-03-181-0/+1
| | | | Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* aszlig/profiles: Move zsh config into "base".aszlig2015-03-181-1/+0
| | | | | | | | | | I want to have a useful zsh configuration on all of my machines, so let's not only enable it for the workstation profile. Also, this removes a redundant zsh reference in the systemPackages of the base profile. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Refactor Gajim config + patches into a module.aszlig2015-03-181-0/+2
| | | | | | | | Now we no longer pollute the repository root with Gajim (for example in cfgfiles/) and it's also easier to enable/disable my personal Gajim config among my own machines. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* aszlig/workstation: Use package.nix as a list.aszlig2015-03-181-3/+1
| | | | | | | | | Using package.nix as a module would mean that we would need to check for the workstation profile in there again, so let's just make it a list and import it from the default.nix where we only once check whether the profile is enabled. Signed-off-by: aszlig <aszlig@redmoonstudios.org>