refactor(aichat): disable mayichat and rename config to aichat
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled

refactor(hyprland): separate hyprpaper config into its own module

feat(services): add hyprpaper service with updated wallpaper settings
This commit is contained in:
uttarayan21
2025-10-18 12:51:53 +05:30
parent f3da867a0b
commit 7eead37864
6 changed files with 39 additions and 26 deletions

View File

@@ -8,7 +8,9 @@
imports = [ imports = [
../../modules/aichat.nix ../../modules/aichat.nix
]; ];
programs.mayichat = {
disabledModules = ["programs/aichat.nix"];
programs.aichat = {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
enableNushellIntegration = false; enableNushellIntegration = false;

View File

@@ -3,13 +3,14 @@
./swaync.nix ./swaync.nix
./swayosd.nix ./swayosd.nix
./kdeconnect.nix ./kdeconnect.nix
./hyprland.nix
./gtk.nix ./gtk.nix
./anyrun.nix ./anyrun.nix
./ironbar ./ironbar
./gui.nix ./gui.nix
./eww.nix ./eww.nix
./hyprmon.nix
./xdg.nix ./xdg.nix
./hyprmon.nix
./hyprland.nix
./hyprpaper.nix
]; ];
} }

View File

@@ -1,15 +1,10 @@
{ {
pkgs, pkgs,
device, device,
lib,
... ...
}: }:
# lib.optionalAttrs device.isNix # lib.optionalAttrs device.isNix
{ {
imports = [
../../modules/hyprpaper.nix
];
# services.hyprpolkitagent.enable = true; # services.hyprpolkitagent.enable = true;
services.hypridle = { services.hypridle = {
enable = device.is "ryu"; enable = device.is "ryu";
@@ -29,20 +24,6 @@
services.hyprsunset = { services.hyprsunset = {
enable = device.is "ryu"; enable = device.is "ryu";
}; };
programs.hyprpaper = let
wallpapers = import ../../utils/wallhaven.nix {inherit pkgs;};
in {
enable = device.is "ryu";
# enable = true;
systemd.enable = true;
systemd.target = "hyprland-session.target";
settings.preload = wallpapers.all;
settings.wallpapers = {
"${device.monitors.primary}" = wallpapers.hornet;
"${device.monitors.secondary}" = wallpapers.frieren_3;
"${device.monitors.tertiary}" = wallpapers.shapes;
};
};
programs.hyprlock = { programs.hyprlock = {
enable = device.is "ryu"; enable = device.is "ryu";
}; };

View File

@@ -0,0 +1,30 @@
{
pkgs,
device,
config,
...
}: {
imports = [
../../modules/hyprpaper.nix
];
programs.hyprpaper = let
wallpapers = import ../../utils/wallhaven.nix {inherit pkgs;};
nextcloudWallpapers = name: config.home.homeDirectory + "/Nextcloud/Wallpapers/" + name;
silksongFleas = nextcloudWallpapers "silksong-fleas.jpg";
in {
enable = device.is "ryu";
# enable = true;
systemd.enable = true;
systemd.target = "hyprland-session.target";
settings.preload =
wallpapers.all
++ [
silksongFleas
];
settings.wallpapers = {
"${device.monitors.primary}" = silksongFleas;
"${device.monitors.secondary}" = wallpapers.frieren_3;
"${device.monitors.tertiary}" = wallpapers.hornet;
};
};
}

View File

@@ -5,7 +5,7 @@
... ...
}: }:
with lib; let with lib; let
cfg = config.programs.mayichat; cfg = config.programs.aichat;
yamlFormat = pkgs.formats.yaml {}; yamlFormat = pkgs.formats.yaml {};
fishIntegration = '' fishIntegration = ''
function _aichat_fish function _aichat_fish
@@ -64,7 +64,7 @@ with lib; let
''; '';
in { in {
options = { options = {
programs.mayichat = { programs.aichat = {
enable = mkEnableOption "aichat"; enable = mkEnableOption "aichat";
package = mkPackageOption pkgs "aichat" {}; package = mkPackageOption pkgs "aichat" {};

View File

@@ -40,6 +40,5 @@ in rec {
sha256 = "11w5lfqg6ip6zhiwfw63gv08f55kqbfnhmv7iq07mfspny36w840"; sha256 = "11w5lfqg6ip6zhiwfw63gv08f55kqbfnhmv7iq07mfspny36w840";
}; };
anime = [frieren_3]; all = [lights shapes cloud skull moon hornet frieren_3];
all = [lights shapes cloud skull moon] ++ anime;
} }