nixos: apply changes for 25.05

This commit is contained in:
Wroclaw 2025-05-24 09:39:22 +02:00
parent 81518b6f0c
commit 8550725910
3 changed files with 18 additions and 13 deletions

View file

@ -23,7 +23,7 @@
}) })
vesktop vesktop
unstablePkgs.vscode unstablePkgs.vscode
gimp gimp3
inkscape inkscape
jitsi-meet-electron jitsi-meet-electron
krita krita

View file

@ -8,7 +8,7 @@
config = { config = {
services.printing.enable = true; services.printing.enable = true;
hardware.pulseaudio.enable = false; services.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -103,7 +103,7 @@
# Fonts # Fonts
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
corefonts corefonts
(nerdfonts.override { fonts = [ "Meslo" ]; }) nerd-fonts.meslo-lg
roboto roboto
]; ];

View file

@ -7,19 +7,24 @@
}: }:
let let
cosmic-configuration = pkgs.substituteAllFiles { cosmic-configuration = pkgs.stdenv.mkDerivation {
name = "cosmic-configuration"; name = "cosmic-configuration";
src = ./cosmic-config; src = ./cosmic-config;
files = [ "." ]; # All files
postInstall = ''
mkdir -p $share/share/cosmic
cp -rt $share/share/cosmic $out/*
'';
outputs = [ "out" "share" ]; outputs = [ "out" "share" ];
dontConfigure = true;
wallpaper = builtins.path { path = "${self}/media/wallpaper.png"; }; buildPhase = ''
corner_radii_theme = "2.0"; for file in $(find . -type f); do
corner_radii_panel = "2"; substituteInPlace "$file" \
--subst-var-by wallpaper "${builtins.path { path = "${self}/media/wallpaper.png"; }}" \
--subst-var-by corner_radii_theme "2.0" \
--subst-var-by corner_radii_panel "2"
done
'';
installPhase = ''
mkdir -p $out $share/share/cosmic
cp -r ./* $out/
cp -r ./* $share/share/cosmic/
'';
}; };
in in