trying to set the automatic nextcloud to work without logging into the desktop app
This commit is contained in:
		
							parent
							
								
									595ee09839
								
							
						
					
					
						commit
						f9c8e4783e
					
				
					 7 changed files with 99 additions and 55 deletions
				
			
		| 
						 | 
				
			
			@ -32,32 +32,32 @@
 | 
			
		|||
      #     patches = [ ./change-hello-to-hi.patch ];
 | 
			
		||||
      #   });
 | 
			
		||||
      # })
 | 
			
		||||
      (final: prev: {
 | 
			
		||||
        catppuccin-vsc = final.catppuccin-vsc.overrideAttrs (oldAttrs: {
 | 
			
		||||
          accent = "mauve";
 | 
			
		||||
          boldKeywords = true;
 | 
			
		||||
          italicComments = true;
 | 
			
		||||
          italicKeywords = true;
 | 
			
		||||
          extraBordersEnabled = false;
 | 
			
		||||
          workbenchMode = "default";
 | 
			
		||||
          bracketMode = "rainbow";
 | 
			
		||||
          colorOverrides = {};
 | 
			
		||||
          customUIColors = {};
 | 
			
		||||
        });
 | 
			
		||||
      })
 | 
			
		||||
      (final: prev: {
 | 
			
		||||
        catppuccin-vsc = final.catppuccin-vsc.overrideAttrs (oldAttrs: {
 | 
			
		||||
          accent = "mauve";
 | 
			
		||||
          boldKeywords = true;
 | 
			
		||||
          italicComments = true;
 | 
			
		||||
          italicKeywords = true;
 | 
			
		||||
          extraBordersEnabled = false;
 | 
			
		||||
          workbenchMode = "default";
 | 
			
		||||
          bracketMode = "rainbow";
 | 
			
		||||
          colorOverrides = {};
 | 
			
		||||
          customUIColors = {};
 | 
			
		||||
        });
 | 
			
		||||
      })
 | 
			
		||||
      # (final: prev: {
 | 
			
		||||
      #   catppuccin-vsc = final.catppuccin-vsc.overrideAttrs (oldAttrs: {
 | 
			
		||||
      #     accent = "mauve";
 | 
			
		||||
      #     boldKeywords = true;
 | 
			
		||||
      #     italicComments = true;
 | 
			
		||||
      #     italicKeywords = true;
 | 
			
		||||
      #     extraBordersEnabled = false;
 | 
			
		||||
      #     workbenchMode = "default";
 | 
			
		||||
      #     bracketMode = "rainbow";
 | 
			
		||||
      #     colorOverrides = {};
 | 
			
		||||
      #     customUIColors = {};
 | 
			
		||||
      #   });
 | 
			
		||||
      # })
 | 
			
		||||
      # (final: prev: {
 | 
			
		||||
      #   catppuccin-vsc = final.catppuccin-vsc.overrideAttrs (oldAttrs: {
 | 
			
		||||
      #     accent = "mauve";
 | 
			
		||||
      #     boldKeywords = true;
 | 
			
		||||
      #     italicComments = true;
 | 
			
		||||
      #     italicKeywords = true;
 | 
			
		||||
      #     extraBordersEnabled = false;
 | 
			
		||||
      #     workbenchMode = "default";
 | 
			
		||||
      #     bracketMode = "rainbow";
 | 
			
		||||
      #     colorOverrides = {};
 | 
			
		||||
      #     customUIColors = {};
 | 
			
		||||
      #   });
 | 
			
		||||
      # })
 | 
			
		||||
    ];
 | 
			
		||||
    config = {
 | 
			
		||||
      permittedInsecurePackages = ["cinny-4.2.3" "cinny-unwrapped-4.2.3" "cinny-4.2.2" "cinny-unwrapped-4.2.2"];
 | 
			
		||||
| 
						 | 
				
			
			@ -67,30 +67,67 @@
 | 
			
		|||
      allowUnfree = true;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  systemd.user = {
 | 
			
		||||
    services."nextcloud-autosync@" = {
 | 
			
		||||
      Unit = {
 | 
			
		||||
        Description = "Auto sync Nextcloud";
 | 
			
		||||
        After = "network-online.target";
 | 
			
		||||
      };
 | 
			
		||||
      Service = {
 | 
			
		||||
        Type = "simple";
 | 
			
		||||
        ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n --path /%i /home/lillian/%i https://nextcloud.gladtherescake.eu";
 | 
			
		||||
        TimeoutStopSec = "180";
 | 
			
		||||
        KillMode = "process";
 | 
			
		||||
        KillSignal = "SIGINT";
 | 
			
		||||
      };
 | 
			
		||||
      Install.WantedBy = ["multi-user.target"];
 | 
			
		||||
    };
 | 
			
		||||
    services.nextcloud-autosyncs = {
 | 
			
		||||
      Unit = {
 | 
			
		||||
        Description = "workers";
 | 
			
		||||
        Requires = ["nextcloud-autosync@Music" "nextcloud-autosync@Pictures" "nextcloud-autosync@Scripts" "nextcloud-autosync@Videos" "nextcloud-autosync@Documents"];
 | 
			
		||||
        PartOf = "nextcloud-autosyncs.target";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    timers.nextcloud-autosyncs = {
 | 
			
		||||
      Unit.Description = "Automatic sync files with Nextcloud when booted up after 5 minutes then rerun every 60 minutes";
 | 
			
		||||
      Timer.OnBootSec = "5min";
 | 
			
		||||
      Timer.OnUnitActiveSec = "60min";
 | 
			
		||||
      Install.WantedBy = ["multi-user.target" "timers.target"];
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    # Nicely reload system units when changing configs
 | 
			
		||||
    startServices = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home = {
 | 
			
		||||
    username = "lillian";
 | 
			
		||||
    homeDirectory = "/home/lillian";
 | 
			
		||||
 | 
			
		||||
    file = {
 | 
			
		||||
      Music = {
 | 
			
		||||
        source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Music";
 | 
			
		||||
        target = "Music";
 | 
			
		||||
      };
 | 
			
		||||
      Pictures = {
 | 
			
		||||
        source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Pictures";
 | 
			
		||||
        target = "Pictures";
 | 
			
		||||
      };
 | 
			
		||||
      Scripts = {
 | 
			
		||||
        source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Scripts";
 | 
			
		||||
        target = "Scripts";
 | 
			
		||||
      };
 | 
			
		||||
      Videos = {
 | 
			
		||||
        source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Videos";
 | 
			
		||||
        target = "Videos";
 | 
			
		||||
      };
 | 
			
		||||
      Documents = {
 | 
			
		||||
        source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Documents";
 | 
			
		||||
        target = "Documents";
 | 
			
		||||
      # Music = {
 | 
			
		||||
      #   source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Music";
 | 
			
		||||
      #   target = "Music";
 | 
			
		||||
      # };
 | 
			
		||||
      # Pictures = {
 | 
			
		||||
      #   source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Pictures";
 | 
			
		||||
      #   target = "Pictures";
 | 
			
		||||
      # };
 | 
			
		||||
      # Scripts = {
 | 
			
		||||
      #   source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Scripts";
 | 
			
		||||
      #   target = "Scripts";
 | 
			
		||||
      # };
 | 
			
		||||
      # Videos = {
 | 
			
		||||
      #   source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Videos";
 | 
			
		||||
      #   target = "Videos";
 | 
			
		||||
      # };
 | 
			
		||||
      # Documents = {
 | 
			
		||||
      #   source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/Nextcloud/Documents";
 | 
			
		||||
      #   target = "Documents";
 | 
			
		||||
      # };
 | 
			
		||||
      floorp = {
 | 
			
		||||
        source = config.lib.file.mkOutOfStoreSymlink "/home/lillian/.mozilla/firefox";
 | 
			
		||||
        target = ".floorp";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -225,7 +262,4 @@
 | 
			
		|||
    kdeconnect.package = pkgs.kdePackages.kdeconnect-kde;
 | 
			
		||||
    kdeconnect.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Nicely reload system units when changing configs
 | 
			
		||||
  systemd.user.startServices = "sd-switch";
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,7 +16,6 @@
 | 
			
		|||
  ];
 | 
			
		||||
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    # heroic
 | 
			
		||||
    r2modman
 | 
			
		||||
    ryujinx
 | 
			
		||||
    lutris
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue