Created options; Moved tailscale to network folder; Disabled networkmanager wait online; Added repl command; updated firefox interface; other smaller stuff
This commit is contained in:
parent
8d59cbf644
commit
c087c07d02
37 changed files with 542 additions and 255 deletions
|
|
@ -1,22 +1,64 @@
|
|||
{pkgs, ...}: {
|
||||
programs = {
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
args = [
|
||||
"--rt"
|
||||
"--expose-wayland"
|
||||
];
|
||||
};
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.niksos.games = lib.mkEnableOption "gaming related stuff.";
|
||||
config = lib.mkIf config.niksos.games {
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: let
|
||||
version = "1.4.2";
|
||||
hash = "sha256-xe0qlbtt06CUK8bXyaGDtCcHOXpSnkbuvcxaDJjeS/c=";
|
||||
npmHash = "sha256-/+NhlQydGS6+2jEjpbwycwKplVo/++wcdPiBNY3R3FI=";
|
||||
cargoHash = "sha256-VwzGbm34t7mg9ndmTkht6Ho32NQ+6uxuPTKi3+VrhYo=";
|
||||
in {
|
||||
gale = prev.gale.overrideAttrs (new: old: {
|
||||
src = prev.fetchFromGitHub {
|
||||
inherit version hash;
|
||||
owner = "Kesomannen";
|
||||
repo = "gale";
|
||||
rev = "1.4.2";
|
||||
};
|
||||
npmDeps = prev.fetchNpmDeps {
|
||||
hash = npmHash;
|
||||
name = "${new.pname}-${new.version}-npm-deps";
|
||||
inherit (new) src;
|
||||
};
|
||||
cargoDeps = prev.rustPlatform.fetchCargoVendor {
|
||||
inherit
|
||||
(new)
|
||||
pname
|
||||
version
|
||||
src
|
||||
cargoRoot
|
||||
;
|
||||
hash = cargoHash;
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
users.users.jsw.packages = [pkgs.gale];
|
||||
|
||||
steam = {
|
||||
enable = true;
|
||||
programs = {
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
args = [
|
||||
"--rt"
|
||||
"--expose-wayland"
|
||||
];
|
||||
};
|
||||
|
||||
extraCompatPackages = [
|
||||
pkgs.proton-ge-bin
|
||||
];
|
||||
steam = {
|
||||
enable = true;
|
||||
|
||||
gamescopeSession.enable = true;
|
||||
extraCompatPackages = [
|
||||
pkgs.proton-ge-bin
|
||||
];
|
||||
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue