Flake: apply catppuccin patch to stable nixpkgs
This commit is contained in:
parent
cbdd6192fe
commit
f9986b0d8d
2 changed files with 64 additions and 6 deletions
20
flake.nix
Executable file → Normal file
20
flake.nix
Executable file → Normal file
|
|
@ -2,20 +2,20 @@
|
|||
description = "Configuration for Everest";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-23.11";
|
||||
nixpkgs-raw.url = "nixpkgs/nixos-23.11";
|
||||
nixpkgs-unstable-raw.url = "nixpkgs/nixos-unstable";
|
||||
|
||||
agenix = {
|
||||
url = "github:ryantm/agenix";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
nixpkgs.follows = "nixpkgs-raw";
|
||||
darwin.follows = ""; # Not using this on MacOS, so this doesn't pull it's dependencies
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-23.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.nixpkgs.follows = "nixpkgs-raw";
|
||||
};
|
||||
|
||||
home-manager-unstable = {
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
nix-index-db = {
|
||||
url = "github:Mic92/nix-index-database";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.nixpkgs.follows = "nixpkgs-raw";
|
||||
};
|
||||
|
||||
nix-index-db-unstable = {
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
# Patch nixpkgs
|
||||
# https://ertt.ca/nix/patch-nixpkgs/
|
||||
let
|
||||
nixpkgs-unstable-patched = nixpkgs.legacyPackages.x86_64-linux.applyPatches {
|
||||
nixpkgs-unstable-patched = nixpkgs-raw.legacyPackages.x86_64-linux.applyPatches {
|
||||
name = "patched-nixpkgs-unstable";
|
||||
src = nixpkgs-unstable-raw;
|
||||
patches = [
|
||||
|
|
@ -77,8 +77,16 @@
|
|||
./nixpkgs-patches/pr281207.patch
|
||||
];
|
||||
};
|
||||
nixpkgs-patched = nixpkgs-raw.legacyPackages.x86_64-linux.applyPatches {
|
||||
name = "patched-nixpkgs";
|
||||
src = nixpkgs-raw;
|
||||
patches = [
|
||||
./nixpkgs-patches/0001-catppuccin-add-starship-theme.patch
|
||||
];
|
||||
};
|
||||
# https://discourse.nixos.org/t/proper-way-of-applying-patch-to-system-managed-via-flake/21073/26
|
||||
nixpkgs-unstable = (import "${nixpkgs-unstable-patched}/flake.nix").outputs { self = inputs.self; };
|
||||
nixpkgs = (import "${nixpkgs-patched}/flake.nix").outputs { self = inputs.self; };
|
||||
in
|
||||
{
|
||||
devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell {
|
||||
|
|
@ -177,7 +185,7 @@
|
|||
|
||||
Everest = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { systemPkgs = inputs.nixpkgs; flakeSelf = self; };
|
||||
specialArgs = { systemPkgs = inputs.nixpkgs-raw; flakeSelf = self; };
|
||||
modules = [
|
||||
agenix.nixosModules.default
|
||||
home-manager.nixosModule
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue