diff --git a/flake.lock b/flake.lock index 89c98af..023fe91 100644 --- a/flake.lock +++ b/flake.lock @@ -343,6 +343,24 @@ "type": "github" } }, + "nixos-aarch64-widevine": { + "inputs": { + "nixpkgs": "nixpkgs_4" + }, + "locked": { + "lastModified": 1712816564, + "narHash": "sha256-2oPCuv4hox+FDWdUnyjhmSB7d24i0mFH5pJjVJGY6JM=", + "owner": "epetousis", + "repo": "nixos-aarch64-widevine", + "rev": "fa046abfed9ff3b5c1e0a2ae16311a33056056fd", + "type": "github" + }, + "original": { + "owner": "epetousis", + "repo": "nixos-aarch64-widevine", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1716987116, @@ -424,6 +442,22 @@ } }, "nixpkgs_4": { + "locked": { + "lastModified": 1712122226, + "narHash": "sha256-pmgwKs8Thu1WETMqCrWUm0CkN1nmCKX3b51+EXsAZyY=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "08b9151ed40350725eb40b1fe96b0b86304a654b", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_5": { "locked": { "lastModified": 1716769173, "narHash": "sha256-7EXDb5WBw+d004Agt+JHC/Oyh/KTUglOaQ4MNjBbo5w=", @@ -439,7 +473,7 @@ "type": "github" } }, - "nixpkgs_5": { + "nixpkgs_6": { "locked": { "lastModified": 1686020360, "narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=", @@ -490,8 +524,9 @@ "flake-utils": "flake-utils_2", "home-manager": "home-manager", "nh": "nh", + "nixos-aarch64-widevine": "nixos-aarch64-widevine", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_5", "nixpkgs-master": "nixpkgs-master", "nixvim": "nixvim", "spicetify-nix": "spicetify-nix" @@ -516,7 +551,7 @@ "spicetify-nix": { "inputs": { "flake-utils": "flake-utils_4", - "nixpkgs": "nixpkgs_5" + "nixpkgs": "nixpkgs_6" }, "locked": { "lastModified": 1704167711, diff --git a/flake.nix b/flake.nix index 153da3c..390e210 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,7 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; + nixos-aarch64-widevine.url = "github:epetousis/nixos-aarch64-widevine"; nixpkgs-master.url = "github:NixOS/nixpkgs/master"; apple-silicon.url = "github:tpwrules/nixos-apple-silicon"; home-manager = { @@ -75,7 +76,7 @@ }; "alastor" = lib.nixosSystem { system = "aarch64-linux"; - modules = [./hosts/aarch64-linux/alastor]; + modules = [./hosts/aarch64-linux/alastor {nixpkgs.overlays = [ inputs.nixos-aarch64-widevine.overlays.default ];}]; specialArgs = {inherit inputs;}; }; }; diff --git a/hosts/aarch64-linux/alastor/default.nix b/hosts/aarch64-linux/alastor/default.nix index 2097094..332ce19 100644 --- a/hosts/aarch64-linux/alastor/default.nix +++ b/hosts/aarch64-linux/alastor/default.nix @@ -36,6 +36,8 @@ services.pcscd.enable = true; + environment.sessionVariables.MOZ_GMP_PATH = [ "${pkgs.widevine-cdm-lacros}/gmp-widevinecdm/system-installed" ]; + networking.hostName = "alastor"; # Define your hostname. # Pick only one of the below networking options. networking.wireless.iwd = {