about summary refs log tree commit diff
path: root/users/tazjin/nixos/camden/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-10-04T15·56+0000
committertazjin <mail@tazj.in>2020-10-04T16·06+0000
commit7a62272d20ab18fc8c60c2cef83fd2a06f1692a6 (patch)
treeb07af9bc22bfc5d6f5c59a65858d184727e50a3c /users/tazjin/nixos/camden/default.nix
parent2670f84f5f34699776ff51a2afb1b737737cedaa (diff)
feat(tazjin/camden): Install flatcam tooling r/1833
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 <mail@tazj.in>
Diffstat (limited to 'users/tazjin/nixos/camden/default.nix')
-rw-r--r--users/tazjin/nixos/camden/default.nix10
1 files 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 {