mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-30 16:50:58 +02:00
added patched nixpkgs
This commit is contained in:
parent
ab66b30a82
commit
655ac53bfd
1 changed files with 68 additions and 60 deletions
|
@ -5,25 +5,34 @@ with builtins;
|
|||
let
|
||||
overlay-unstable = arch: final: prev:
|
||||
let
|
||||
master-patched-src = (import inputs.master { system = arch; }).applyPatches {
|
||||
nixpkgs-patched-src = (import inputs.nixpkgs { system = arch; }).applyPatches {
|
||||
name = "nixpkgs-patches";
|
||||
src = inputs.master;
|
||||
patches = [ ../patches/signal.patch ];
|
||||
src = inputs.nixpkgs;
|
||||
patches = [ ../patches/signal.patch ../patches/bcachefs-systemd-stage-1.patch ];
|
||||
};
|
||||
in
|
||||
{
|
||||
unstable = inputs.unstable.legacyPackages."${arch}";
|
||||
master-patched = import master-patched-src { system = arch; };
|
||||
nixpkgs-patched = import nixpkgs-patched-src { system = arch; };
|
||||
stable = inputs.nixpkgs.legacyPackages."${arch}";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
mkMachine = { host, host-config, modules, nixpkgs ? inputs.nixpkgs, system ? "x86_64-linux", home-manager ? inputs.home-manager }: nixpkgs.lib.nixosSystem {
|
||||
mkMachine = { host, host-config, modules, nixpkgs ? inputs.nixpkgs, system ? "x86_64-linux", home-manager ? inputs.home-manager }:
|
||||
let
|
||||
nixpkgs-patched-src = (import nixpkgs { inherit system; }).applyPatches {
|
||||
name = "nixpkgs-patched";
|
||||
src = nixpkgs;
|
||||
patches = [ ../patches/signal.patch ../patches/bcachefs-systemd-stage-1.patch ];
|
||||
};
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
lib = final;
|
||||
system = system;
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
nixpkgs-patched = nixpkgs-patched-src;
|
||||
};
|
||||
modules = builtins.attrValues modules ++ [
|
||||
../machines/base.nix
|
||||
|
@ -43,7 +52,6 @@ in
|
|||
{
|
||||
hyprland = inputs.hyprland.packages.${system}.default.override {
|
||||
enableXWayland = true;
|
||||
hidpiXWayland = true;
|
||||
nvidiaPatches = false;
|
||||
legacyRenderer = true;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue