diff --git a/clients/quadphone/overlays.nix b/clients/quadphone/overlays.nix index 04fd5b4..e26ef06 100644 --- a/clients/quadphone/overlays.nix +++ b/clients/quadphone/overlays.nix @@ -1,8 +1,4 @@ -{ - lib, - pkgs, - ... -}: { +{lib, ...}: { nixpkgs.overlays = [ (_: super: { ruby_3_3 = super.ruby_3_3.overrideAttrs (old: { @@ -16,10 +12,10 @@ ]; }); gnome-user-share = super.gnome-user-share.overrideAttrs (old: { - postPatch = lib.optionalString (pkgs.stdenv.buildPlatform != pkgs.stdenv.hostPlatform) '' + postPatch = lib.optionalString (super.stdenv.buildPlatform != super.stdenv.hostPlatform) '' substituteInPlace src/meson.build \ - --replace-fail "cargo_options += [ '--target-dir', meson.project_build_root() / 'src' ]" "cargo_options += [ '--target-dir', meson.project_build_root() / 'src', '--target=${pkgs.stdenv.hostPlatform.rust.rustcTarget}' ]" \ - --replace-fail "'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@'," "'cp', 'src' / '${pkgs.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name(), '@OUTPUT@'," + --replace-fail "cargo_options += [ '--target-dir', meson.project_build_root() / 'src' ]" "cargo_options += [ '--target-dir', meson.project_build_root() / 'src', '--target=${super.stdenv.hostPlatform.rust.rustcTarget}' ]" \ + --replace-fail "'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@'," "'cp', 'src' / '${super.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name(), '@OUTPUT@'," ''; }); }) diff --git a/flake.lock b/flake.lock index a78d041..4d818f8 100644 --- a/flake.lock +++ b/flake.lock @@ -1054,6 +1054,22 @@ "type": "github" } }, + "fontsCross": { + "locked": { + "lastModified": 1755477642, + "narHash": "sha256-sNX3Yl+9c5oFrbHiHHLFMdTei99s5DkYRHflxvlYRDQ=", + "owner": "Artturin", + "repo": "nixpkgs", + "rev": "371eef69fe2afce2175b8bd8a44e1daad99cefa2", + "type": "github" + }, + "original": { + "owner": "Artturin", + "ref": "fontscross", + "repo": "nixpkgs", + "type": "github" + } + }, "fromYaml": { "flake": false, "locked": { @@ -2629,6 +2645,7 @@ "disko": "disko", "firefox-gnome-theme": "firefox-gnome-theme", "flake-parts": "flake-parts", + "fontsCross": "fontsCross", "gnome-mobile": "gnome-mobile", "grapevine": "grapevine", "home-manager": "home-manager_2", diff --git a/flake.nix b/flake.nix index 46185d9..bb9fbde 100755 --- a/flake.nix +++ b/flake.nix @@ -8,6 +8,7 @@ url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; }; + fontsCross.url = "github:Artturin/nixpkgs/fontscross"; run0-sudo-shim = { url = "github:lordgrimmauld/run0-sudo-shim"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/modules/desktop/fonts.nix b/modules/desktop/fonts.nix new file mode 100644 index 0000000..de7b31e --- /dev/null +++ b/modules/desktop/fonts.nix @@ -0,0 +1,6 @@ +{pkgs, ...}: { + fonts = { + packages = with pkgs; [twitter-color-emoji]; + fontconfig.defaultFonts.emoji = ["Twitter Color Emoji"]; + }; +} diff --git a/modules/graphical/fonts.nix b/modules/graphical/fonts.nix index 4de7d34..ea3e5b9 100644 --- a/modules/graphical/fonts.nix +++ b/modules/graphical/fonts.nix @@ -1,12 +1,11 @@ {pkgs, ...}: { fonts = { - packages = with pkgs; [inter nerd-fonts.fira-code twitter-color-emoji]; + packages = with pkgs; [inter nerd-fonts.fira-code]; enableDefaultPackages = false; fontconfig.defaultFonts = rec { serif = ["Inter"]; sansSerif = serif; monospace = ["FiraCode Nerd Font"]; - emoji = ["Twitter Color Emoji"]; }; }; } diff --git a/modules/graphical/plymouth.nix b/modules/graphical/plymouth.nix deleted file mode 100644 index 04e7852..0000000 --- a/modules/graphical/plymouth.nix +++ /dev/null @@ -1 +0,0 @@ -{boot.plymouth.enable = true;}