sway | Custom config per host!

This commit is contained in:
Don Harper 2024-04-18 22:57:57 -05:00
parent c432d896de
commit 4034f70392
2 changed files with 4 additions and 23 deletions

View file

@ -1,27 +1,7 @@
{ inputs, pkgs, hostname, outputs, ... }:
# let
# hostname = config.networking.hostName;
# in
{ inputs, pkgs, hostname, outputs, osConfig, ... }:
{
xdg.configFile."sway/config".source = files/sway/default;
# xdg.configFile."sway/config".source = files/sway/${inputs.networking.hostName};
#xdg.configFile."sway/config".source = {hostname ? "default"}: ./files/sway/${hostname};
# xdg.configFile."sway/config".source = if builtins.pathExists ./files/sway/${inputs.networking.hostName} then ./files/sway/${inputs.networking.hostName} else ./files/sway/default ;
xdg.configFile."sway/config".source = ./files/sway/${osConfig.networking.hostName};
#xdg.configFile."sway/config".source = files/sway/default;
# services.wayland-pipewire-idle-inhibit = {
# enable = true;
# systemdTarget = "sway-session.target";
# settings = {
# verbosity = "INFO";
# media_minimum_duration = 10;
# sink_whitelist = [
# ];
# node_blacklist = [
# { media_class = "[Ss]onixd"; }
# ];
# };
# };
# services = {
# swayidle = {
# enable = true;
@ -35,6 +15,7 @@
# ];
# };
# };
programs = {
swaylock = {
enable = true;

View file

@ -1,4 +1,4 @@
{ inputs, outputs, ... }:
{ inputs, outputs, lib, config, pkgs, ... }:
{
imports =