mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
GNOME configuration
This commit is contained in:
parent
b82100de24
commit
6eb422e4ee
@ -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
|
||||
|
@ -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
|
||||
|
21
modules/gnome-config.home.nix
Normal file
21
modules/gnome-config.home.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -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.
|
||||
|
16
modules/gnome-fractional-scaling.home.nix
Normal file
16
modules/gnome-fractional-scaling.home.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user