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

169 lines
4.1 KiB
Nix
Raw Permalink 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 = {
2023-11-03 08:09:19 +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;
2023-11-03 08:09:19 +00:00
firefox.languagePacks = ["fr"];
2024-02-11 16:46:51 +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;
steam.enable = true;
2024-01-11 12:40:20 +00:00
nix-ld.enable = true;
# Sets up all the libraries to load
nix-ld.libraries = with pkgs; [
stdenv.cc.cc
zlib
];
};
2023-04-14 20:51:52 +00:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
2024-04-24 06:40:27 +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; [
(callPackage ./sddm-rose-pine.nix {})
2023-04-14 20:51:52 +00:00
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions; [
2024-03-24 15:00:04 +00:00
#bmewburn.vscode-intelephense-client
#dracula-theme.theme-dracula
mvllow.rose-pine
2023-11-03 08:09:19 +00:00
editorconfig.editorconfig
esbenp.prettier-vscode
github.github-vscode-theme
gruntfuggly.todo-tree
2023-08-13 16:18:11 +00:00
jnoortheen.nix-ide
2023-06-19 12:52:25 +00:00
mhutchie.git-graph
2023-08-13 16:18:11 +00:00
ms-ceintl.vscode-language-pack-fr
2023-11-03 08:09:19 +00:00
#junstyle.php-cs-fixer
#ms-vscode-remote.remote-ssh
2023-08-13 16:18:11 +00:00
]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
2023-11-03 08:09:19 +00:00
name = "vscode-twig-language-2";
2023-08-13 16:18:11 +00:00
publisher = "mblode";
2023-11-03 08:09:19 +00:00
version = "0.9.2";
2023-08-13 16:18:11 +00:00
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-04-28 08:04:46 +00:00
#rose-pine-gtk-theme
#rose-pine-icon-theme
#element-desktop
2023-04-14 20:51:52 +00:00
filezilla
gimp-with-plugins
2023-11-03 08:09:19 +00:00
hunspell
hunspellDicts.fr-moderne
#hyprpaper
2023-04-14 20:51:52 +00:00
inkscape-with-extensions
#kde-rounded-corners
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
#libsForQt5.krohnkite
#libsForQt5.bismuth
mixxx
mumble
2024-03-06 07:38:56 +00:00
neochat
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
#tor-browser-bundle-bin
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
];
# 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
'';
}