From 36a8397c8b55bd15c394b8917d9d09a624991da3 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 20 Jul 2023 01:19:11 +0300 Subject: [PATCH] todo dwm for later --- config/dwm | 1 + hosts/sakotop/configuration.nix | 1 + modules/desktop/default.nix | 1 + modules/desktop/dwm/default.nix | 77 +++++++++++++++++++++++++++++++++ overlays/default.nix | 3 ++ 5 files changed, 83 insertions(+) create mode 160000 config/dwm create mode 100644 modules/desktop/dwm/default.nix diff --git a/config/dwm b/config/dwm new file mode 160000 index 00000000..e81f17d4 --- /dev/null +++ b/config/dwm @@ -0,0 +1 @@ +Subproject commit e81f17d4c196aaed6893fd4beed49991caa3e2a4 diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 80d09f4c..a2646b61 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -19,6 +19,7 @@ enable = true; polybar.enable = true; }; + dwm.enable = true; kde.enable = true; dunst.enable = true; browsers = { diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 7e2f9e15..5a0f5701 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -2,6 +2,7 @@ imports = [ ./kitty ./bspwm + ./dwm ./kde ./browsers ./apps diff --git a/modules/desktop/dwm/default.nix b/modules/desktop/dwm/default.nix new file mode 100644 index 00000000..582b999a --- /dev/null +++ b/modules/desktop/dwm/default.nix @@ -0,0 +1,77 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.dwm; +in +{ + options.modules.desktop.dwm = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + services.xserver = { + enable = true; + windowManager = { + bspwm.enable = true; + }; + displayManager = { + lightdm = { + enable = true; + greeters.gtk = { + enable = true; + theme = { + name = "vimix-dark-ruby"; + package = pkgs.vimix.gtk.themes; + }; + }; + }; + }; + libinput = { + mouse = { + accelProfile = "flat"; + }; + + touchpad = { + accelProfile = "flat"; + }; + }; + users.users.sako.packages = with pkgs; [ + rofi + # network + networkmanagerapplet + # brightness + brightnessctl + # gee tee k + vimix-gtk-themes + vimix-icon-theme + lxappearance + catppuccin-cursors.mochaDark + # screen shot (s) + flameshot + ]; + home-manager.users.sako = { pkgs , ...}: { + home.pointerCursor = { + name = "Catppuccin-Mocha-Dark"; + size = 16; + x11 = { + enable = true; + }; + gtk.enable = true; + package = pkgs.catppuccin-cursors.mochaDark; + }; + gtk = { + theme.name = "vimix-dark-ruby"; + iconTheme.name = "Vimix Ruby Dark"; + }; + xdg.configFile = { + bspwm = { + source = ../../../config/bspwm; + }; + sxhkd = { + source = ../../../config/sxhkd; + }; + }; + }; + }; + }; +} diff --git a/overlays/default.nix b/overlays/default.nix index ce38e765..2b5d274e 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -19,6 +19,9 @@ vimix-gtk-themes = prev.vimix-gtk-themes.override { themeVariants = [ "ruby" ]; }; + dwm = prev.dwm.overrideAttrs (old: { + src = ../config/dwm; + }); }; # When applied, the unstable nixpkgs set (declared in the flake inputs) will