mrflos-nixos-config-fork/modules/desktop.nix

169 lines
4 KiB
Nix
Raw Normal View History

2023-04-14 20:51:52 +00:00
# Window Manager and desktop programs
2024-04-24 06:40:27 +00:00
{ lib, pkgs, ... }:
2023-04-14 20:51:52 +00:00
{
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services = {
2023-06-19 12:52:25 +00:00
openvpn.servers = {
2024-09-05 12:39:17 +00:00
arn = {
config = ''config /home/mrflos/Nextcloud/vpn\ ARN/2023/vpn510.conf '';
autoStart = false;
};
2023-06-19 12:52:25 +00:00
};
2023-04-14 20:51:52 +00:00
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
printing.enable = true; # Enable CUPS to print documents.
2023-11-03 08:09:19 +00:00
printing.drivers = [ pkgs.brlaser ];
2024-03-25 06:18:26 +00:00
avahi = {
enable = true;
2024-07-03 07:46:47 +00:00
nssmdns4 = true;
2024-03-25 06:18:26 +00:00
openFirewall = true;
};
2023-11-03 08:09:19 +00:00
2024-07-03 12:11:19 +00:00
xserver.desktopManager.plasma5.enable = true;
2024-07-03 07:46:47 +00:00
displayManager.defaultSession = "plasmawayland";
displayManager.sddm.wayland.enable = true;
2024-07-03 12:11:19 +00:00
displayManager.sddm.enable = true;
2024-07-03 07:46:47 +00:00
displayManager.sddm.enableHidpi = true;
2024-07-03 11:53:55 +00:00
displayManager.sddm.theme = "rose-pine";
2024-07-03 12:11:19 +00:00
#xserver = {
# enable = true;
# desktopManager.plasma5.enable = true;
#};
2023-11-03 08:09:19 +00:00
dbus.enable = true;
2023-04-14 20:51:52 +00:00
};
programs = {
chromium = {
enable = true;
homepageLocation = "about:blank";
2023-04-14 20:51:52 +00:00
extensions = [
"pejkokffkapolfffcgbmdmhdelanoaih" # Unsplash instant
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin
"gfapcejdoghpoidkfodoiiffaaibpaem" # Dracula theme
"jbbplnpkjmmeebjpijfedlgcdilocofh" # wave a11y
];
extraOpts = {
SpellcheckEnabled = true;
SpellcheckLanguage = [
"fr-FR"
"en-GB"
"ru"
];
};
};
droidcam.enable = true;
firefox.enable = true;
2024-09-05 12:39:17 +00:00
firefox.languagePacks = [ "fr" ];
2024-09-06 19:36:37 +00:00
#hyprland.enable = true;
2023-11-03 08:09:19 +00:00
ssh.askPassword = pkgs.lib.mkForce "${pkgs.ksshaskpass.out}/bin/ksshaskpass"; # conflict between kde and gnome cf. https://github.com/NixOS/nixpkgs/issues/75867
ssh.startAgent = true;
2024-09-05 12:39:17 +00:00
steam.enable = true;
2024-09-05 12:39:17 +00:00
2024-01-11 12:40:20 +00:00
nix-ld.enable = true;
# Sets up all the libraries to load
nix-ld.libraries = with pkgs; [
2024-09-05 12:39:17 +00:00
stdenv.cc.cc
zlib
2024-01-11 12:40:20 +00:00
];
};
2023-04-14 20:51:52 +00:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
2024-09-05 12:39:17 +00:00
# no kde bloat
2023-06-19 12:52:25 +00:00
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
baloo
2023-06-19 12:52:25 +00:00
elisa
khelpcenter
oxygen
2023-06-19 12:52:25 +00:00
plasma-browser-integration
];
2023-04-14 20:51:52 +00:00
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
2024-09-05 12:39:17 +00:00
(callPackage ./sddm-rose-pine.nix { })
2023-04-14 20:51:52 +00:00
(vscode-with-extensions.override {
vscode = vscodium;
2024-09-05 12:39:17 +00:00
vscodeExtensions =
with vscode-extensions;
[
#bmewburn.vscode-intelephense-client
#dracula-theme.theme-dracula
mvllow.rose-pine
editorconfig.editorconfig
esbenp.prettier-vscode
github.github-vscode-theme
gruntfuggly.todo-tree
jnoortheen.nix-ide
mhutchie.git-graph
ms-ceintl.vscode-language-pack-fr
#junstyle.php-cs-fixer
#ms-vscode-remote.remote-ssh
]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "vscode-twig-language-2";
publisher = "mblode";
version = "0.9.2";
sha256 = "113w2iis4zi4z3sqc3vd2apyrh52hbh2gvmxjr5yvjpmrsksclbd";
}
];
2023-04-14 20:51:52 +00:00
})
(chromium.override {
enableWideVine = true; # DRM support
})
2024-01-23 19:52:57 +00:00
appimage-run
2023-11-03 08:09:19 +00:00
audacious
calibre
2023-06-19 12:52:25 +00:00
digikam
2024-09-05 12:37:23 +00:00
eaglemode
2023-04-14 20:51:52 +00:00
filezilla
gimp-with-plugins
2023-11-03 08:09:19 +00:00
hunspell
hunspellDicts.fr-moderne
2023-04-14 20:51:52 +00:00
inkscape-with-extensions
kitty
2023-08-13 16:18:11 +00:00
latte-dock
2023-11-03 08:09:19 +00:00
libreoffice-qt
2023-04-14 20:51:52 +00:00
libsForQt5.ark
mixxx
mumble
2023-04-14 20:51:52 +00:00
nextcloud-client
2023-06-19 12:52:25 +00:00
obsidian
2023-04-14 20:51:52 +00:00
signal-desktop
2023-08-13 16:18:11 +00:00
thunderbird
tigervnc
2023-06-19 12:52:25 +00:00
transmission-qt
2024-01-04 16:35:23 +00:00
unetbootin
2023-04-14 20:51:52 +00:00
vlc
2024-09-06 19:36:37 +00:00
## niri scroll window manager
niri
waybar
fuzzel
alacritty
2023-04-14 20:51:52 +00:00
];
# Do not restart the display manager automatically
systemd.services.display-manager.restartIfChanged = lib.mkForce false;
# If something needs more than 20s to stop it should probably be
# killed.
systemd.extraConfig = ''
DefaultTimeoutStopSec=20s
'';
}