meowmeow
This commit is contained in:
parent
ab7cd37efb
commit
a2890ed58a
8 changed files with 163 additions and 75 deletions
16
flake.lock
generated
16
flake.lock
generated
|
|
@ -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",
|
||||||
|
|
|
||||||
142
flake.nix
142
flake.nix
|
|
@ -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 =
|
||||||
|
|
@ -90,81 +91,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 +214,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 +256,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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,9 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page, on
|
# your system. Help is available in the configuration.nix(5) man page, on
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||||
|
|
||||||
{ pkgs
|
{
|
||||||
, ...
|
pkgs,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
33
modules/binfmt.nix
Normal file
33
modules/binfmt.nix
Normal 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
16
modules/boot.nix
Normal 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";
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ config
|
{
|
||||||
, pkgs
|
config,
|
||||||
, ...
|
pkgs,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -128,6 +129,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 = {
|
||||||
|
|
|
||||||
|
|
@ -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="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,17 @@
|
||||||
{ pkgs
|
{
|
||||||
, inputs
|
pkgs,
|
||||||
, ...
|
inputs,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.mpvpaper = {
|
programs.wpaperd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
eDP-1 = {
|
||||||
|
path = ../assets/wp6553608.jpg;
|
||||||
|
apply-shadow = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue