dotfiles/modules/profiles/desktop.nix

86 lines
2 KiB
Nix
Raw Normal View History

{ lib
2023-05-11 17:33:14 +02:00
, config
2022-07-15 13:11:54 +02:00
, pkgs
, ...
}:
2023-05-11 17:33:14 +02:00
with lib;
let
cfg = config.my.profiles.desktop;
in
{
options.my.profiles.desktop.enable = mkEnableOption "desktop profile";
config = mkIf cfg.enable {
my = {
yubikey = {
enable = mkDefault true;
2023-05-11 17:33:14 +02:00
luksSupport = {
enable = mkDefault true;
devices = mkDefault [ "enc" ];
};
};
2023-05-11 17:33:14 +02:00
wallpapers.enable = mkDefault true;
theming = {
enable = mkDefault true;
scheme = mkDefault "catppuccin-macchiato";
};
virtualisation.podman.enable = mkDefault true;
2022-07-15 13:11:54 +02:00
2023-05-11 17:33:14 +02:00
programs = {
chromium.enable = mkDefault true;
firefox.enable = mkDefault true;
gpg.enable = mkDefault true;
hyprland.enable = mkDefault true;
logseq.enable = mkDefault true;
2023-05-31 15:51:50 +02:00
nix-edit.enable = mkDefault true;
2023-05-11 17:33:14 +02:00
nvim.enable = mkDefault true;
python.versions."311".enable = mkDefault true;
spotify.enable = mkDefault true;
ssh.enable = mkDefault true;
thunar.enable = mkDefault true;
wallpaper.enable = mkDefault true;
zathura.enable = mkDefault true;
};
services = {
dunst.enable = mkDefault true;
gammastep.enable = true;
kdeconnect.enable = mkDefault true;
printing.enable = true;
wireguard.enable = true;
};
2022-07-15 13:11:54 +02:00
};
2023-05-11 17:33:14 +02:00
environment.systemPackages = with pkgs; [
anki
calibre
keepassxc
nixpkgs-review
pavucontrol
stable.libreoffice # HACK to fix build error
stable.signal-desktop
texlive.combined.scheme-full
thunderbird
vlc
];
2022-07-15 13:11:54 +02:00
2023-05-11 17:33:14 +02:00
programs.nix-ld.enable = true;
2022-12-23 12:40:37 +01:00
2023-05-11 17:33:14 +02:00
home-manager.users.moritz = {
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
2022-07-15 13:11:54 +02:00
};
2023-05-11 17:33:14 +02:00
services = {
illum.enable = true;
2023-05-11 17:33:14 +02:00
gnome.gnome-keyring.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
2022-07-15 13:11:54 +02:00
};
};
}