i3/desktop: Split out

This commit is contained in:
Geoffrey Frogeye 2024-01-12 23:52:53 +01:00
parent 2ad4bee0f9
commit d994dfb9fb
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
11 changed files with 161 additions and 94 deletions

View file

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> { config = { }; overlays = [ ]; }, ... }:
{ pkgs ? import <nixpkgs> { config = { }; overlays = [ ]; }, lib, config, ... }:
# Tried using pyproject.nix but mpd2 dependency wouldn't resolve,
# is called pyton-mpd2 on PyPi but mpd2 in nixpkgs.
let
@ -22,7 +22,7 @@ let
};
in
{
config = {
config = lib.mkIf config.frogeye.desktop.xorg {
xsession.windowManager.i3.config.bars = [ ];
programs.autorandr.hooks.postswitch = {
frobar = "${pkgs.systemd}/bin/systemctl --user restart frobar";