migrate home options
Some checks failed
nix-build / default-build (push) Has been cancelled
nix-build / fallarbor-build (push) Has been cancelled
nix-build / lavaridge-build (push) Has been cancelled
nix-build / mauville-build (push) Has been cancelled
nix-build / petalburg-build (push) Has been cancelled
nix-build / rustboro-build (push) Has been cancelled
nix-check / fmt-check (push) Has been cancelled
nix-check / eval-check (push) Has been cancelled

This commit is contained in:
Aly Raffauf 2024-08-02 17:47:46 -04:00
parent 178bc44e29
commit 06cc7a26bd
7 changed files with 14 additions and 17 deletions

View file

@ -127,7 +127,7 @@ in {
[
"${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"
]
++ lib.lists.optional (!cfg.desktop.randomWallpaper)
++ lib.lists.optional (!cfg.services.randomWallpaper.enable)
"${lib.getExe pkgs.swaybg} -i ${cfg.theme.wallpaper}";
input = {

View file

@ -160,7 +160,7 @@ in {
{command = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";}
{command = lib.getExe pkgs.autotiling;}
]
++ lib.optional (!cfg.desktop.randomWallpaper) {command = "${lib.getExe pkgs.swaybg} -i ${cfg.theme.wallpaper}";};
++ lib.optional (!cfg.services.randomWallpaper.enable) {command = "${lib.getExe pkgs.swaybg} -i ${cfg.theme.wallpaper}";};
floating.criteria = [
{app_id = ".blueman-manager-wrapped";}

View file

@ -112,18 +112,6 @@ in {
type = lib.types.bool;
};
randomWallpaper = lib.mkOption {
description = "Whether to enable random wallpaper script.";
default = cfg.desktop.hyprland.enable || cfg.desktop.sway.enable;
type = lib.types.bool;
};
redShift = lib.mkOption {
description = "Whether to redshift display colors at night.";
default = cfg.desktop.hyprland.enable || cfg.desktop.sway.enable;
type = lib.types.bool;
};
hyprland = {
enable = lib.mkOption {
description = "Hyprland with full desktop session components.";

View file

@ -5,7 +5,7 @@
}: let
cfg = config.ar.home;
in {
config = lib.mkIf (cfg.services.gammastep.enable || cfg.desktop.redShift) {
config = lib.mkIf cfg.services.gammastep.enable {
services.gammastep = {
enable = true;
latitude = lib.mkDefault "33.74";

View file

@ -72,7 +72,7 @@
end
'';
in {
config = lib.mkIf (config.ar.home.services.randomWallpaper.enable || config.ar.home.desktop.randomWallpaper) {
config = lib.mkIf config.ar.home.services.randomWallpaper.enable {
systemd.user.services.randomWallpaper = {
Unit = {
After = "graphical-session.target";

View file

@ -106,6 +106,11 @@ in {
editor = config.ar.home.apps.zed.package;
};
services = {
gammastep.enable = true;
randomWallpaper.enable = true;
};
theme = {
enable = true;
wallpaper = "${config.xdg.dataHome}/backgrounds/wallhaven-5g6g33.jpg";

View file

@ -50,7 +50,11 @@ self: {
"desc:HP Inc. HP 24mh 3CM037248S,preferred,-1920x0,auto"
"desc:LG Electronics LG IPS QHD 109NTWG4Y865,preferred,-2560x0,auto"
];
randomWallpaper = false;
};
services = {
gammastep.enable = true;
randomWallpaper.enable = false;
};
theme = {