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 = '' c o n f i g / h o m e / m r f l o s / N e x t c l o u d / v p n \ A R N / 2 0 2 3 / v p n 5 1 0 . c o n f '' ;
2023-07-16 09:44:31 +00:00
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 = " p l a s m a w a y l a n d " ;
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 = " r o s e - p i n e " ;
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 = {
2023-04-15 07:45:56 +00:00
chromium = {
enable = true ;
homepageLocation = " a b o u t : b l a n k " ;
2023-04-14 20:51:52 +00:00
2023-04-15 07:45:56 +00:00
extensions = [
" p e j k o k f f k a p o l f f f c g b m d m h d e l a n o a i h " # Unsplash instant
" c j p a l h d l n b p a f i a m e j d n h c p h j b k e i a g m " # uBlock Origin
" g f a p c e j d o g h p o i d k f o d o i i f f a a i b p a e m " # Dracula theme
2023-04-18 11:48:52 +00:00
" j b b p l n p k j m m e e b j p i j f e d l g c d i l o c o f h " # wave a11y
2023-04-15 07:45:56 +00:00
] ;
extraOpts = {
SpellcheckEnabled = true ;
SpellcheckLanguage = [
" f r - F R "
" e n - G B "
" r u "
] ;
} ;
} ;
2023-07-16 09:44:31 +00:00
droidcam . enable = true ;
firefox . enable = true ;
2024-09-05 12:39:17 +00:00
firefox . languagePacks = [ " f r " ] ;
2024-09-06 19:36:37 +00:00
#hyprland.enable = true;
2023-11-03 08:09:19 +00:00
2023-07-16 09:44:31 +00:00
ssh . askPassword = pkgs . lib . mkForce " ${ pkgs . ksshaskpass . out } / b i n / k s s h a s k p a s s " ; # conflict between kde and gnome cf. https://github.com/NixOS/nixpkgs/issues/75867
ssh . startAgent = true ;
2024-09-05 12:39:17 +00:00
2023-07-16 09:44:31 +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-15 07:45:56 +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
2023-11-29 07:17:07 +00:00
# no kde bloat
2023-06-19 12:52:25 +00:00
environment . plasma5 . excludePackages = with pkgs . libsForQt5 ; [
2023-07-16 09:44:31 +00:00
baloo
2023-06-19 12:52:25 +00:00
elisa
khelpcenter
2023-07-16 09:44:31 +00:00
oxygen
2023-06-19 12:52:25 +00:00
plasma-browser-integration
] ;
2023-11-29 07:17:07 +00:00
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 = " v s c o d e - t w i g - l a n g u a g e - 2 " ;
publisher = " m b l o d e " ;
version = " 0 . 9 . 2 " ;
sha256 = " 1 1 3 w 2 i i s 4 z i 4 z 3 s q c 3 v d 2 a p y r h 5 2 h b h 2 g v m x j r 5 y v j p m r s k s c l b d " ;
}
] ;
2023-04-14 20:51:52 +00:00
} )
2023-04-15 07:45:56 +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
2023-07-16 09:44:31 +00:00
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
2023-05-11 14:03:37 +00:00
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
2023-05-11 14:03:37 +00:00
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
2023-07-16 09:44:31 +00:00
mixxx
2024-03-16 17:14:36 +00:00
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
2024-03-16 17:14:36 +00:00
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 = 2 0 s
'' ;
}