From eeb9a118e6df53109de61b9ec6e7f719312eddf9 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Wed, 12 Jun 2024 22:33:11 +1200 Subject: [PATCH] feat(nixos:roles): add laptop-workstation --- nixos/roles/default.nix | 1 + nixos/roles/laptop-workstation.nix | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 nixos/roles/laptop-workstation.nix 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; + }; + }; + }; +}