For the Glory of Mankind

This commit is contained in:
Invariantspace 2023-10-27 14:09:31 -07:00
parent fbf346f822
commit ef1f33eddd
3 changed files with 46 additions and 11 deletions

39
flake.lock generated
View file

@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1689068808, "lastModified": 1694529238,
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", "rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1691654369, "lastModified": 1698318101,
"narHash": "sha256-gSILTEx1jRaJjwZxRlnu3ZwMn1FVNk80qlwiCX8kmpo=", "narHash": "sha256-gUihHt3yPD7bVqg+k/UVHgngyaJ3DMEBchbymBMvK1E=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e", "rev": "63678e9f3d3afecfeafa0acead6239cdb447574c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -38,7 +38,8 @@
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"wallpaper-engine-kde-plugin-lib": "wallpaper-engine-kde-plugin-lib" "wallpaper-engine-kde-plugin-lib": "wallpaper-engine-kde-plugin-lib",
"yorha-grub-theme": "yorha-grub-theme"
} }
}, },
"systems": { "systems": {
@ -59,11 +60,11 @@
"wallpaper-engine-kde-plugin-lib": { "wallpaper-engine-kde-plugin-lib": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1691303010, "lastModified": 1697944637,
"narHash": "sha256-BVtTnJA1RLUU/Tj7WI/80ja4pI8NezHCjKvB72VjrZk=", "narHash": "sha256-rrBsQy+vG22IiaNDHYbkNPPbExQPQYLCaXy+KMHDmss=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "f972b2a24c9c3cc2d3e4f41d2ebd14f1473cebdf", "rev": "08dad16f5cbf0de423b85edda313597c273a887e",
"revCount": 557, "revCount": 559,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/catsout/wallpaper-engine-kde-plugin" "url": "https://github.com/catsout/wallpaper-engine-kde-plugin"
@ -73,6 +74,22 @@
"type": "git", "type": "git",
"url": "https://github.com/catsout/wallpaper-engine-kde-plugin" "url": "https://github.com/catsout/wallpaper-engine-kde-plugin"
} }
},
"yorha-grub-theme": {
"flake": false,
"locked": {
"lastModified": 1665169118,
"narHash": "sha256-XVzYDwJM7Q9DvdF4ZOqayjiYpasUeMhAWWcXtnhJ0WQ=",
"owner": "OliveThePuffin",
"repo": "yorha-grub-theme",
"rev": "4d9cd37baf56c4f5510cc4ff61be278f11077c81",
"type": "github"
},
"original": {
"owner": "OliveThePuffin",
"repo": "yorha-grub-theme",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -8,6 +8,10 @@
flake = false; flake = false;
url = "git+https://github.com/catsout/wallpaper-engine-kde-plugin?submodules=1"; url = "git+https://github.com/catsout/wallpaper-engine-kde-plugin?submodules=1";
}; };
yorha-grub-theme = {
flake = false;
url = "github:OliveThePuffin/yorha-grub-theme";
};
}; };
outputs = inputs@{ self, flake-utils, nixpkgs, ... }: outputs = inputs@{ self, flake-utils, nixpkgs, ... }:

View file

@ -0,0 +1,14 @@
{ inputs, pkgs, resolution ? "2560x1440" }:
assert builtins.any (s: resolution == s) [ "1920x1080" "2256x1504" "2560x1440" "3840x2160" ];
pkgs.stdenv.mkDerivation rec {
name = "yorha-grub-theme";
src = inputs.${name};
installPhase = ''
runHook preInstall
mkdir -p $out/
cp -r yorha-${resolution}/* $out/
runHook postInstall
'';
}