Compare commits

...

2 commits

Author SHA1 Message Date
Lucy von Overheidt
96a0525a9f meowmeowmeowmeow 2025-09-12 21:05:21 +02:00
Lucy von Overheidt
a2890ed58a meowmeow 2025-09-12 20:53:18 +02:00
7 changed files with 156 additions and 73 deletions

16
flake.lock generated
View file

@ -514,6 +514,21 @@
"type": "github" "type": "github"
} }
}, },
"nixos-boot": {
"locked": {
"lastModified": 1722927293,
"narHash": "sha256-8oCsiFyAuidAdhSz60Lu8+TwCPHxaeWixyv0xT0mLt4=",
"owner": "Melkor333",
"repo": "nixos-boot",
"rev": "afaed735149d0a06f234e54dd2d9db2e18dc64ae",
"type": "github"
},
"original": {
"owner": "Melkor333",
"repo": "nixos-boot",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1757103352, "lastModified": 1757103352,
@ -745,6 +760,7 @@
"niri": "niri", "niri": "niri",
"nix-flatpak": "nix-flatpak", "nix-flatpak": "nix-flatpak",
"nix-mineral": "nix-mineral", "nix-mineral": "nix-mineral",
"nixos-boot": "nixos-boot",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_6", "nixpkgs": "nixpkgs_6",
"stylix": "stylix", "stylix": "stylix",

151
flake.nix
View file

@ -35,6 +35,7 @@
}; };
gnome-mobile.url = "github:chuangzhu/nixpkgs-gnome-mobile"; gnome-mobile.url = "github:chuangzhu/nixpkgs-gnome-mobile";
nix-flatpak.url = "github:gmodena/nix-flatpak"; nix-flatpak.url = "github:gmodena/nix-flatpak";
nixos-boot.url = "github:Melkor333/nixos-boot";
}; };
outputs = outputs =
@ -52,11 +53,10 @@
# Per-system configuration # Per-system configuration
perSystem = perSystem =
{ { config
config, , pkgs
pkgs, , lib
lib, , ...
...
}: }:
{ {
# Configure treefmt # Configure treefmt
@ -90,81 +90,86 @@
}; };
# Packages # Packages
packages = let cutieMobileImages = inputs.self.nixosConfigurations.cutie.config.mobile.outputs.android.android-fastboot-images; in { packages =
default = cutieMobileImages; let
cutie-mobile-images = cutieMobileImages =
inputs.self.nixosConfigurations.cutie.config.mobile.outputs.android.android-fastboot-images; inputs.self.nixosConfigurations.cutie.config.mobile.outputs.android.android-fastboot-images;
hello-kitty-cursors = pkgs.stdenv.mkDerivation { in
pname = "hello-kitty-cursors"; {
version = "1.0.0"; 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 { src = pkgs.fetchzip {
url = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip"; url = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
sha256 = "sha256-p4US/gftDL0ne4l0dHUIKKZy2oibkOqdJ3fMisySnNM="; sha256 = "sha256-p4US/gftDL0ne4l0dHUIKKZy2oibkOqdJ3fMisySnNM=";
stripRoot = false; stripRoot = false;
}; };
installPhase = '' installPhase = ''
mkdir -p $out/share/icons/HelloKitty mkdir -p $out/share/icons/HelloKitty
for file in ${inputs.self}/cursors/*; do for file in ${inputs.self}/cursors/*; do
if [ -e "$file" ]; then if [ -e "$file" ]; then
cp "$file" "$out/share/icons/HelloKitty/" 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 else
echo "Warning: File $file does not exist." echo "Warning: index.theme does not exist."
fi fi
done '';
# Adjust the path to index.theme if necessary meta = with lib; {
if [ -e "${inputs.self}/index.theme" ]; then description = "Hello Kitty Cursor theme";
cp "${inputs.self}/index.theme" "$out/share/icons/HelloKitty/" homepage = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
else license = licenses.gpl2Only;
echo "Warning: index.theme does not exist." };
fi };
'';
meta = with lib; { wallpapers = pkgs.stdenv.mkDerivation {
description = "Hello Kitty Cursor theme"; name = "wallpapers";
homepage = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip"; src = ./assets;
license = licenses.gpl2Only;
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 # Development shell
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
@ -208,6 +213,8 @@
inputs.determinate.nixosModules.default inputs.determinate.nixosModules.default
inputs.musnix.nixosModules.musnix inputs.musnix.nixosModules.musnix
inputs.nixos-boot.nixosModules.default
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
@ -248,6 +255,8 @@
inputs.stylix.nixosModules.stylix inputs.stylix.nixosModules.stylix
./modules/stylix.nix ./modules/stylix.nix
./modules/firefox-nixos.nix ./modules/firefox-nixos.nix
./modules/boot.nix
./modules/binfmt.nix
]; ];
}; };
}; };

33
modules/binfmt.nix Normal file
View file

@ -0,0 +1,33 @@
{ ... }:
{
boot.binfmt.emulatedSystems = [
"aarch64-linux"
"aarch64_be-linux"
"alpha-linux"
"armv6l-linux"
"armv7l-linux"
"i386-linux"
"i486-linux"
"i586-linux"
"i686-linux"
"i686-windows"
"loongarch64-linux"
"mips-linux"
"mips64-linux"
"mips64-linuxabin32"
"mips64el-linux"
"mips64el-linuxabin32"
"mipsel-linux"
"powerpc-linux"
"powerpc64-linux"
"powerpc64le-linux"
"riscv32-linux"
"riscv64-linux"
"s390x-linux"
"sparc-linux"
"sparc64-linux"
"wasm32-wasi"
"wasm64-wasi"
"x86_64-windows"
];
}

16
modules/boot.nix Normal file
View file

@ -0,0 +1,16 @@
{ lib, ... }:
{
nixos-boot = {
enable = true;
# Different colors
# bgColor.red = 100; # 0 - 255
# bgColor.green = 100; # 0 - 255
# bgColor.blue = 100; # 0 - 255
# If you want to make sure the theme is seen when your computer starts too fast
# duration = 3; # in seconds
};
boot.plymouth.theme = lib.mkForce "load_unload";
}

View file

@ -7,7 +7,6 @@
./helix.nix ./helix.nix
./alacritty.nix ./alacritty.nix
./nushell.nix ./nushell.nix
./waybar.nix
./niri ./niri
./gammastep.nix ./gammastep.nix
./hypridle.nix ./hypridle.nix
@ -128,6 +127,8 @@
jetbrains.idea-community jetbrains.idea-community
jdk jdk
gradle gradle
dust
]; ];
# basic configuration of git, please change to your own # basic configuration of git, please change to your own
programs.git = { programs.git = {

View file

@ -14,10 +14,12 @@
substituters = [ substituters = [
"https://nix-gaming.cachix.org" "https://nix-gaming.cachix.org"
"https://attic.mildlyfunctional.gay/nixbsd" "https://attic.mildlyfunctional.gay/nixbsd"
"https://ai.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
"nixbsd:gwcQlsUONBLrrGCOdEboIAeFq9eLaDqfhfXmHZs1mgc=" "nixbsd:gwcQlsUONBLrrGCOdEboIAeFq9eLaDqfhfXmHZs1mgc="
"ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc="
]; ];
}; };
} }

View file

@ -4,7 +4,13 @@
}: }:
{ {
programs.mpvpaper = { programs.wpaperd = {
enable = true; enable = true;
settings = {
eDP-1 = {
path = ../assets/wp6553608.jpg;
apply-shadow = true;
};
};
}; };
} }