diff --git a/nixos/roles/default.nix b/nixos/roles/default.nix index 8301ca8..66ff35e 100644 --- a/nixos/roles/default.nix +++ b/nixos/roles/default.nix @@ -1,5 +1,6 @@ { imports = [ ./desktop-workstation.nix + ./laptop-workstation.nix ]; } diff --git a/nixos/roles/laptop-workstation.nix b/nixos/roles/laptop-workstation.nix new file mode 100644 index 0000000..9b7bb6b --- /dev/null +++ b/nixos/roles/laptop-workstation.nix @@ -0,0 +1,24 @@ +{ lib, config, ... }: + +let + inherit (lib) mkIf; + host = config.ooknet.host; +in + +{ + config = mkIf (host.type == "laptop" && host.role == "workstation") { + ooknet = { + services = { + gnomeServices.enable = true; + gvfs.enable = true; + dbus.enable = true; + system76Scheduler.enable = true; + }; + programs = { + _1password.enable = true; + dconf.enable = true; + kdeconnect.enable = true; + }; + }; + }; +}