diff --git a/home.nix b/home.nix index 25f7e8f..d55a15e 100644 --- a/home.nix +++ b/home.nix @@ -2,6 +2,9 @@ with lib.hm.gvariant; { + imports = [ + ./modules/dconf.nix + ]; # Home Manager needs a bit of information about you and the # paths it should manage. home.username = "mir"; @@ -99,60 +102,7 @@ with lib.hm.gvariant; # source = inputs.emacs-config; # recursive = true; # }; - home.file.".face".source = builtins.fetchurl { - url = "https://marq42.xyz/rena.webp"; - sha256 = "10x3qvfdp79fmbbi7ljnqx419xmwpiyyr4pfxhynh3xq7fd0laz2"; - }; - # programs.dconf.enable = true; - home.file.".local/share/backgrounds/mojave.jpg".source = builtins.fetchurl { - url = "https://www.teahub.io/photos/full/154-1542362_mac-os-mojave-screenshot.jpg"; - sha256 = "0vrcn44aibdsl1hc6n0jbp0znpwhcb4hyhbzs5690i1nrapcmyka"; - }; - dconf.settings = { - "org/gnome/shell" = { - "favorite-apps" = [ - "org.gnome.Console.desktop" - "firefox.desktop" - "emacs.desktop" - "org.gnome.Settings.desktop" - "org.gnome.Nautilus.desktop" - "btop.desktop" - ]; - }; - "org/gnome/desktop/interface" = { - "color-scheme" = "prefer-dark"; - }; - "org/gnome/mutter" = { - "edge-tiling" = true; - }; - "org/gnome/desktop/background" = { - "picture-uri" = "file:///home/mir/.local/share/backgrounds/mojave.jpg"; - "picture-uri-dark" = "file:///home/mir/.local/share/backgrounds/mojave.jpg"; - }; - "org/gnome/desktop/screensaver" = { - "picture-uri" = "file:///home/mir/.local/share/backgrounds/mojave.jpg"; - "picture-uri-dark" = "file:///home/mir/.local/share/backgrounds/mojave.jpg"; - }; - "org/gnome/desktop/input-sources" = { - "xkb-options" = [ "caps:escape" ]; - }; - "org/gnome/desktop/wm/preferences" = { - "focus-mode" = "sloppy"; - }; - "org/gnome/settings-daemon/plugins/power" = { - "idle-dim" = false; - "sleep-inactive-ac-type" = "nothing"; - }; - "org/gnome/gnome-system-monitor" = { - "current-tab" = "resources"; - }; - "org/gnome/desktop/interface" = { - "show-battery-percentage" = true; - }; - "org/gnome/desktop/session" = { - "idle-delay" = mkUint32 0; - }; - }; + programs.hyfetch = { enable = true; settings = { diff --git a/modules/dconf.nix b/modules/dconf.nix new file mode 100644 index 0000000..32f3301 --- /dev/null +++ b/modules/dconf.nix @@ -0,0 +1,57 @@ +{ config, lib, pkgs, ... }: +{ + home.file.".face".source = builtins.fetchurl { + url = "https://marq42.xyz/rena.webp"; + sha256 = "10x3qvfdp79fmbbi7ljnqx419xmwpiyyr4pfxhynh3xq7fd0laz2"; + }; + # programs.dconf.enable = true; + home.file.".local/share/backgrounds/mojave.jpg".source = builtins.fetchurl { + url = "https://www.teahub.io/photos/full/154-1542362_mac-os-mojave-screenshot.jpg"; + sha256 = "0vrcn44aibdsl1hc6n0jbp0znpwhcb4hyhbzs5690i1nrapcmyka"; + }; + dconf.settings = { + "org/gnome/shell" = { + "favorite-apps" = [ + "org.gnome.Console.desktop" + "firefox.desktop" + "emacs.desktop" + "org.gnome.Settings.desktop" + "org.gnome.Nautilus.desktop" + "btop.desktop" + ]; + }; + "org/gnome/desktop/interface" = { + "color-scheme" = "prefer-dark"; + }; + "org/gnome/mutter" = { + "edge-tiling" = true; + }; + "org/gnome/desktop/background" = { + "picture-uri" = "file:///home/mir/.local/share/backgrounds/mojave.jpg"; + "picture-uri-dark" = "file:///home/mir/.local/share/backgrounds/mojave.jpg"; + }; + "org/gnome/desktop/screensaver" = { + "picture-uri" = "file:///home/mir/.local/share/backgrounds/mojave.jpg"; + "picture-uri-dark" = "file:///home/mir/.local/share/backgrounds/mojave.jpg"; + }; + "org/gnome/desktop/input-sources" = { + "xkb-options" = [ "caps:escape" ]; + }; + "org/gnome/desktop/wm/preferences" = { + "focus-mode" = "sloppy"; + }; + "org/gnome/settings-daemon/plugins/power" = { + "idle-dim" = false; + "sleep-inactive-ac-type" = "nothing"; + }; + "org/gnome/gnome-system-monitor" = { + "current-tab" = "resources"; + }; + "org/gnome/desktop/interface" = { + "show-battery-percentage" = true; + }; + "org/gnome/desktop/session" = { + "idle-delay" = mkUint32 0; + }; + }; +}