Skip to content

Commit

Permalink
fix(lib): start importing hardwarechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Oct 28, 2023
1 parent 68e86a6 commit c451d91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions home/isabel/services/shared/cloud/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
pkgs,
...
}: let
inherit (lib) mkIf isAcceptedDevice isWayland;
inherit (lib) mkIf isAcceptedDevice mkGraphicalService;
acceptedTypes = ["desktop" "laptop" "lite" "hybrid"];
in {
config = mkIf ((isAcceptedDevice osConfig acceptedTypes) && (isWayland osConfig)) {
config = mkIf (isAcceptedDevice osConfig acceptedTypes) {
/*
services = {
nextcloud-client.enable = true;
Expand All @@ -17,8 +17,12 @@ in {

home.packages = [pkgs.nextcloud-client];

systemd.user.services.nextcloud = lib.mkGraphicalService {
Unit.Description = "Nextcloud client service";
systemd.user.services.nextcloud = mkGraphicalService {
Unit = {
Description = "Nextcloud sync client service";
After = "network-online.target";
};

Service = {
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background";
Restart = "always";
Expand Down
3 changes: 2 additions & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
services = import ./services.nix {inherit lib;};
validators = import ./validators.nix {inherit lib;};
helpers = import ./helpers.nix {inherit lib;};
hardware = import ./hardware.nix {inherit lib;};
in
nixpkgs.lib.extend (_: _: builders // services // validators // helpers)
nixpkgs.lib.extend (_: _: builders // services // validators // helpers // hardware)

0 comments on commit c451d91

Please sign in to comment.