Compare commits
3 commits
f7c058157c
...
a4586f58ab
Author | SHA1 | Date | |
---|---|---|---|
a4586f58ab | |||
5df4389390 | |||
c3df72be4d |
4 changed files with 48 additions and 19 deletions
|
@ -293,6 +293,11 @@
|
|||
#xdg.portal = { enable = true; extraPortals = [ inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland ]; };
|
||||
#xdg.portal = { enable = true; };
|
||||
|
||||
nix.settings = {
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
#enableNvidiaPatches = true;
|
||||
|
|
31
flake.lock
31
flake.lock
|
@ -10,11 +10,11 @@
|
|||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1714136352,
|
||||
"narHash": "sha256-BtWQ2Th/jamO1SlD+2ASSW5Jaf7JhA/JLpQHk0Goqpg=",
|
||||
"lastModified": 1715290355,
|
||||
"narHash": "sha256-2T7CHTqBXJJ3ZC6R/4TXTcKoXWHcvubKNj9SfomURnw=",
|
||||
"owner": "ryantm",
|
||||
"repo": "agenix",
|
||||
"rev": "24a7ea390564ccd5b39b7884f597cfc8d7f6f44e",
|
||||
"rev": "8d37c5bdeade12b6479c85acd133063ab53187a0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -241,11 +241,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1714763106,
|
||||
"narHash": "sha256-DrDHo74uTycfpAF+/qxZAMlP/Cpe04BVioJb6fdI0YY=",
|
||||
"lastModified": 1716293225,
|
||||
"narHash": "sha256-pU9ViBVE3XYb70xZx+jK6SEVphvt7xMTbm6yDIF4xPs=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e9be42459999a253a9f92559b1f5b72e1b44c13d",
|
||||
"rev": "3eaeaeb6b1e08a016380c279f8846e0bd8808916",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -255,13 +255,30 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nvidia-beta": {
|
||||
"locked": {
|
||||
"lastModified": 1716316820,
|
||||
"narHash": "sha256-mcbyy0lbUYuPbNIggb2Fy020iJhs7uI5Vfny3pVsSqY=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d5c3f1ef368b44fa63ff2a5b79578b9acbbb40db",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d5c3f1ef368b44fa63ff2a5b79578b9acbbb40db",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"agenix": "agenix",
|
||||
"flatpaks": "flatpaks",
|
||||
"home-manager": "home-manager_2",
|
||||
"hyprland": "hyprland",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nvidia-beta": "nvidia-beta"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
inputs = {
|
||||
# ...
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nvidia-beta.url = "github:NixOS/nixpkgs/d5c3f1ef368b44fa63ff2a5b79578b9acbbb40db";
|
||||
flatpaks.url = "github:GermanBread/declarative-flatpak/dev";
|
||||
flatpaks.inputs.nixpkgs.follows = "nixpkgs";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||
#hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager = {
|
||||
|
|
|
@ -3,15 +3,15 @@
|
|||
environment.etc.nixpkgs.source = inputs.nixpkgs;
|
||||
networking.hostName = "insertpclinux";
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
#nixpkgs.overlays = [ (self: super: (let
|
||||
# patched_pkgs = import inputs.nixpkgs_patched {
|
||||
# inherit (self) system;
|
||||
# config.allowUnfree = true;
|
||||
# };
|
||||
# in {
|
||||
# linuxPackages = patched_pkgs.linuxPackages;
|
||||
# })) ];
|
||||
#boot.kernelPackages = pkgs.linuxPackages;
|
||||
nixpkgs.overlays = [ (self: super: (let
|
||||
patched_pkgs = import inputs.nvidia-beta {
|
||||
inherit (self) system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in {
|
||||
linuxPackages = patched_pkgs.linuxPackages;
|
||||
})) ];
|
||||
boot.kernelPackages = pkgs.linuxPackages;
|
||||
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
|
@ -41,7 +41,7 @@
|
|||
|
||||
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||
|
||||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
|
||||
};
|
||||
|
||||
|
@ -122,7 +122,13 @@ source=~/.config/hypr/frappe.conf
|
|||
# source = ~/.config/hypr/myColors.conf
|
||||
|
||||
# Some default env vars.
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = GBM_BACKEND,nvidia-drm
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = WLR_NO_HARDWARE_CURSORS,1
|
||||
env = NO_HARDWARE_CURSORS,true
|
||||
env = ELECTRON_OZONE_PLATFORM_HINT,auto
|
||||
env = NIXOS_OZONE_WL,1
|
||||
env = KUBECONFIG,/home/insert/Desktop/k3s.yaml
|
||||
env = QT_QPA_PLATFORMTHEME,qt5ct
|
||||
|
|
Loading…
Reference in a new issue