feat(tazjin/camden): Install flatcam tooling
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>
			
			
This commit is contained in:
		
							parent
							
								
									2670f84f5f
								
							
						
					
					
						commit
						7a62272d20
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -124,6 +124,11 @@ in lib.fix(self: {
 | 
				
			||||||
  programs.fish.enable = true;
 | 
					  programs.fish.enable = true;
 | 
				
			||||||
  programs.mosh.enable = true;
 | 
					  programs.mosh.enable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  fonts = {
 | 
				
			||||||
 | 
					    fonts = [ nixpkgs.jetbrains-mono ];
 | 
				
			||||||
 | 
					    fontconfig.defaultFonts.monospace = [ "JetBrains Mono" ];
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  environment.systemPackages =
 | 
					  environment.systemPackages =
 | 
				
			||||||
    # programs from the depot
 | 
					    # programs from the depot
 | 
				
			||||||
    (with depot; [
 | 
					    (with depot; [
 | 
				
			||||||
| 
						 | 
					@ -138,6 +143,7 @@ in lib.fix(self: {
 | 
				
			||||||
      curl
 | 
					      curl
 | 
				
			||||||
      direnv
 | 
					      direnv
 | 
				
			||||||
      emacs26-nox
 | 
					      emacs26-nox
 | 
				
			||||||
 | 
					      fswebcam
 | 
				
			||||||
      git
 | 
					      git
 | 
				
			||||||
      gnupg
 | 
					      gnupg
 | 
				
			||||||
      google-cloud-sdk
 | 
					      google-cloud-sdk
 | 
				
			||||||
| 
						 | 
					@ -147,6 +153,7 @@ in lib.fix(self: {
 | 
				
			||||||
      pciutils
 | 
					      pciutils
 | 
				
			||||||
      restic
 | 
					      restic
 | 
				
			||||||
      ripgrep
 | 
					      ripgrep
 | 
				
			||||||
 | 
					      screen
 | 
				
			||||||
    ]);
 | 
					    ]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  users = {
 | 
					  users = {
 | 
				
			||||||
| 
						 | 
					@ -154,7 +161,7 @@ in lib.fix(self: {
 | 
				
			||||||
    users.tazjin = {
 | 
					    users.tazjin = {
 | 
				
			||||||
      isNormalUser = true;
 | 
					      isNormalUser = true;
 | 
				
			||||||
      uid = 1000;
 | 
					      uid = 1000;
 | 
				
			||||||
      extraGroups = [ "git" "wheel" "quassel" ];
 | 
					      extraGroups = [ "git" "wheel" "quassel" "video" ];
 | 
				
			||||||
      shell = nixpkgs.fish;
 | 
					      shell = nixpkgs.fish;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -258,7 +265,6 @@ in lib.fix(self: {
 | 
				
			||||||
    recommendedGzipSettings = true;
 | 
					    recommendedGzipSettings = true;
 | 
				
			||||||
    recommendedProxySettings = true;
 | 
					    recommendedProxySettings = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
    appendConfig = ''
 | 
					    appendConfig = ''
 | 
				
			||||||
      rtmp_auto_push on;
 | 
					      rtmp_auto_push on;
 | 
				
			||||||
      rtmp {
 | 
					      rtmp {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue