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

188 lines
4.7 KiB
Nix
Raw Normal View History

2023-04-14 20:51:52 +00:00
# Window Manager and desktop programs
{ config, lib, pkgs, ... }:
let
2023-11-03 08:09:19 +00:00
# unstableTarball =
# fetchTarball
# https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz;
2023-04-14 20:51:52 +00:00
in
{
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services = {
# sonarr = {
# enable = true;
# openFirewall = true; # http://locahost:8989
# };
# prowlarr = {
# enable = true;
# openFirewall = true; # http://locahost:9696
# };
#blueman.enable = true;
#openvpn.restartAfterSleep = false;
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;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
printing.enable = true; # Enable CUPS to print documents.
2023-11-03 08:09:19 +00:00
printing.drivers = [ pkgs.brlaser ];
2023-04-14 20:51:52 +00:00
xserver = {
enable = true;
2023-11-03 08:09:19 +00:00
displayManager.defaultSession = "plasmawayland";
desktopManager.plasma5.enable = true;
displayManager.sddm.enable = true;
2023-11-03 08:09:19 +00:00
displayManager.sddm.enableHidpi = true;
2023-04-14 20:51:52 +00:00
};
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;
# access to unstable nixpkgs
2023-08-13 16:18:11 +00:00
# nixpkgs.config = {
# packageOverrides = pkgs: with pkgs; {
# unstable = import unstableTarball {
# config = config.nixpkgs.config;
# };
# };
# };
# 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; [
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions; [
2023-08-13 16:18:11 +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
rose-pine-gtk-theme
rose-pine-icon-theme
2023-04-14 20:51:52 +00:00
element-desktop
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
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
2024-02-11 16:46:51 +00:00
libsForQt5.bismuth
mixxx
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-11-03 08:09:19 +00:00
tdesktop # strange name for telegram client
2023-08-13 16:18:11 +00:00
thunderbird
2023-11-03 08:09:19 +00:00
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
'';
}