Skip to content

Commit

Permalink
gnome-text-editor: rename common module
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd committed Jan 6, 2025
1 parent aac9da1 commit ab59e20
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion modules/gnome-text-editor/hm.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ config, lib, ... }:

{
imports = [ ./gnome-text-editor.nix ];
imports = [ ./common.nix ];

config =
lib.mkIf
Expand Down
4 changes: 3 additions & 1 deletion modules/gnome-text-editor/nixos.nix
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
import ./gnome-text-editor.nix
{
imports = [ ./common.nix ];
}
19 changes: 19 additions & 0 deletions modules/gnome-text-editor/overlays.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ config, ... }:

let
style = config.lib.stylix.colors {
template = ../gedit/template.mustache;
extension = "xml";
};
in
[
(_: prev: {
gnome-text-editor = prev.gnome-text-editor.overrideAttrs (oldAttrs: {
postFixup =
(oldAttrs.postFixup or "")
+ ''
cp ${style} $out/share/gnome-text-editor/styles/stylix.xml
'';
});
})
]

0 comments on commit ab59e20

Please sign in to comment.