summaryrefslogtreecommitdiff
path: root/modules/graphical.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2022-05-25 19:27:42 +0200
committerGrigory Shipunov2022-05-25 19:27:42 +0200
commita9532469718f53912a66073dfae12a5bcf8e7ffa (patch)
treeb35755f1a07b3d9798f12d5329c83f97145b5800 /modules/graphical.nix
init
Diffstat (limited to 'modules/graphical.nix')
-rw-r--r--modules/graphical.nix130
1 files changed, 130 insertions, 0 deletions
diff --git a/modules/graphical.nix b/modules/graphical.nix
new file mode 100644
index 0000000..855c5b1
--- /dev/null
+++ b/modules/graphical.nix
@@ -0,0 +1,130 @@
+# General Desktop-related config
+{ config, pkgs, ... }:
+
+{
+ imports = [
+ ./basic-tools.nix
+ ./gnupg.nix
+ ];
+
+ environment.systemPackages = with pkgs; [
+ firefox-wayland
+ dino
+ alacritty
+ kitty
+ xclip
+ flameshot
+ wl-clipboard
+ brightnessctl
+ pulseaudio-ctl
+ feh
+ mpv
+ zathura
+ pulsemixer
+ screen-message
+ cmus
+ gtk-engine-murrine
+ gtk_engines
+ gsettings-desktop-schemas
+ pamixer
+ qbittorrent
+ ];
+
+ services.acpid.enable = true;
+ programs.light.enable = true;
+
+ #on the desktop, we need nice fonts ^^
+ fonts.fonts = with pkgs; [
+ dejavu_fonts
+ julia-mono
+ uw-ttyp0
+ gohufont
+ monoid
+ spleen
+ terminus_font
+ iosevka
+ creep
+ corefonts
+ dina-font
+ fira
+ fira-code
+ fira-code-symbols
+ fira-mono
+ hack-font
+ liberation_ttf
+ noto-fonts
+ noto-fonts-cjk
+ noto-fonts-emoji
+ noto-fonts-extra
+ proggyfonts
+ symbola
+ open-sans
+ twemoji-color-font
+ twitter-color-emoji
+ ];
+
+ fonts.enableDefaultFonts = true;
+ fonts.fontconfig = {
+ enable = true;
+ allowBitmaps = true;
+ useEmbeddedBitmaps = true;
+ defaultFonts.emoji = [
+ "Twitter Color Emoji"
+ "Noto Color Emoji"
+ ];
+ };
+
+ # Enable sound.
+ security.rtkit.enable = true;
+ services.pipewire = {
+ enable = true;
+ alsa.enable = true;
+ alsa.support32Bit = true;
+ pulse.enable = true;
+ };
+
+ hardware.bluetooth = {
+ enable = true;
+ package = pkgs.bluezFull;
+ };
+
+ services.blueman.enable = true;
+
+ services.xserver.enable = false;
+ programs.xwayland.enable = true;
+ programs.sway = {
+ enable = true;
+ wrapperFeatures.gtk = true;
+ extraPackages = with pkgs; [
+ swaylock
+ swayidle
+ wl-clipboard
+ mako
+ alacritty
+ wofi
+ waybar
+ gnome3.adwaita-icon-theme
+ i3status-rust
+ ];
+ };
+ environment.sessionVariables = { GTK_THEME = "Adwaita:dark"; };
+ environment.loginShellInit = ''
+ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
+ exec sway
+ fi
+ '';
+ xdg.portal.wlr.enable = true;
+
+ nix = {
+ binaryCaches = [
+ "https://dump-dvb.cachix.org"
+ ];
+ binaryCachePublicKeys = [
+ "dump-dvb.cachix.org-1:+Dq7gqpQG4YlLA2X3xJsG1v3BrlUGGpVtUKWk0dTyUU="
+ ];
+ };
+ programs.zsh.vteIntegration = true;
+ programs.bash.vteIntegration = true;
+ services.upower.enable = true;
+
+}