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

44 lines
1,011 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.packages = with pkgs; [
iosevka-bin
];
services.udev.packages = [ pkgs.qFlipper ];
services.pcscd.enable = true;
programs._1password.enable = true;
programs._1password-gui = {
enable = true;
polkitPolicyOwners = [ "lukegb" ];
};
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
pulse.enable = true;
};
security.rtkit.enable = true;
services.gnome.gnome-keyring.enable = lib.mkDefault true;
services.dbus.packages = [ depot.nix.pkgs.flameshot ];
systemd.packages = [ depot.nix.pkgs.flameshot ];
};
}