diff options
| author | Kumar Damani <me@kumardamani.net> | 2023-08-03 13:43:00 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2023-08-03 13:43:00 +0000 |
| commit | 99ab09df0972b748b158eb7bac8c5410002d8de1 (patch) | |
| tree | 0ff85e36f05780f663b3b282e955ff3735415649 /nixpkgs/.config | |
| parent | a74c1a7dfe58c0df6abf573c7045be2df311d227 (diff) | |
latest stuff
Diffstat (limited to 'nixpkgs/.config')
| -rw-r--r-- | nixpkgs/.config/nixpkgs/flake.nix | 2 | ||||
| -rw-r--r-- | nixpkgs/.config/nixpkgs/per-user/kdam0-work/home.nix | 52 |
2 files changed, 39 insertions, 15 deletions
diff --git a/nixpkgs/.config/nixpkgs/flake.nix b/nixpkgs/.config/nixpkgs/flake.nix index 0a01025..e938509 100644 --- a/nixpkgs/.config/nixpkgs/flake.nix +++ b/nixpkgs/.config/nixpkgs/flake.nix @@ -33,7 +33,7 @@ "kdam0" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages."x86_64-linux"; modules = [ - ./per-user/kdam0-home/home.nix + ./per-user/kdam0-work/home.nix ]; # Optionally use extraSpecialArgs diff --git a/nixpkgs/.config/nixpkgs/per-user/kdam0-work/home.nix b/nixpkgs/.config/nixpkgs/per-user/kdam0-work/home.nix index fec0247..6cf7fdf 100644 --- a/nixpkgs/.config/nixpkgs/per-user/kdam0-work/home.nix +++ b/nixpkgs/.config/nixpkgs/per-user/kdam0-work/home.nix @@ -195,7 +195,6 @@ pkgs.kubectl pkgs.helm pkgs.virt-viewer - pkgs.way-displays ]; fonts.fontconfig.enable = true; @@ -209,21 +208,43 @@ systemd.user.services = { nextcloud-sync = { Unit = { - Description = "Auto sync Nextcloud"; + Description = "Auto sync Nextcloud"; After = "network-online.target"; }; Service = { - Type = "simple"; - EnvironmentFile = "${config.home.homeDirectory}/.nextcloud.env"; - ExecStart = '' + Type = "simple"; + EnvironmentFile = "${config.home.homeDirectory}/.nextcloud.env"; + ExecStart = '' ${pkgs.nextcloud-client}/bin/nextcloudcmd \ -h --non-interactive \ --user "''${NEXTCLOUD_USER}" \ --password "''${NEXTCLOUD_PASSWORD}" \ - ''${NEXTCLOUD_DIR} \ + --path /Documents "''${NEXTCLOUD_DIR}/Documents" \ ''${NEXTCLOUD_URL} ''; - TimeoutStopSec = "180"; + TimeoutStopSec = "180"; + KillMode = "process"; + KillSignal = "SIGINT"; + }; + Install.WantedBy = ["multi-user.target"]; + }; + nextcloud-sync-notes = { + Unit = { + Description = "Auto sync Nextcloud"; + After = "network-online.target"; + }; + Service = { + Type = "simple"; + EnvironmentFile = "${config.home.homeDirectory}/.nextcloud.env"; + ExecStart = '' + ${pkgs.nextcloud-client}/bin/nextcloudcmd \ + -h --non-interactive \ + --user "''${NEXTCLOUD_USER}" \ + --password "''${NEXTCLOUD_PASSWORD}" \ + --path /Notes "''${NEXTCLOUD_DIR}/Notes" \ + ''${NEXTCLOUD_URL} + ''; + TimeoutStopSec = "180"; KillMode = "process"; KillSignal = "SIGINT"; }; @@ -231,13 +252,13 @@ }; bg-wallpaper = { Unit = { - Description = "Auto refresh wallpaper"; + Description = "Auto refresh wallpaper"; After = "network-online.target"; }; Service = { - Type = "simple"; - ExecStart = "${config.home.homeDirectory}/.config/nixpkgs/common/scripts/walp"; - TimeoutStopSec = "10"; + Type = "simple"; + ExecStart = "${config.home.homeDirectory}/.config/nixpkgs/common/scripts/walp"; + TimeoutStopSec = "10"; KillMode = "process"; KillSignal = "SIGKILL"; }; @@ -250,8 +271,11 @@ Timer.OnUnitActiveSec = "10min"; Install.WantedBy = ["multi-user.target" "timers.target"]; }; - }; - systemd.user.timers = { + nextcloud-sync-notes = { + Unit.Description = "Automatic sync files with Nextcloud when booted up after 5 minutes then rerun every 10 minutes"; + Timer.OnUnitActiveSec = "10min"; + Install.WantedBy = ["multi-user.target" "timers.target"]; + }; bg-wallpaper = { Unit.Description = "Automatic update of wallpaper"; Timer.OnUnitActiveSec = "10min"; @@ -265,7 +289,7 @@ home.file.".config/wofi/style.css".source = ../../common/wofi/style.css; home.file.".config/mako/config".source = ../../common/mako/config; home.file.".local/share/fonts".source = ../../common/fonts; - home.file.".config/way-displays".source = ../../common/way-displays; + #home.file.".config/way-displays".source = ../../common/way-displays; #home.file.".config/foot/foot.ini".text = '' #[colors] |
