diff --git a/flake.lock b/flake.lock index b29f5d5..26a0ba2 100644 --- a/flake.lock +++ b/flake.lock @@ -161,6 +161,22 @@ "type": "github" } }, + "nixpkgs-latest": { + "locked": { + "lastModified": 1691654369, + "narHash": "sha256-gSILTEx1jRaJjwZxRlnu3ZwMn1FVNk80qlwiCX8kmpo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1686501370, @@ -188,8 +204,8 @@ }, "original": { "owner": "NixOS", - "ref": "nixos-unstable", "repo": "nixpkgs", + "rev": "7c67f006ea0e7d0265f16d7df07cc076fdffd91f", "type": "github" } }, @@ -273,6 +289,7 @@ "home-manager": "home-manager_2", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_3", + "nixpkgs-latest": "nixpkgs-latest", "oxalica": "oxalica", "pwnix": "pwnix" } diff --git a/flake.nix b/flake.nix index 78ee985..f579618 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,8 @@ { inputs = { - nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable; + nixpkgs.url = "github:NixOS/nixpkgs?rev=7c67f006ea0e7d0265f16d7df07cc076fdffd91f"; + nixpkgs-latest.url = github:NixOS/nixpkgs/nixos-unstable; home-manager.url = github:nix-community/home-manager; pwnix = { inputs.nixpkgs.follows = "nixpkgs"; diff --git a/shared/home/gui/sway.nix b/shared/home/gui/sway.nix index 1348f5c..2623394 100644 --- a/shared/home/gui/sway.nix +++ b/shared/home/gui/sway.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, config, ... }: +{ pkgs, nixpkgs-latest, lib, config, ... }: let mod = "Mod4"; cfg = config.custom.gui; @@ -118,7 +118,7 @@ in with lib; { "${mod}+Return" = "exec ${terminal}"; "${mod}+Alt+Return" = "exec ${pkgs.foot}/bin/foot"; "${mod}+Tab" = "exec ${pkgs.firefox-wayland}/bin/firefox"; - "${mod}+Alt+Tab" = "exec ${pkgs.google-chrome}/bin/google-chrome-stable --ozone-platform-hint=auto --enable-features=VaapiVideoDecoder,VaapiVideoEncoder"; + "${mod}+Alt+Tab" = "exec ${(import nixpkgs-latest {}).google-chrome}/bin/google-chrome-stable --ozone-platform-hint=auto --enable-features=VaapiVideoDecoder,VaapiVideoEncoder"; "${mod}+Backspace" = "mode kill";