mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 01:42:55 +00:00
move gtk theme to firefox
This commit is contained in:
parent
4735cce26f
commit
4da5e381b2
@ -28,6 +28,7 @@
|
||||
name = "Victor Mono";
|
||||
};
|
||||
hostname = "nixos";
|
||||
gtkTheme = "Adwaita-dark";
|
||||
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
@ -35,7 +36,7 @@
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
gui = true;
|
||||
inherit user fullName font hostname;
|
||||
inherit user fullName font hostname gtkTheme;
|
||||
};
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
|
@ -1,12 +1,19 @@
|
||||
{ pkgs, lib, user, gui, ... }:
|
||||
{ pkgs, lib, user, gui, gtkTheme, ... }:
|
||||
|
||||
{
|
||||
config = lib.mkIf gui {
|
||||
home-manager.users.${user}.home.packages = [ pkgs.firefox ];
|
||||
home-manager.users.${user} = {
|
||||
home.packages = [ pkgs.firefox ];
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = { name = gtkTheme; };
|
||||
};
|
||||
};
|
||||
|
||||
# Required for setting GTK theme (for preferred-color-scheme in browser)
|
||||
services.dbus.packages = [ pkgs.dconf ];
|
||||
programs.dconf.enable = true;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -1,8 +1,4 @@
|
||||
{ pkgs, user, gui, ... }:
|
||||
|
||||
let gtkTheme = "Adwaita-dark";
|
||||
|
||||
in {
|
||||
{ pkgs, user, gui, gtkTheme, ... }: {
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver = {
|
||||
@ -29,10 +25,5 @@ in {
|
||||
xclip # Clipboard
|
||||
];
|
||||
|
||||
home-manager.users.${user}.gtk = {
|
||||
enable = true;
|
||||
theme = { name = gtkTheme; };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user