mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 12:10:45 +02:00
refactor
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
isNixOS,
|
||||
userConfig,
|
||||
pkgs,
|
||||
...
|
||||
@@ -9,7 +8,7 @@
|
||||
{
|
||||
programs.ashell = {
|
||||
enable = true;
|
||||
package = lib.mkIf (!isNixOS) null;
|
||||
package = lib.mkIf (!userConfig.isNixOS) null;
|
||||
settings = {
|
||||
outputs = {
|
||||
Targets = [ userConfig.mainMonitor ];
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
pkgs,
|
||||
isNixOS,
|
||||
userConfig,
|
||||
...
|
||||
}:
|
||||
@@ -9,7 +8,7 @@
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
package =
|
||||
if isNixOS then pkgs.waybar else (pkgs.writeShellScriptBin "waybar" "exec /usr/bin/waybar \"$@\"");
|
||||
if userConfig.isNixOS then pkgs.waybar else (pkgs.writeShellScriptBin "waybar" "exec /usr/bin/waybar \"$@\"");
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
|
||||
Reference in New Issue
Block a user