nix-gaming is great

This commit is contained in:
jacekpoz 2023-07-20 23:48:46 +02:00
parent 8d9838e23e
commit bab21249e2
4 changed files with 117 additions and 20 deletions

View file

@ -87,6 +87,24 @@
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1688254665,
"narHash": "sha256-8FHEgBrr7gYNiS/NzCxIO3m4hvtLRW9YY1nYo1ivm3o=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "267149c58a14d15f7f81b4d737308421de9d7152",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
@ -273,7 +291,7 @@
"hyprland_3": {
"inputs": {
"hyprland-protocols": "hyprland-protocols_3",
"nixpkgs": "nixpkgs_6",
"nixpkgs": "nixpkgs_7",
"wlroots": "wlroots_3",
"xdph": "xdph_3"
},
@ -312,6 +330,25 @@
"type": "github"
}
},
"nix-gaming": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1689839462,
"narHash": "sha256-4wN49WuK5VirFEBUaTvLxxf3JEA/VdPHa1OqwVnDIXQ=",
"owner": "fufexan",
"repo": "nix-gaming",
"rev": "d10b39b3e525907d904854b86803cf4b102daed9",
"type": "github"
},
"original": {
"owner": "fufexan",
"repo": "nix-gaming",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1689534811,
@ -328,6 +365,24 @@
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"dir": "lib",
"lastModified": 1688049487,
"narHash": "sha256-100g4iaKC9MalDjUW9iN6Jl/OocTDtXdeAj7pEGIRh4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4bc72cae107788bf3f24f30db2e2f685c9298dc9",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1688500189,
@ -361,6 +416,22 @@
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1688221086,
"narHash": "sha256-cdW6qUL71cNWhHCpMPOJjlw0wzSRP0pVlRn2vqX/VVg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "cd99c2b3c9f160cd004318e0697f90bbd5960825",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1689444953,
"narHash": "sha256-0o56bfb2LC38wrinPdCGLDScd77LVcr7CrH1zK7qvDg=",
@ -376,7 +447,7 @@
"type": "github"
}
},
"nixpkgs_5": {
"nixpkgs_6": {
"locked": {
"lastModified": 1682809678,
"narHash": "sha256-jqR8t82mWotOSgnWZvr6xXCO/tc3fCPTLMPvI7Jo5rA=",
@ -392,7 +463,7 @@
"type": "github"
}
},
"nixpkgs_6": {
"nixpkgs_7": {
"locked": {
"lastModified": 1688500189,
"narHash": "sha256-djYYiY4lzJOlXOnTHytH6BUugrxHDZjuGxTSrU4gt4M=",
@ -415,7 +486,8 @@
"hyprcontrib": "hyprcontrib",
"hyprland": "hyprland",
"hyprland-plugins": "hyprland-plugins",
"nixpkgs": "nixpkgs_4",
"nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs_5",
"shadower": "shadower",
"split-monitor-workspaces": "split-monitor-workspaces"
}
@ -467,7 +539,7 @@
"shadower": {
"inputs": {
"naersk": "naersk",
"nixpkgs": "nixpkgs_5"
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1683924844,

View file

@ -29,5 +29,7 @@
};
conduit.url = "gitlab:famedly/conduit/next";
nix-gaming.url = "github:fufexan/nix-gaming";
};
}

View file

@ -25,9 +25,11 @@
home = {
username = "jacek";
homeDirectory = "/home/jacek";
packages = with pkgs;
with inputs.hyprcontrib.packages.${pkgs.system};
with inputs.shadower.packages.${pkgs.system}; [
packages = let
hyprcontrib = inputs.hyprcontrib.packages.${pkgs.system};
shadower = inputs.shadower.packages.${pkgs.system};
nix-gaming = inputs.nix-gaming.packages.${pkgs.system};
in with pkgs; [
git
librewolf-wayland
foot
@ -41,7 +43,6 @@
mpv
webcord-vencord
session-desktop
osu-lazer-bin
oppai-ng
signal-desktop-beta
schildichat-desktop
@ -100,16 +101,24 @@
wlsunset
xdg-utils
hyprpicker
grimblast
shadower
hyprcontrib.hyprprop
hyprcontrib.grimblast
shadower.shadower
pamixer
brightnessctl
dig
bottles
lutris
brave
wineWowPackages.staging
nodePackages_latest.pnpm
nodePackages_latest.prisma
prisma-engines
openssl
pkg-config
nix-gaming.wine-osu
nix-gaming.osu-stable
nix-gaming.osu-lazer-bin
swappy
];
stateVersion = lib.mkDefault "23.11";

View file

@ -19,7 +19,7 @@ in
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_zen;
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelParams = [
"video=eDP-1:2560x1440@165"
@ -37,11 +37,13 @@ in
];
substituters = [
"https://hyprland.cachix.org"
"https://neovim-nightly.cachix.org/"
"https://neovim-nightly.cachix.org"
"https://nix-gaming.cachix.org"
];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"neovim-nightly.cachix.org-1:feIoInHRevVEplgdZvQDjhp11kYASYCE2NGY9hNrwxY="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
];
keep-outputs = true;
keep-derivations = true;
@ -107,12 +109,22 @@ in
SYSTEMD_TIMEDATED_NTP_SERVICES = "chronyd.service:systemd-timesyncd.service";
};
etc."greetd/environments".text = ''
Hyprland
sway
zsh
shutdown now
'';
etc = {
"greetd/environments".text = ''
Hyprland
sway
zsh
shutdown now
'';
"pipewire/pipewire.conf.d/92-low-latency.conf".text = ''
context.properties = {
default.clock.rate = 48000
default.clock.quantum = 64
default.clock.min-quantum = 64
default.clock.max-quantum = 64
}
'';
};
};
services = {
@ -134,6 +146,8 @@ in
mullvad-vpn.enable = true;
};
security.rtkit.enable = true;
hardware = {
opentabletdriver = {
enable = true;