phone: Move dconf config to dconf module

This commit is contained in:
Donovan Glover 2024-09-08 19:09:10 -04:00
parent f8876167f0
commit 58e227efc0
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 69 additions and 63 deletions

68
home/dconf.nix Normal file
View File

@ -0,0 +1,68 @@
{ pkgs, lib, ... }:
let
inherit (lib.gvariant) mkTuple mkUint32;
in
{
dconf.settings = {
"sm/puri/phosh" = {
app-filter-mode = [ ];
enable-suspend = true;
favorites = [
"org.gnome.Calls.desktop"
"sm.puri.Chatty.desktop"
"kitty.desktop"
"librewolf.desktop"
];
};
"sm/puri/phosh/lockscreen" = {
shuffle-keypad = true;
};
"sm/puri/phosh/plugins" = {
quick-settings = [
"night-light-quick-setting"
"caffeine-quick-setting"
];
};
"org/gnome/desktop/interface" = {
show-battery-percentage = true;
};
"org/postmarketos/megapixels" = {
save-raw = false;
postprocessor = "${pkgs.megapixels}/share/megapixels/postprocess.sh";
};
"org/gnome/desktop/session" = {
idle-delay = mkUint32 60;
};
"org/gnome/desktop/input-sources" = {
sources = [
(mkTuple [
"xkb"
"us"
])
(mkTuple [
"xkb"
"jp+kana"
])
];
};
"org/gnome/eog/ui" = {
image-gallery = true;
sidebar = false;
};
"org/gnome/settings-daemon/plugins/power" = {
sleep-inactive-ac-type = "nothing";
sleep-inactive-battery-type = "suspend";
};
};
}

View File

@ -8,7 +8,6 @@
let let
inherit (lib) mkIf mkForce; inherit (lib) mkIf mkForce;
inherit (lib.gvariant) mkTuple mkUint32;
inherit (config.modules.system) username; inherit (config.modules.system) username;
inherit (builtins) attrValues; inherit (builtins) attrValues;
@ -32,6 +31,7 @@ in
home-manager.sharedModules = attrValues { home-manager.sharedModules = attrValues {
inherit (self.homeModules) inherit (self.homeModules)
dconf
eza eza
fish fish
git git
@ -102,68 +102,6 @@ in
videos = mkForce "/home/${username}"; videos = mkForce "/home/${username}";
}; };
}; };
dconf.settings = {
"sm/puri/phosh" = {
app-filter-mode = [ ];
enable-suspend = true;
favorites = [
"org.gnome.Calls.desktop"
"sm.puri.Chatty.desktop"
"kitty.desktop"
"librewolf.desktop"
];
};
"sm/puri/phosh/lockscreen" = {
shuffle-keypad = true;
};
"sm/puri/phosh/plugins" = {
quick-settings = [
"night-light-quick-setting"
"caffeine-quick-setting"
];
};
"org/gnome/desktop/interface" = {
show-battery-percentage = true;
};
"org/postmarketos/megapixels" = {
save-raw = false;
postprocessor = "${pkgs.megapixels}/share/megapixels/postprocess.sh";
};
"org/gnome/desktop/session" = {
idle-delay = mkUint32 60;
};
"org/gnome/desktop/input-sources" = {
sources = [
(mkTuple [
"xkb"
"us"
])
(mkTuple [
"xkb"
"jp+kana"
])
];
};
"org/gnome/eog/ui" = {
image-gallery = true;
sidebar = false;
};
"org/gnome/settings-daemon/plugins/power" = {
sleep-inactive-ac-type = "nothing";
sleep-inactive-battery-type = "suspend";
};
};
}; };
}; };