home: cleanup pkgs import and patching
This commit is contained in:
parent
2c5d877a9a
commit
777a6fd9c1
@ -88,7 +88,6 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
programs.gamescope = {
|
programs.gamescope = {
|
||||||
enable = true;
|
enable = true;
|
||||||
capSysNice = true;
|
capSysNice = true;
|
||||||
|
|||||||
@ -46,32 +46,29 @@
|
|||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
hostname = nixpkgs.lib.strings.removeSuffix "\n" (builtins.readFile /etc/hostname);
|
hostname = nixpkgs.lib.strings.removeSuffix "\n" (builtins.readFile /etc/hostname);
|
||||||
|
|
||||||
pkgs' =
|
pkgs = import (
|
||||||
(import nixpkgs {
|
(import nixpkgs {
|
||||||
system = "x86_64-linux";
|
|
||||||
}).applyPatches
|
}).applyPatches
|
||||||
{
|
{
|
||||||
name = "nixpkgs";
|
name = "nixpkgs";
|
||||||
src = inputs.nixpkgs;
|
src = inputs.nixpkgs;
|
||||||
patches = [
|
patches = [
|
||||||
# https://github.com/NixOS/nixpkgs/pull/67576
|
# https://github.com/NixOS/nixpkgs/pull/67576
|
||||||
# gimp 3.0
|
# gimp 3.0
|
||||||
(builtins.fetchurl {
|
(builtins.fetchurl {
|
||||||
url = "https://github.com/NixOS/nixpkgs/pull/67576.diff";
|
url = "https://github.com/NixOS/nixpkgs/pull/67576.diff";
|
||||||
sha256 = "02fk89563m2xfrl7kl9s1hh4bcppwrmd60j542kyl64nd2cvp9ss";
|
sha256 = "02fk89563m2xfrl7kl9s1hh4bcppwrmd60j542kyl64nd2cvp9ss";
|
||||||
})
|
})
|
||||||
|
|
||||||
# mistral-rs 0.5.0
|
# mistral-rs 0.5.0
|
||||||
# https://github.com/NixOS/nixpkgs/pull/392645
|
# https://github.com/NixOS/nixpkgs/pull/392645
|
||||||
(builtins.fetchurl {
|
(builtins.fetchurl {
|
||||||
url = "https://github.com/NixOS/nixpkgs/pull/392645.diff";
|
url = "https://github.com/NixOS/nixpkgs/pull/392645.diff";
|
||||||
sha256 = "1sc65jfx5ngsa4zkfnybg6ma65g2wgzd6ac1gajxwqni5470i5rq";
|
sha256 = "1sc65jfx5ngsa4zkfnybg6ma65g2wgzd6ac1gajxwqni5470i5rq";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
}
|
||||||
pkgs = import pkgs' {
|
) { };
|
||||||
system = "x86_64-linux";
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user