home: cleanup pkgs import and patching
This commit is contained in:
parent
2c5d877a9a
commit
777a6fd9c1
@ -88,7 +88,6 @@
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
|
||||
@ -46,9 +46,8 @@
|
||||
homeDirectory = "/home/${username}";
|
||||
hostname = nixpkgs.lib.strings.removeSuffix "\n" (builtins.readFile /etc/hostname);
|
||||
|
||||
pkgs' =
|
||||
pkgs = import (
|
||||
(import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
}).applyPatches
|
||||
{
|
||||
name = "nixpkgs";
|
||||
@ -68,10 +67,8 @@
|
||||
sha256 = "1sc65jfx5ngsa4zkfnybg6ma65g2wgzd6ac1gajxwqni5470i5rq";
|
||||
})
|
||||
];
|
||||
};
|
||||
pkgs = import pkgs' {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
}
|
||||
) { };
|
||||
in
|
||||
{
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user