depot/ops/nixos/lib/graphical-client.nix

39 lines
864 B
Nix

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ pkgs, depot, lib, ... }:
let
inherit (lib) mkBefore;
in
{
imports = [
./client.nix
];
config = {
my.home-manager.imports = lib.mkAfter [ ./home-manager/graphical-client.nix ];
fonts.fonts = with pkgs; [
iosevka
];
services.udev.packages = [ pkgs.libu2f-host ];
services.pcscd.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
pulse.enable = true;
media-session.enable = true;
};
security.rtkit.enable = true;
services.dbus.packages = [ depot.nix.pkgs.flameshot ];
systemd.packages = [ depot.nix.pkgs.flameshot ];
};
}