From 7a62272d20ab18fc8c60c2cef83fd2a06f1692a6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 4 Oct 2020 15:56:09 +0000 Subject: feat(tazjin/camden): Install flatcam tooling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was previously set up manually in a nix-shell. Invocation works like this: screen fswebcam --title 'tazflat' --font 'JetBrains Mono' \ --timestamp "%Y-%m-%d %H·%M+01" -l 60 -r 1280x720 \ -d /dev/video0 --jpeg 95 /var/www/blobs/flat.jpg \ --exec 'cp /var/www/blobs/flat.jpg /var/www/blobs/flat/at_$(date +%s).jpg' Change-Id: I5ecf8fdf67240faf885fd12f428e368e2bc64dc8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2018 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/nixos/camden/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/users/tazjin/nixos/camden/default.nix b/users/tazjin/nixos/camden/default.nix index aae1427f6745..d8c439b4f46c 100644 --- a/users/tazjin/nixos/camden/default.nix +++ b/users/tazjin/nixos/camden/default.nix @@ -124,6 +124,11 @@ in lib.fix(self: { programs.fish.enable = true; programs.mosh.enable = true; + fonts = { + fonts = [ nixpkgs.jetbrains-mono ]; + fontconfig.defaultFonts.monospace = [ "JetBrains Mono" ]; + }; + environment.systemPackages = # programs from the depot (with depot; [ @@ -138,6 +143,7 @@ in lib.fix(self: { curl direnv emacs26-nox + fswebcam git gnupg google-cloud-sdk @@ -147,6 +153,7 @@ in lib.fix(self: { pciutils restic ripgrep + screen ]); users = { @@ -154,7 +161,7 @@ in lib.fix(self: { users.tazjin = { isNormalUser = true; uid = 1000; - extraGroups = [ "git" "wheel" "quassel" ]; + extraGroups = [ "git" "wheel" "quassel" "video" ]; shell = nixpkgs.fish; }; @@ -258,7 +265,6 @@ in lib.fix(self: { recommendedGzipSettings = true; recommendedProxySettings = true; - appendConfig = '' rtmp_auto_push on; rtmp { -- cgit 1.4.1