mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
workflows/a-happy-gnome: update and refactor module
This commit is contained in:
parent
72272d9d01
commit
6fc14f8358
@ -1,14 +1,13 @@
|
|||||||
{ config, options, lib, pkgs, ... }@attrs:
|
{ config, options, lib, pkgs, ... }@attrs:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "a-happy-gnome";
|
|
||||||
cfg = config.workflows.workflows.a-happy-gnome;
|
cfg = config.workflows.workflows.a-happy-gnome;
|
||||||
|
|
||||||
enabledExtensions = pkgs.writeTextFile {
|
enabledExtensions = pkgs.writeTextFile {
|
||||||
name = "a-happy-gnome-extensions";
|
name = "a-happy-gnome-extensions";
|
||||||
text = ''
|
text = ''
|
||||||
[org/gnome/shell]
|
[org/gnome/shell]
|
||||||
enabled-extensions=[${ lib.concatStringsSep ", " (lib.concatMap (e: [ ("'" + e.extensionUuid + "'") ]) cfg.shellExtensions) }]
|
enabled-extensions=[${ lib.concatStringsSep ", " (lib.concatMap (e: [ ("'${e.extensionUuid}'") ]) cfg.shellExtensions) }]
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -26,8 +25,8 @@ in
|
|||||||
type = with lib.types; listOf package;
|
type = with lib.types; listOf package;
|
||||||
description = ''
|
description = ''
|
||||||
A list of GNOME Shell extensions to be included. Take note the package
|
A list of GNOME Shell extensions to be included. Take note the package
|
||||||
contain `passthru.extensionUuid` to be used for
|
contain `passthru.extensionUuid` to be used for enabling the
|
||||||
enabling the extensions.
|
extensions.
|
||||||
'';
|
'';
|
||||||
default = with pkgs.gnomeExtensions; [
|
default = with pkgs.gnomeExtensions; [
|
||||||
alphabetical-app-grid
|
alphabetical-app-grid
|
||||||
|
Loading…
Reference in New Issue
Block a user