home | sway - fix logic for sway config
This commit is contained in:
parent
588184d080
commit
4517857d08
1 changed files with 52 additions and 50 deletions
|
|
@ -1,11 +1,13 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
lib.mkIf networking.hostName == "pocket2" then { source = files/sway/pocket2; }
|
||||
lib.mkIf networking.hostName != "pocket2" then { source = files/sway/default; }
|
||||
|
||||
in
|
||||
{ config, pkgs, lib, ... }:
|
||||
with config;
|
||||
{
|
||||
xdg.configFile."sway/config".source = source;
|
||||
xdg.configFile =
|
||||
{
|
||||
"sway/config".source =
|
||||
if (builtins.getEnv "HOSTNAME_SHORT" == "pocket2")
|
||||
then files/sway/pocket2
|
||||
else files/sway/default;
|
||||
};
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue