home: cleanup pkgs import and patching

This commit is contained in:
Simon Gardling 2025-03-26 01:06:51 -04:00
parent 2c5d877a9a
commit 777a6fd9c1
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
2 changed files with 20 additions and 24 deletions

View File

@ -88,7 +88,6 @@
''; '';
}; };
programs.gamescope = { programs.gamescope = {
enable = true; enable = true;
capSysNice = true; capSysNice = true;

View File

@ -46,9 +46,8 @@
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";
@ -68,10 +67,8 @@
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;