This commit is contained in:
Lucy von Overheidt 2025-09-12 20:53:18 +02:00
parent ab7cd37efb
commit a2890ed58a
8 changed files with 163 additions and 75 deletions

142
flake.nix
View file

@ -35,6 +35,7 @@
};
gnome-mobile.url = "github:chuangzhu/nixpkgs-gnome-mobile";
nix-flatpak.url = "github:gmodena/nix-flatpak";
nixos-boot.url = "github:Melkor333/nixos-boot";
};
outputs =
@ -90,81 +91,86 @@
};
# Packages
packages = let cutieMobileImages = inputs.self.nixosConfigurations.cutie.config.mobile.outputs.android.android-fastboot-images; in {
default = cutieMobileImages;
cutie-mobile-images =
inputs.self.nixosConfigurations.cutie.config.mobile.outputs.android.android-fastboot-images;
hello-kitty-cursors = pkgs.stdenv.mkDerivation {
pname = "hello-kitty-cursors";
version = "1.0.0";
packages =
let
cutieMobileImages =
inputs.self.nixosConfigurations.cutie.config.mobile.outputs.android.android-fastboot-images;
in
{
default = cutieMobileImages;
cutie-mobile-images =
inputs.self.nixosConfigurations.cutie.config.mobile.outputs.android.android-fastboot-images;
hello-kitty-cursors = pkgs.stdenv.mkDerivation {
pname = "hello-kitty-cursors";
version = "1.0.0";
src = pkgs.fetchzip {
url = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
sha256 = "sha256-p4US/gftDL0ne4l0dHUIKKZy2oibkOqdJ3fMisySnNM=";
stripRoot = false;
};
src = pkgs.fetchzip {
url = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
sha256 = "sha256-p4US/gftDL0ne4l0dHUIKKZy2oibkOqdJ3fMisySnNM=";
stripRoot = false;
};
installPhase = ''
mkdir -p $out/share/icons/HelloKitty
for file in ${inputs.self}/cursors/*; do
if [ -e "$file" ]; then
cp "$file" "$out/share/icons/HelloKitty/"
installPhase = ''
mkdir -p $out/share/icons/HelloKitty
for file in ${inputs.self}/cursors/*; do
if [ -e "$file" ]; then
cp "$file" "$out/share/icons/HelloKitty/"
else
echo "Warning: File $file does not exist."
fi
done
# Adjust the path to index.theme if necessary
if [ -e "${inputs.self}/index.theme" ]; then
cp "${inputs.self}/index.theme" "$out/share/icons/HelloKitty/"
else
echo "Warning: File $file does not exist."
echo "Warning: index.theme does not exist."
fi
done
'';
# Adjust the path to index.theme if necessary
if [ -e "${inputs.self}/index.theme" ]; then
cp "${inputs.self}/index.theme" "$out/share/icons/HelloKitty/"
else
echo "Warning: index.theme does not exist."
fi
'';
meta = with lib; {
description = "Hello Kitty Cursor theme";
homepage = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
license = licenses.gpl2Only;
};
};
meta = with lib; {
description = "Hello Kitty Cursor theme";
homepage = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
license = licenses.gpl2Only;
wallpapers = pkgs.stdenv.mkDerivation {
name = "wallpapers";
src = ./assets;
buildInputs = with pkgs; [ ffmpeg ];
buildPhase = ''
# Create output directory
mkdir -p $out/share/wallpapers
# Copy static wallpaper
cp "wp6553608.jpg" "$out/share/wallpapers/static-wallpaper.jpg"
# Copy original animated wallpaper
cp "Anime Live Wallpaper - Anime Cat Girl Snow - HD - no copyright [SiMc3l0ido0].mp4" \
"$out/share/wallpapers/anime-cat-girl-snow.mp4"
# Create optimized version
${pkgs.ffmpeg}/bin/ffmpeg -i "Anime Live Wallpaper - Anime Cat Girl Snow - HD - no copyright [SiMc3l0ido0].mp4" \
-vf "scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080" \
-r 30 -c:v libx264 -crf 28 -preset medium \
-t 30 -an "$out/share/wallpapers/anime-cat-girl-snow-optimized.mp4"
'';
installPhase = ''
# Files are already in the right place from buildPhase
echo "Wallpapers installed to $out/share/wallpapers"
'';
meta = with lib; {
description = "Personal wallpaper collection";
platforms = platforms.linux;
};
};
};
wallpapers = pkgs.stdenv.mkDerivation {
name = "wallpapers";
src = ./assets;
buildInputs = with pkgs; [ ffmpeg ];
buildPhase = ''
# Create output directory
mkdir -p $out/share/wallpapers
# Copy static wallpaper
cp "wp6553608.jpg" "$out/share/wallpapers/static-wallpaper.jpg"
# Copy original animated wallpaper
cp "Anime Live Wallpaper - Anime Cat Girl Snow - HD - no copyright [SiMc3l0ido0].mp4" \
"$out/share/wallpapers/anime-cat-girl-snow.mp4"
# Create optimized version
${pkgs.ffmpeg}/bin/ffmpeg -i "Anime Live Wallpaper - Anime Cat Girl Snow - HD - no copyright [SiMc3l0ido0].mp4" \
-vf "scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080" \
-r 30 -c:v libx264 -crf 28 -preset medium \
-t 30 -an "$out/share/wallpapers/anime-cat-girl-snow-optimized.mp4"
'';
installPhase = ''
# Files are already in the right place from buildPhase
echo "Wallpapers installed to $out/share/wallpapers"
'';
meta = with lib; {
description = "Personal wallpaper collection";
platforms = platforms.linux;
};
};
};
# Development shell
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
@ -208,6 +214,8 @@
inputs.determinate.nixosModules.default
inputs.musnix.nixosModules.musnix
inputs.nixos-boot.nixosModules.default
inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
@ -248,6 +256,8 @@
inputs.stylix.nixosModules.stylix
./modules/stylix.nix
./modules/firefox-nixos.nix
./modules/boot.nix
./modules/binfmt.nix
];
};
};