diff --git a/flake.lock b/flake.lock index 4f07cef..b4b385f 100644 --- a/flake.lock +++ b/flake.lock @@ -50,11 +50,11 @@ ] }, "locked": { - "lastModified": 1693187908, - "narHash": "sha256-cTcNpsqi1llmUFl9bmCdD0mTyfjhBrNFPhu2W12WXzA=", + "lastModified": 1693713564, + "narHash": "sha256-00w2uwb4O6Y1e2W5LG5UFyl1ZN3KFG7aoRdYEvT/BqA=", "owner": "nix-community", "repo": "home-manager", - "rev": "8bde7a651b94ba30bd0baaa9c4a08aae88cc2e92", + "rev": "8e49b883890ccb52c059abb152b00a416342ec1c", "type": "github" }, "original": { @@ -106,11 +106,11 @@ ] }, "locked": { - "lastModified": 1693107069, - "narHash": "sha256-5dVXPchyvzmytanlwXHcmeQP9AfO/98Q6V+QtsMl5vQ=", + "lastModified": 1693711723, + "narHash": "sha256-5QmlVzskLciJ0QzYmZ6ULvKA7bP6pgV9wwrLBB0V3j0=", "owner": "Mic92", "repo": "nix-index-database", - "rev": "53d40cf1bea235658ef8f6e8b8a1d033e2ecbfff", + "rev": "aca56a79afb82208af2b39d8459dd29c10989135", "type": "github" }, "original": { @@ -126,11 +126,11 @@ ] }, "locked": { - "lastModified": 1693107069, - "narHash": "sha256-5dVXPchyvzmytanlwXHcmeQP9AfO/98Q6V+QtsMl5vQ=", + "lastModified": 1693711723, + "narHash": "sha256-5QmlVzskLciJ0QzYmZ6ULvKA7bP6pgV9wwrLBB0V3j0=", "owner": "Mic92", "repo": "nix-index-database", - "rev": "53d40cf1bea235658ef8f6e8b8a1d033e2ecbfff", + "rev": "aca56a79afb82208af2b39d8459dd29c10989135", "type": "github" }, "original": { @@ -141,11 +141,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1692952286, - "narHash": "sha256-TsrtPv3+Q1KR0avZxpiJH+b6fX/R/hEQVHbjl1ebotY=", + "lastModified": 1693718952, + "narHash": "sha256-+nGdJlgTk0MPN7NygopipmyylVuAVi7OItIwTlwtGnw=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "817e297fc3352fadc15f2c5306909aa9192d7d97", + "rev": "793de77d9f83418b428e8ba70d1e42c6507d0d35", "type": "github" }, "original": { @@ -157,11 +157,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1693231525, - "narHash": "sha256-Zmh8m0HHcgGBDth6jdJPmc4UAAP0L4jQmqIztywF1Iw=", + "lastModified": 1693771906, + "narHash": "sha256-32EnPCaVjOiEERZ+o/2Ir7JH9pkfwJZJ27SKHNvt4yk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c540061ac8d72d6e6d99345bd2d590c82b2f58c1", + "rev": "da5adce0ffaff10f6d0fee72a02a5ed9d01b52fc", "type": "github" }, "original": { @@ -172,11 +172,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1693250523, - "narHash": "sha256-y3up5gXMTbnCsXrNEB5j+7TVantDLUYyQLu/ueiXuyg=", + "lastModified": 1693663421, + "narHash": "sha256-ImMIlWE/idjcZAfxKK8sQA7A1Gi/O58u5/CJA+mxvl8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3efb0f6f404ec8dae31bdb1a9b17705ce0d6986e", + "rev": "e56990880811a451abd32515698c712788be5720", "type": "github" }, "original": { diff --git a/machines/SurfaceGo/configuration.nix b/machines/SurfaceGo/configuration.nix index 024bd92..dbf1759 100644 --- a/machines/SurfaceGo/configuration.nix +++ b/machines/SurfaceGo/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running `nixos-help`). -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { # Use grub boot loader @@ -26,6 +26,13 @@ # Allow unfree packages nixpkgs.config.allowUnfree = true; + /* + As of commit 793de77d9f83418b428e8ba70d1e42c6507d0d35 of nixos-hardware, the + default kerrnel version for the Surface Go is 6.1.18, which fails to build. + Setting it to 6.4.12 works around this + */ + microsoft-surface.kernelVersion = lib.mkForce "6.4.12"; + # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; diff --git a/roles/desktop/programs/discord.nix b/roles/desktop/programs/discord.nix index 5f47f87..5142192 100644 --- a/roles/desktop/programs/discord.nix +++ b/roles/desktop/programs/discord.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: let discordOverlay = self: super: { @@ -7,8 +7,19 @@ withVencord = true; }; }; + stock-discord = self: super: { + discord = super.discord.override { + withOpenASAR = false; + withVencord = false; + }; + }; in { + # Sometimes discord breaks after updates, and launching it stock once fixes it + specialisation.stockDiscord.configuration = { + nixpkgs.overlays = lib.mkAfter [ stock-discord ]; + }; + nixpkgs.overlays = [ discordOverlay ]; users.users.toast.packages = with pkgs; [ discord