Compare commits
	
		
			1 Commits
		
	
	
		
			ff34faa937
			...
			feature/ps
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1412e1cc79 | 
							
								
								
									
										24
									
								
								modules/yubikey.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								modules/yubikey.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					  config,
 | 
				
			||||||
 | 
					  lib,
 | 
				
			||||||
 | 
					  pkgs,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					let
 | 
				
			||||||
 | 
					  cfg = config.services.rad-dev.yubikey;
 | 
				
			||||||
 | 
					in
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  options = {
 | 
				
			||||||
 | 
					    services.rad-dev.yubikey = {
 | 
				
			||||||
 | 
					      enable = lib.mkEnableOption "enable yubikey defaults";
 | 
				
			||||||
 | 
					      enable-desktop-app = lib.mkEnableOption "installs desktop application";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  config = lib.mkIf cfg.enable {
 | 
				
			||||||
 | 
					    # enable the smart card daemon for certain yubikey operations
 | 
				
			||||||
 | 
					    services.pcscd.enable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    environment.systemPackages = lib.optionals cfg.enable-desktop-app [ pkgs.yubioath-flutter ];
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -84,6 +84,10 @@
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
      #systemd.services.spotifyd.serviceConfig = systemd.services.spotifyd.
 | 
					      #systemd.services.spotifyd.serviceConfig = systemd.services.spotifyd.
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					    rad-dev.yubikey = {
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					      enable-desktop-app = true;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  users.users.alice.extraGroups = [ "calibre-web" ];
 | 
					  users.users.alice.extraGroups = [ "calibre-web" ];
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -93,7 +93,6 @@
 | 
				
			|||||||
    wget
 | 
					    wget
 | 
				
			||||||
    wl-clipboard
 | 
					    wl-clipboard
 | 
				
			||||||
    xboxdrv
 | 
					    xboxdrv
 | 
				
			||||||
    yubioath-flutter
 | 
					 | 
				
			||||||
    zoom-us
 | 
					    zoom-us
 | 
				
			||||||
    zoxide
 | 
					    zoxide
 | 
				
			||||||
    zoom
 | 
					    zoom
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user