From 382936127bd7668cfbb8dda8a3823d0905c894a7 Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Wed, 29 Nov 2023 10:17:07 +0300 Subject: [PATCH] refact(config) : put cli stuff in console.nix --- modules/console.nix | 2 ++ modules/desktop.nix | 27 +++++++++++++++------------ modules/home-config.nix | 22 ++++++++++++++++++++++ 3 files changed, 39 insertions(+), 12 deletions(-) diff --git a/modules/console.nix b/modules/console.nix index 5e683b9..2f9a301 100644 --- a/modules/console.nix +++ b/modules/console.nix @@ -57,6 +57,7 @@ mc micro mosh + mpd neofetch pandoc pass @@ -70,6 +71,7 @@ wget whois wirelesstools + yt-dlp zellij zola zsh-autosuggestions diff --git a/modules/desktop.nix b/modules/desktop.nix index 68c0e5e..c4648a7 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -11,6 +11,15 @@ in 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; openvpn.servers = { @@ -36,7 +45,6 @@ in xserver = { enable = true; - #desktopManager.gnome.enable = true; displayManager.defaultSession = "plasmawayland"; desktopManager.plasma5.enable = true; displayManager.sddm.enable = true; @@ -44,12 +52,6 @@ in }; dbus.enable = true; }; - # xdg.portal = { - # enable = true; - # wlr.enable = true; - # # gtk portal needed to make gtk apps happy - # extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; - # }; programs = { chromium = { @@ -72,13 +74,11 @@ in ]; }; }; - # dconf.enable = true; droidcam.enable = true; firefox.enable = true; firefox.languagePacks = ["fr"]; hyprland.enable = true; - #kdeconnect.enable = true; 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; @@ -103,11 +103,13 @@ in export _JAVA_AWT_WM_NONREPARENTING=1 export MOZ_ENABLE_WAYLAND=1 ''; - }; + }; }; # Allow unfree packages nixpkgs.config.allowUnfree = true; + + # access to unstable nixpkgs # nixpkgs.config = { # packageOverrides = pkgs: with pkgs; { # unstable = import unstableTarball { @@ -116,6 +118,7 @@ in # }; # }; + # no kde bloat environment.plasma5.excludePackages = with pkgs.libsForQt5; [ baloo elisa @@ -124,6 +127,7 @@ in oxygen plasma-browser-integration ]; + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ @@ -174,11 +178,11 @@ in kitty-themes latte-dock libreoffice-qt + librewolf libsForQt5.ark libsForQt5.bismuth #mattermost-desktop mixxx - mpd nextcloud-client obsidian signal-desktop @@ -192,7 +196,6 @@ in wofi mako # notification system developed by swaywm maintainer wdisplays # tool to configure displays - yt-dlp ]; # Do not restart the display manager automatically diff --git a/modules/home-config.nix b/modules/home-config.nix index 30bb863..22a9811 100644 --- a/modules/home-config.nix +++ b/modules/home-config.nix @@ -37,6 +37,28 @@ tls.useStartTls = true; }; }; + "mrflos@mrflos.pw" = { + realName = "Florian Schmitt"; + userName = "mrflos"; + address = "mrflos@mrflos.pw"; + + primary = false; + thunderbird = { + enable = true; + }; + imap = { + host = "mrflos.pw"; + port = 993; + tls.enable = true; + tls.useStartTls = true; + }; + + smtp = { + host = "mrflos.pw"; + port = 587; + tls.useStartTls = true; + }; + }; "contact@yeswiki.pro" = { realName = "YesWiki.pro"; userName = "contact@yeswiki.pro";