diff options
| author | Mike Vink <mike@pionative.com> | 2024-06-25 11:33:40 +0200 |
|---|---|---|
| committer | Mike Vink <mike@pionative.com> | 2024-06-25 11:33:40 +0200 |
| commit | c7cb36d521a8d2b9a2f87cc02ed5f8ba9df39656 (patch) | |
| tree | b132f7b2d31ec5c8ddb71b0a9bd91fa78ce32eed /profiles/graphical | |
| parent | bb0cb5b43f4c709bde7d4ea1c5a090a071b77d54 (diff) | |
first version with arm vm
Diffstat (limited to 'profiles/graphical')
| -rw-r--r-- | profiles/graphical/suckless.nix | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/profiles/graphical/suckless.nix b/profiles/graphical/suckless.nix new file mode 100644 index 0000000..b918494 --- /dev/null +++ b/profiles/graphical/suckless.nix @@ -0,0 +1,92 @@ +{ + self, + config, + pkgs, + lib, + machine, + ... +}: with lib; mkIf (!machine.isDarwin) { + nixpkgs.overlays = [(import (self + "/overlays/suckless.nix") {inherit pkgs; home = self;})]; + services.xserver.enable = true; + services.xserver.displayManager.startx.enable = true; + services.xserver.libinput.enable = true; + hm = { + xsession = { + enable = true; + initExtra = '' + ${pkgs.xorg.xset}/bin/xset r rate 230 30 + [ -z "$(lsusb | grep microdox)" ] && ${pkgs.xorg.setxkbmap}/bin/setxkbmap -option "ctrl:swapcaps" + ${pkgs.open-vm-tools}/bin/vmware-user-suid-wrapper + wal -R + dwm + ''; + }; + services.picom = { + enable = true; + activeOpacity = 0.99; + inactiveOpacity = 0.7; + opacityRules = [ + "100:class_g = 'Wfica'" + "100:class_g = 'dwm'" + "100:class_g = 'Zathura'" + "100:name *= 'Firefox'" + "100:name *= 'mpv'" + "100:name *= 'LibreWolf'" + "100:name *= 'Steam'" + "100:name *= 'Risk of Rain'" + "100:name *= 'KVM'" + ]; + settings = { + inactive-opacity-override = false; + frame-opacity = 1; + }; + }; + services.dunst = { + enable = true; + settings = { + global = { + monitor = 0; + follow = "keyboard"; + width = 370; + height = 350; + offset = "0x19"; + padding = 2; + horizontal_padding = 2; + transparency = 0; + font = "Monospace 12"; + format = "<b>%s</b>\\n%b"; + }; + urgency_low = { + background = "#1d2021"; + foreground = "#928374"; + timeout = 3; + }; + urgency_normal = { + foreground = "#ebdbb2"; + background = "#458588"; + timeout = 5; + }; + urgency_critical = { + background = "#1cc24d"; + foreground = "#ebdbb2"; + frame_color = "#fabd2f"; + timeout = 10; + }; + }; + }; + home.packages = with pkgs; [ + libnotify + sxiv + st + dwm + dwmblocks + pywal + inotify-tools + + (nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];}) + dmenu + librewolf + xclip + ]; + }; +} |
