mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 08:45:09 +01:00
phone: Move dconf config to dconf module
This commit is contained in:
parent
f8876167f0
commit
58e227efc0
68
home/dconf.nix
Normal file
68
home/dconf.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
@ -8,7 +8,6 @@
|
||||
|
||||
let
|
||||
inherit (lib) mkIf mkForce;
|
||||
inherit (lib.gvariant) mkTuple mkUint32;
|
||||
inherit (config.modules.system) username;
|
||||
inherit (builtins) attrValues;
|
||||
|
||||
@ -32,6 +31,7 @@ in
|
||||
|
||||
home-manager.sharedModules = attrValues {
|
||||
inherit (self.homeModules)
|
||||
dconf
|
||||
eza
|
||||
fish
|
||||
git
|
||||
@ -102,68 +102,6 @@ in
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user