refactor(aichat): disable mayichat and rename config to aichat
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
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:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
|
|||||||
30
home/services/hyprpaper.nix
Normal file
30
home/services/hyprpaper.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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" {};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user