Compare commits

..

3 commits

Author SHA1 Message Date
a4586f58ab
Update flake.lock agenix nix nixpkgs
Flake lock file updates:

• Updated input 'agenix':
    'github:ryantm/agenix/24a7ea390564ccd5b39b7884f597cfc8d7f6f44e' (2024-04-26)
  → 'github:ryantm/agenix/8d37c5bdeade12b6479c85acd133063ab53187a0' (2024-05-09)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e9be42459999a253a9f92559b1f5b72e1b44c13d' (2024-05-03)
  → 'github:NixOS/nixpkgs/3eaeaeb6b1e08a016380c279f8846e0bd8808916' (2024-05-21)
• Added input 'nvidia-beta':
    'github:NixOS/nixpkgs/d5c3f1ef368b44fa63ff2a5b79578b9acbbb40db' (2024-05-21)
2024-05-21 20:54:20 -04:00
5df4389390
new nvidia drivers! 2024-05-21 20:47:56 -04:00
c3df72be4d
actually do hyprland properly 2024-05-19 23:17:21 -04:00
4 changed files with 48 additions and 19 deletions

View file

@ -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;

View file

@ -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": {

View file

@ -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 = {

View file

@ -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