mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-17 13:41:04 +01:00
36 lines
937 B
Nix
36 lines
937 B
Nix
{
|
|
myvars,
|
|
lib,
|
|
outputs,
|
|
}:
|
|
let
|
|
username = myvars.username;
|
|
hosts = [
|
|
"ruby"
|
|
"kana"
|
|
];
|
|
in
|
|
lib.genAttrs hosts (
|
|
name:
|
|
let
|
|
system = outputs.nixosConfigurations.${name}.config;
|
|
home = system.home-manager.users.${username};
|
|
in
|
|
{
|
|
computerUse = system.modules.desktop.computerUse.enable;
|
|
atspi = system.services.gnome.at-spi2-core.enable;
|
|
mihomo = system.services.mihomo.enable;
|
|
timeZone = system.time.timeZone;
|
|
xvfbRestart = home.systemd.user.services.xvfb.Service.Restart;
|
|
i3Restart = home.systemd.user.services.i3.Service.Restart;
|
|
vnc = home.modules.desktop.computerUse.vnc;
|
|
clipboardSync = lib.all (svc: lib.hasAttr svc home.systemd.user.services) [
|
|
"autocutsel-primary"
|
|
"autocutsel-clipboard"
|
|
];
|
|
cuaDriver = home.modules.desktop.computerUse.cuaDriver;
|
|
brave = home.programs.brave-origin.enable;
|
|
chromium = home.programs.chromium.enable;
|
|
}
|
|
)
|