Added printing and grdp modules
This commit is contained in:
		
							parent
							
								
									a0cb0d1f44
								
							
						
					
					
						commit
						24519ceea7
					
				@ -17,6 +17,7 @@ with lib;
 | 
			
		||||
    ./brightnessctl/default.nix
 | 
			
		||||
    ./fontconfig/default.nix
 | 
			
		||||
    ./graphics/default.nix
 | 
			
		||||
    ./grdp/default.nix
 | 
			
		||||
    ./greeter/greetd/default.nix
 | 
			
		||||
    ./greeter/greetd/nixgreety.nix
 | 
			
		||||
    ./greeter/greetd/tuigreet.nix
 | 
			
		||||
@ -25,6 +26,7 @@ with lib;
 | 
			
		||||
    ./neovim/default.nix
 | 
			
		||||
    ./networkmanager/default.nix
 | 
			
		||||
    ./power-saving/default.nix
 | 
			
		||||
    ./printing/default.nix
 | 
			
		||||
    ./sound/pipewire.nix
 | 
			
		||||
    ./users/default.nix
 | 
			
		||||
    ./unfree/default.nix
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										27
									
								
								modules/grdp/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								modules/grdp/default.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,27 @@
 | 
			
		||||
{ config, lib, ... }:
 | 
			
		||||
 | 
			
		||||
with lib;
 | 
			
		||||
{
 | 
			
		||||
  options.modules.grdp = {
 | 
			
		||||
    enable = mkEnableOption "grdp";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf config.modules.grdp.enable {
 | 
			
		||||
    services.gnome.gnome-remote-desktop.enable = true;
 | 
			
		||||
    systemd.services."gnome-remote-desktop".wantedBy = [ "graphical.target" ];
 | 
			
		||||
    networking.firewall = {
 | 
			
		||||
      allowedTCPPorts = [ 3389 ];
 | 
			
		||||
      allowedUDPPorts = [ 3389 ];
 | 
			
		||||
    };
 | 
			
		||||
    # programs.dconf.profiles.user.databases = [
 | 
			
		||||
    #   {
 | 
			
		||||
    #     settings = with lib.gvariant; {
 | 
			
		||||
    #       "org/gnome/desktop/remote-desktop/rdp" = {
 | 
			
		||||
    #         enable = true;
 | 
			
		||||
    #         view-only = false;
 | 
			
		||||
    #       };
 | 
			
		||||
    #     };
 | 
			
		||||
    #   }
 | 
			
		||||
    # ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										27
									
								
								modules/printing/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								modules/printing/default.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,27 @@
 | 
			
		||||
{
 | 
			
		||||
  lib,
 | 
			
		||||
  config,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
with lib;
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.modules.printing;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  options.modules.printing = {
 | 
			
		||||
    enable = mkEnableOption "printing";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    services.printing = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      # drivers = with pkgs; [];
 | 
			
		||||
    };
 | 
			
		||||
    services.avahi = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      nssmdns4 = true;
 | 
			
		||||
      openFirewall = true;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user