more modules and move stuff to modules

This commit is contained in:
twoneis 2024-07-23 23:42:50 +02:00
parent 8fd7302ace
commit 38949ee1b7
7 changed files with 80 additions and 55 deletions

View file

@ -1,10 +1,16 @@
{ inputs, lib, config, pkgs, ... }: {
{ lib, config, pkgs, ... }: let
inherit (lib) mkIf;
inherit (config) withNiri username;
in {
imports = [
./xwl-satellite.service.nix
];
config = lib.mkIf config.withNiri {
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
config = mkIf withNiri {
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
programs.niri = {
enable = true;
@ -16,7 +22,7 @@
lidSwitch = "suspend";
};
home-manager.users.${config.username} = {
home-manager.users.${username} = {
home.packages = with pkgs; [
brightnessctl
swaybg