GNOME configuration

This commit is contained in:
Daniel Langbein 2023-09-06 19:29:51 +02:00
parent b82100de24
commit 6eb422e4ee
5 changed files with 43 additions and 3 deletions

View File

@ -7,6 +7,7 @@ in
imports = [
(import "${home-manager}/nixos")
../../modules/base.home.nix
../../modules/gnome-config.home.nix
../../modules/gnome-extensions.home.nix
../../modules/git.home.nix
../../modules/zsh.home.nix

View File

@ -7,7 +7,9 @@ in
imports = [
(import "${home-manager}/nixos")
../../modules/base.home.nix
../../modules/gnome-config.home.nix
../../modules/gnome-extensions.home.nix
../../modules/gnome-fractional-scaling.home.nix
../../modules/git.home.nix
../../modules/zsh.home.nix
../../modules/nitrokey-ssh-gpg.home.nix

View File

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
# https://github.com/danieldk/nix-home/blob/master/home/cfg/desktop.nix
programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
dconf.settings = {
"org/gnome/settings-daemon/plugins/color" = {
night-light-enabled = true;
#night-light-temperature = "uint32 3700";
};
"org/gnome/mutter" = {
dynamic-workspaces = true;
workspaces-only-on-primary = true;
};
};
};
}

View File

@ -5,6 +5,8 @@
# https://the-empire.systems/nixos-gnome-settings-and-keyboard-shortcuts
# https://hoverbear.org/blog/declarative-gnome-configuration-in-nixos/
programs.dconf.enable = true;
users.users.yoda = {
packages = with pkgs.gnomeExtensions; [
caffeine
@ -12,8 +14,6 @@
];
};
programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
# TODO: Alternative
# home.packages = with pkgs.gnomeExtensions; [
@ -30,7 +30,7 @@
pkgs.gnomeExtensions.openweather.extensionUuid
];
# TODO: Alternative to the above
# "org/gnome/shell".enabled-extensions = map (extension: extension.extensionUuid) home.packages;
# enabled-extensions = map (extension: extension.extensionUuid) home.packages;
};
# Configure openweather extension.

View File

@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
# https://wiki.archlinux.org/title/HiDPI#Wayland
# Results in blurry font in non-Wayland applications :/
programs.dconf.enable = true;
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
dconf.settings = {
"org/gnome/mutter" = {
experimental-features = [ "scale-monitor-framebuffer" ];
};
};
};
}