Working on reshuffling
This commit is contained in:
+8
-1
@@ -1124,7 +1124,6 @@ in
|
|||||||
** =generated/modules/desktop/waybar.nix=
|
** =generated/modules/desktop/waybar.nix=
|
||||||
This file installs and configures waybar
|
This file installs and configures waybar
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/desktop/waybar.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/modules/desktop/waybar.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
# waybar.nix
|
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@@ -1138,8 +1137,16 @@ let
|
|||||||
enableWaybar = true;
|
enableWaybar = true;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# Declare a top-level option
|
||||||
|
options.myApps = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf lib.types.any;
|
||||||
|
default = {};
|
||||||
|
description = "Top-level collection of custom apps";
|
||||||
|
};
|
||||||
|
|
||||||
options.enableWaybar = lib.mkEnableOption "Enable Waybar status bar";
|
options.enableWaybar = lib.mkEnableOption "Enable Waybar status bar";
|
||||||
|
|
||||||
|
# Everything goes under config safely
|
||||||
config = lib.mkIf enableWaybar {
|
config = lib.mkIf enableWaybar {
|
||||||
myApps = {
|
myApps = {
|
||||||
waybar = {
|
waybar = {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# waybar.nix
|
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@@ -12,8 +11,16 @@ let
|
|||||||
enableWaybar = true;
|
enableWaybar = true;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# Declare a top-level option
|
||||||
|
options.myApps = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf lib.types.any;
|
||||||
|
default = {};
|
||||||
|
description = "Top-level collection of custom apps";
|
||||||
|
};
|
||||||
|
|
||||||
options.enableWaybar = lib.mkEnableOption "Enable Waybar status bar";
|
options.enableWaybar = lib.mkEnableOption "Enable Waybar status bar";
|
||||||
|
|
||||||
|
# Everything goes under config safely
|
||||||
config = lib.mkIf enableWaybar {
|
config = lib.mkIf enableWaybar {
|
||||||
myApps = {
|
myApps = {
|
||||||
waybar = {
|
waybar = {
|
||||||
|
|||||||
Reference in New Issue
Block a user