File tree Expand file tree Collapse file tree 2 files changed +35
-27
lines changed Expand file tree Collapse file tree 2 files changed +35
-27
lines changed Original file line number Diff line number Diff line change 4
4
config ,
5
5
...
6
6
} :
7
-
8
- let
9
- theme = pkgs . callPackage ./theme.nix {
10
- inherit ( config . lib . stylix ) colors ;
11
- inherit ( config . stylix ) inputs ;
12
- } ;
13
-
14
- in
15
7
{
16
8
options . stylix . targets . gnome . enable =
17
9
config . lib . stylix . mkEnableTarget "GNOME and GDM" true ;
34
26
# which will then download the pack regardless of its exclusion below.
35
27
environment . gnome . excludePackages = [ pkgs . gnome-backgrounds ] ;
36
28
37
- nixpkgs . overlays = [
38
- ( _ : super : {
39
- gnome-shell = super . gnome-shell . overrideAttrs ( oldAttrs : {
40
- # Themes are usually applied via an extension, but extensions are
41
- # not available on the login screen. The only way to change the
42
- # theme there is by replacing the default.
43
- postFixup =
44
- ( oldAttrs . postFixup or "" )
45
- + ''
46
- cp ${ theme } /share/gnome-shell/gnome-shell-theme.gresource \
47
- $out/share/gnome-shell/gnome-shell-theme.gresource
48
- '' ;
49
- patches = ( oldAttrs . patches or [ ] ) ++ [
50
- ./shell_remove_dark_mode.patch
51
- ] ;
52
- } ) ;
53
- } )
54
- ] ;
55
-
56
29
# Cursor settings are usually applied via Home Manager,
57
30
# but the login screen uses a separate database.
58
31
environment . systemPackages = lib . mkIf ( config . stylix . cursor != null ) [
Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ pkgs ,
4
+ config ,
5
+ options ,
6
+ ...
7
+ } :
8
+ let
9
+ theme = pkgs . callPackage ./theme.nix {
10
+ inherit ( config . lib . stylix ) colors ;
11
+ inherit ( config . stylix ) inputs ;
12
+ } ;
13
+ in
14
+ {
15
+ overlay =
16
+ lib . mkIf ( options . stylix . targets ? gnome && config . stylix . targets . gnome . enable )
17
+ (
18
+ _ : super : {
19
+ gnome-shell = super . gnome-shell . overrideAttrs ( oldAttrs : {
20
+ # Themes are usually applied via an extension, but extensions are
21
+ # not available on the login screen. The only way to change the
22
+ # theme there is by replacing the default.
23
+ postFixup =
24
+ ( oldAttrs . postFixup or "" )
25
+ + ''
26
+ cp ${ theme } /share/gnome-shell/gnome-shell-theme.gresource \
27
+ $out/share/gnome-shell/gnome-shell-theme.gresource
28
+ '' ;
29
+ patches = ( oldAttrs . patches or [ ] ) ++ [
30
+ ./shell_remove_dark_mode.patch
31
+ ] ;
32
+ } ) ;
33
+ }
34
+ ) ;
35
+ }
You can’t perform that action at this time.
0 commit comments