This commit is contained in:
parent
679a090012
commit
8ca7b4c806
10 changed files with 44 additions and 64 deletions
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./dwm
|
||||
./gitea-actions-runner.nix
|
||||
./nixpad
|
||||
./podman.nix
|
||||
|
|
|
@ -1,57 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.dwm;
|
||||
in
|
||||
{
|
||||
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
dwm-status = {
|
||||
enable = true;
|
||||
|
||||
settings.order = [
|
||||
"audio"
|
||||
"battery"
|
||||
"network"
|
||||
"time"
|
||||
];
|
||||
};
|
||||
|
||||
xserver.windowManager.dwm.enable = true;
|
||||
};
|
||||
|
||||
systemd.user.services.dwm-status.serviceConfig.Restart = "on-failure";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
dmenu
|
||||
dmenu-bluetooth
|
||||
dunst
|
||||
networkmanager_dmenu
|
||||
poweralertd
|
||||
slock
|
||||
xdotool
|
||||
xwallpaper
|
||||
];
|
||||
|
||||
home-manager.users.opdavies =
|
||||
{ config, ... }:
|
||||
{
|
||||
home = {
|
||||
file."${config.home.sessionVariables.XINITRC}".source = ./xinitrc;
|
||||
|
||||
sessionVariables = {
|
||||
XINITRC = "${config.xdg.configHome}/X11/xinitrc";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
systemctl --user import-environment DISPLAY
|
||||
poweralertd -s &
|
||||
set-background &
|
||||
systemctl --user start dwm-status &
|
||||
|
||||
sxhkd &
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
gpg-connect-agent updatestartuptty /bye
|
||||
|
||||
exec dwm
|
Loading…
Add table
Add a link
Reference in a new issue