Merge branch 'main' of github.com:bloxx12/nichts

This commit is contained in:
LarsZauberer 2024-04-28 12:15:37 +02:00
commit 23f58b8527
5 changed files with 35 additions and 13 deletions

View file

@ -0,0 +1,23 @@
{ pkgs, lib, config, callPackage, ... }:
with lib; let
username = config.modules.other.system.username;
cfg = config.modules.programs.awesome;
in {
options.modules.programs.dwm.enable = mkEnableOption "awesome";
config = mkIf cfg.enable {
services.xserver = {
enable = true;
layout = "de, de";
xkbVariant = ",neo ";
xkbOptions = "grp:alt_space_toggle";
windowManager.awesome = {
enable = true;
};
displayManager = {
sddm.enable = true;
setupCommands = "${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1";
};
};
};
}

View file

@ -56,6 +56,7 @@
mpv.enable = true;
kitty.enable = true;
dwm.enable = true;
awesome.enable = true;
newsboat.enable = true;
#git = {
# enable = true;

View file

@ -6,6 +6,7 @@ _: {
./profile.nix
./i3
./dwm/dwm.nix
./awesome/awesome.nix
];
}

View file

@ -1,9 +1,9 @@
{ pkgs, lib, config, callPackage, ... }:
with lib; let
username = config.modules.other.system.username;
cfg = config.modules.programs.dwm;
cfg = config.modules.programs.awesome;
in {
options.modules.programs.dwm.enable = mkEnableOption "dwm";
options.modules.programs.awesome.enable = mkEnableOption "awesome";
config = mkIf cfg.enable {
services.xserver = {
@ -11,7 +11,7 @@ in {
layout = "de, de";
xkbVariant = ",neo ";
xkbOptions = "grp:alt_space_toggle";
windowManager.dwm = {
windowManager.awesome= {
enable = true;
};
displayManager = {
@ -19,14 +19,5 @@ in {
setupCommands = "${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1";
};
};
nixpkgs.overlays = [
(final: prev: {
dwm = prev.dwm.overrideAttrs (old: {src = ./dwm-6.5;});
dmenu = prev.dmenu.overrideAttrs (old: {src = ./dmenu-5.3;});
})
];
environment.systemPackages = with pkgs; [
# (dmenu.overrideAttrs (oldAttrs: rec { src = ./dmenu-5.3; }))
];
};
}

View file

@ -6,9 +6,11 @@ in {
environment.systemPackages = with pkgs; [
alacritty
alsa-utils
android-tools
asciinema
bibata-cursors
blanket
blugon
dig
dmenu
easyeffects
@ -47,15 +49,16 @@ in {
networkmanagerapplet
nextcloud-client
nicotine-plus
nitrogen
pamixer
pavucontrol
picom
pcmanfm
pdfarranger
pfetch
playerctl
polkit
python3
python311Packages.pygame
qbittorrent
ripgrep
rustdesk
@ -65,9 +68,11 @@ in {
signal-desktop-beta
smartmontools
spotube
steam
strawberry
telegram-desktop
texliveFull
trilium-desktop
thunderbird
tor-browser-bundle-bin
trash-cli
@ -84,6 +89,7 @@ in {
xorg.libX11.dev
xorg.libXft
xorg.libXinerama
xournalpp
yt-dlp
zathura
zip