From 4034f70392bda310529469cda343006fb1da4a9f Mon Sep 17 00:00:00 2001 From: Don Harper Date: Thu, 18 Apr 2024 22:57:57 -0500 Subject: [PATCH] sway | Custom config per host! --- home/gui/sway.nix | 25 +++---------------------- hosts/loki/default.nix | 2 +- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/home/gui/sway.nix b/home/gui/sway.nix index 88580cd..71bb25f 100644 --- a/home/gui/sway.nix +++ b/home/gui/sway.nix @@ -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; diff --git a/hosts/loki/default.nix b/hosts/loki/default.nix index c1378c2..d02aa12 100644 --- a/hosts/loki/default.nix +++ b/hosts/loki/default.nix @@ -1,4 +1,4 @@ -{ inputs, outputs, ... }: +{ inputs, outputs, lib, config, pkgs, ... }: { imports =