diff --git a/nixos/modules/services/desktop-managers/cosmic.nix b/nixos/modules/services/desktop-managers/cosmic.nix index eae24f71eacc..342e1d7e3d5a 100644 --- a/nixos/modules/services/desktop-managers/cosmic.nix +++ b/nixos/modules/services/desktop-managers/cosmic.nix @@ -72,6 +72,8 @@ in environment.pathsToLink = [ "/share/backgrounds" "/share/cosmic" + "/share/cosmic-layouts" + "/share/cosmic-themes" ]; environment.systemPackages = utils.removePackagesByName ( corePkgs diff --git a/pkgs/by-name/co/cosmic-initial-setup/package.nix b/pkgs/by-name/co/cosmic-initial-setup/package.nix index 08aad02cf6b4..63558e905a57 100644 --- a/pkgs/by-name/co/cosmic-initial-setup/package.nix +++ b/pkgs/by-name/co/cosmic-initial-setup/package.nix @@ -3,6 +3,7 @@ stdenv, rustPlatform, fetchFromGitHub, + fetchpatch2, just, libcosmicAppHook, libinput, @@ -24,6 +25,8 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-orwK9gcFXK4/+sfwRubcz0PP6YAFqsENRHnlSLttLxM="; + buildFeatures = [ "nixos" ]; + # cargo-auditable fails during the build when compiling the `crabtime::function` # procedural macro. It panics because the `--out-dir` flag is not passed to # the rustc wrapper. @@ -47,6 +50,12 @@ rustPlatform.buildRustPackage (finalAttrs: { patches = [ ./disable-language-page.patch ./disable-timezone-page.patch + # TODO: Remove in next update + (fetchpatch2 { + name = "fix-layout-and-themes-page.patch"; + url = "https://patch-diff.githubusercontent.com/raw/pop-os/cosmic-initial-setup/pull/53.diff?full_index=1"; + hash = "sha256-081qyQnPhh+FRPU/JKJVCK+l3SKjHAIV5b6/7WN6lb8="; + }) ]; postPatch = ''