Manage background with gnome settings
This commit is contained in:
parent
71deaf21a9
commit
2de7a0a1ad
7 changed files with 65 additions and 8 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -175,11 +175,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1718788307,
|
||||
"narHash": "sha256-SqiOz0sljM0GjyQEVinPXQxaGcbOXw5OgpCWGPgh/vo=",
|
||||
"lastModified": 1720734513,
|
||||
"narHash": "sha256-neWQ8eNtLTd+YMesb7WjKl1SVCbDyCm46LUgP/g/hdo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "d7830d05421d0ced83a0f007900898bdcaf2a2ca",
|
||||
"rev": "90ae324e2c56af10f20549ab72014804a3064c7f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
nebula
|
||||
traceroute # for debugging
|
||||
];
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 4242 ];
|
||||
|
|
21
hosts/_common/components/plasma_wayland.nix
Normal file
21
hosts/_common/components/plasma_wayland.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.gdm = {
|
||||
enable = true;
|
||||
autoSuspend = false;
|
||||
wayland = true;
|
||||
};
|
||||
displayManager.defaultSession = "plasma";
|
||||
displayManager.sddm.wayland.enable = true;
|
||||
desktopManager.plasma6 = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
xclip
|
||||
];
|
||||
}
|
||||
|
||||
|
19
hosts/_common/components/plasma_xorg.nix
Normal file
19
hosts/_common/components/plasma_xorg.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.gdm = {
|
||||
enable = true;
|
||||
autoSuspend = false;
|
||||
wayland = false;
|
||||
};
|
||||
displayManager.defaultSession = "plasmax11";
|
||||
desktopManager.plasma6 = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
xclip
|
||||
];
|
||||
}
|
||||
|
|
@ -1,14 +1,19 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
pkgs,
|
||||
settings,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib.hm.gvariant;
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# use `dconf dump /` before and after and diff the files for easy editing of dconf below
|
||||
# > `dconf dump / > /tmp/dconf_dump_start && watch -n0.5 'dconf dump / > /tmp/dconf_dump_current && diff --color /tmp/dconf_dump_start /tmp/dconf_dump_current -U12'`
|
||||
# > `dconf dump / > /tmp/dconf_dump_start && watch -n0.5 "dconf dump / > /tmp/dconf_dump_current && diff --color /tmp/dconf_dump_start /tmp/dconf_dump_current -U12"`
|
||||
# OR (Must be logged into user directly, no SU to user will work): `dconf watch /`
|
||||
# OR get the exact converted config from `dconf dump / | dconf2nix | less` and search with forward slash
|
||||
# gnome.dconf-editor
|
||||
# gnomeExtensions.workspace-switch-wraparound
|
||||
#gnomeExtensions.forge # probably don't need on this on tiny laptop but may explore this instead of sway for my desktop
|
||||
#gnomeExtensions.forge # probably don"t need on this on tiny laptop but may explore this instead of sway for my desktop
|
||||
];
|
||||
|
||||
dconf = {
|
||||
|
@ -101,9 +106,20 @@ with lib.hm.gvariant;
|
|||
idle-brightness = 15;
|
||||
power-saver-profile-on-low-battery = false;
|
||||
};
|
||||
"org/gnome/desktop/background" = {
|
||||
color-shading-type = "solid";
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file://" + (settings.usersDir + "/_common/components/black.png");
|
||||
picture-uri-dark = "file://" + (settings.usersDir + "/_common/components/black.png");
|
||||
primary-color = "#000000000000";
|
||||
secondary-color = "#000000000000";
|
||||
};
|
||||
"org/gnome/desktop/screensaver" = {
|
||||
lock-enabled = false;
|
||||
idle-activation-enabled = false;
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file://" + (settings.usersDir + "/_common/components/black.png");
|
||||
picture-uri-dark = "file://" + (settings.usersDir + "/_common/components/black.png");
|
||||
};
|
||||
"org/gnome/desktop/applications/terminal" = {
|
||||
exec = "alacritty";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue