feat: Added icons for homepage

This commit is contained in:
uttarayan21
2025-07-25 15:42:16 +05:30
parent c8665b9205
commit 6a6fc0dbea
19 changed files with 119 additions and 66 deletions

View File

@@ -261,7 +261,7 @@
};
};
mkDevice = device: {
mkDevice = device: rec {
isLinux = !isNull (builtins.match ".*-linux" device.system);
isServer =
if (builtins.hasAttr "isServer" device)
@@ -273,6 +273,7 @@
else false;
isDarwin = !isNull (builtins.match ".*-darwin" device.system);
isArm = !isNull (builtins.match "aarch64-.*" device.system);
isDesktopLinux = isLinux && hasGui;
hasGui =
if (builtins.hasAttr "hasGui" device)
then device.hasGui
@@ -284,6 +285,7 @@
system = device.system;
name = device.name;
user = device.user;
is = name: device.name == name;
};
nixos_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isNix) devices;

View File

@@ -11,7 +11,6 @@
../modules
./apps
./auth.nix
./linux
./programs
./scripts.nix
./services

View File

@@ -1,29 +0,0 @@
{
pkgs,
device,
...
}: let
linux_gui = device.hasGui && pkgs.stdenv.isLinux;
in {
imports = [
./hyprland.nix
./gtk.nix
./anyrun.nix
./ironbar
./gui.nix
./eww.nix
];
services.kdeconnect.enable = linux_gui;
services.kdeconnect.indicator = linux_gui;
home.packages = with pkgs;
lib.optionals linux_gui [
ncpamixer
];
# services.swayosd.enable = linux_gui;
# services.swaync.enable = linux_gui;
# services.nextcloud-client = {
# enable = device.hasGui;
# startInBackground = true;
# };
}

View File

@@ -9,45 +9,45 @@
./atuin.nix
./bat.nix
./carapace.nix
./ddcbacklight.nix
./direnv.nix
./eza.nix
./fish.nix
./fzf.nix
./gh.nix
./git.nix
# ./goread.nix
# ./helix.nix
./mpd.nix
# ./newsboat.nix
./ncpamixer.nix
./nh.nix
./nix-index.nix
./nushell.nix
./omnix.nix
./ryujinx.nix
./sops.nix
./ssh.nix
./starship.nix
./tmux.nix
./tuifeed.nix
./yazi.nix
./zoxide.nix
./omnix.nix
./yt-dlp.nix
./ryujinx.nix
./ddcbacklight.nix
# ./neovim.nix
# ./mpris-scrobbler.nix
./zoxide.nix
# ./goread.nix
# ./helix.nix
# ./magika.nix
# ./mpris-scrobbler.nix
# ./ncmpcpp.nix
# ./neomutt.nix
# ./neovim.nix
# ./newsboat.nix
# ./template.nix
# ./zellij.nix
#./template.nix
];
home.packages = with pkgs;
[
aria2
nb
(nixvim.makeNixvim (import ../../neovim))
_1password-cli
alejandra
aria2
ast-grep
bottom
btop
@@ -62,6 +62,8 @@
jq
just
macchina
nb
(nixvim.makeNixvim (import ../../neovim))
p7zip
pandoc
pfetch-rs

View File

@@ -0,0 +1,10 @@
{
pkgs,
lib,
device,
...
}: {
home.packages = lib.optionals (device.is "ryu") [
pkgs.ncpamixer
];
}

View File

@@ -7,7 +7,7 @@
}: {
# imports = [inputs.anyrun.homeManagerModules.default];
programs.anyrun = {
enable = device.hasGui && pkgs.stdenv.isLinux;
enable = device.isDesktopLinux;
config = {
plugins = with inputs.anyrun.packages.${pkgs.system}; [
inputs.anyrun-nixos-options.packages.${pkgs.system}.default

View File

@@ -1,8 +1,13 @@
{...}: {
imports = [
# ./syncthing.nix
# ./command-runner.nix
./swaync.nix
./swayosd.nix
./kdeconnect.nix
./hyprland.nix
./gtk.nix
./anyrun.nix
./ironbar
./gui.nix
./eww.nix
];
}

View File

@@ -4,7 +4,7 @@
lib,
...
}: {
systemd.user.services.onepassword-gui = lib.optionalAttrs (pkgs.stdenv.isLinux && device.hasGui) {
systemd.user.services.onepassword-gui = lib.optionalAttrs (device.is "ryu") {
Unit = {
Description = "1Password GUI";
BindsTo = ["graphical-session.target"];
@@ -20,7 +20,7 @@
};
};
home.packages = with pkgs;
lib.optionals (pkgs.stdenv.isLinux && device.hasGui) [
lib.optionals (device.is "ryu") [
nautilus
totem
ffmpegthumbnailer

View File

@@ -0,0 +1,4 @@
{device, ...}: {
services.kdeconnect.enable = device.is "ryu";
services.kdeconnect.indicator = device.is "ryu";
}

View File

@@ -1,6 +1,6 @@
{device, ...}: {
services.swaync = {
enable = device.name == "ryu";
enable = device.is "ryu";
settings = {
notification-inline-replies = true;
cssPriority = "user";

View File

@@ -1,3 +1,3 @@
{device, ...}: {
services.swayosd.enable = device.name == "ryu";
services.swayosd.enable = device.is "ryu";
}

View File

@@ -21,48 +21,56 @@
"Tsuba" = [
{
"Jellyfin" = {
icon = "jellyfin.png";
description = "Jellyfin Media Server";
href = "https://jellyfin.tsuba.darksailor.dev";
};
}
{
"Jellyseerr" = {
icon = "jellyseerr.png";
description = "Jellyseerr Media Server";
href = "https://jellyseerr.tsuba.darksailor.dev";
};
}
{
"Sonarr" = {
icon = "sonarr.png";
description = "Sonarr";
href = "https://sonarr.tsuba.darksailor.dev";
};
}
{
"Lidarr" = {
icon = "lidarr.png";
description = "Lidarr";
href = "https://lidarr.tsuba.darksailor.dev";
};
}
{
"Radarr" = {
icon = "radarr.png";
description = "Radarr";
href = "https://radarr.tsuba.darksailor.dev";
};
}
{
"Deluge" = {
icon = "deluge.png";
description = "Deluge";
href = "https://deluge.tsuba.darksailor.dev";
};
}
{
"Prowlarr" = {
icon = "prowlarr.png";
description = "Prowlarr";
href = "https://prowlarr.tsuba.darksailor.dev";
};
}
{
"Home Assistant" = {
icon = "home-assistant.png";
description = "Home Automation";
href = "https://home.darksailor.dev";
};
@@ -73,18 +81,21 @@
"Mirai" = [
{
"Gitea" = {
icon = "gitea.png";
description = "Gitea Code Hosting";
href = "https://git.darksailor.dev";
};
}
{
"Nextcloud" = {
icon = "nextcloud.png";
description = "Nextcloud Suite";
href = "https://cloud.darksailor.dev";
};
}
{
"Open WebUI" = {
icon = "open-webui.png";
description = "Open WebUI for self hosted llms";
href = "https://llama.darksailor.dev";
};
@@ -92,6 +103,44 @@
];
}
];
bookmarks = [
{
"Nix" = [
{
"Nixpkgs" = [
{
abbr = "pkgs";
href = "https://search.nixos.org/packages?channel=unstable";
}
];
}
{
"NixOS" = [
{
abbr = "nixos";
href = "https://search.nixos.org/options?channel=unstable";
}
];
}
{
"Home Manager" = [
{
abbr = "hm";
href = "https://home-manager-options.extranix.com";
}
];
}
{
"NixVim" = [
{
abbr = "nixvim";
href = "https://nix-community.github.io/nixvim/search";
}
];
}
];
}
];
};
caddy = {
virtualHosts."dashboard.darksailor.dev".extraConfig = ''

View File

@@ -1,20 +1,31 @@
{config, ...}: {
services.searx = {
enable = true;
# configureUwsgi = true;
# uwsgiConfig = {
# socket = "/run/searx/searx.sock";
# chmod-socket = "660";
# };
settings = {
server = {
port = "8889";
secret_key = "foobar";
base_url = "https://search.darksailor.dev";
};
{
config,
pkgs,
...
}: {
systemd.services.websurfx = {
description = "Websurfx";
wantedBy = ["multi-user.target"];
after = ["network.target"];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.websurfx}/bin/websurfx";
Restart = "always";
RestartSec = 5;
User = "websurfx";
Group = "websurfx";
};
};
users.users.websurfx = {
group = "websurfx";
home = "/var/lib/websurfx";
isSystemUser = true;
# uid = config.ids.uids.websurfx;
};
users.groups.websurfx = {
# gid = config.ids.gids.websurfx;
};
services.caddy.virtualHosts."search.darksailor.dev".extraConfig = ''
reverse_proxy localhost:8889
reverse_proxy localhost:8080
'';
}