feat(nixos:roles): add laptop-workstation
This commit is contained in:
parent
dd6271f7d6
commit
eeb9a118e6
2 changed files with 25 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./desktop-workstation.nix
|
||||
./laptop-workstation.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
24
nixos/roles/laptop-workstation.nix
Normal file
24
nixos/roles/laptop-workstation.nix
Normal file
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue