1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-04-08 23:27:00 +02:00
parent b7e93fc970
commit ebf2035c54
No known key found for this signature in database
30 changed files with 305 additions and 462 deletions

View file

@ -1,5 +1,5 @@
{
services.flatpak.packages = [
"com.spotify.Client"
"io.github.dweymouth.supersonic"
];
}

View file

@ -1,5 +1,5 @@
{
services.flatpak.packages = [
"com.spotify.Client"
"io.github.dweymouth.supersonic"
];
}

View file

@ -0,0 +1,8 @@
{
users.users.futura = {
description = "Futura";
uid = 1001;
isNormalUser = true;
password = "futura";
};
}

View file

@ -1,5 +1,5 @@
{
services.flatpak.packages = [
"com.spotify.Client"
"io.github.dweymouth.supersonic"
];
}

View file

@ -25,6 +25,7 @@
xdebug.client_host = localhost
'';
# Wrap all PHP versions with the extensions I need and bundle composer
phps = lib.genAttrs supportedPhps (
phpName: let
phpBase = inputs.phps.packages.${pkgs.system}.${phpName};
@ -47,7 +48,6 @@
paths = [
phpWithEnv
phpWithEnv.packages.composer
pkgs.symfony-cli
];
};
in
@ -55,12 +55,32 @@
);
prefix = "/var/lib/phps";
# Tell Symfony's CLI where it can access the different PHP versions
symfony-cli = let
package = pkgs.symfony-cli;
in
pkgs.symlinkJoin {
inherit (package) pname version meta;
paths = [package];
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/${package.meta.mainProgram} \
--suffix PATH : ${pkgs.lib.makeBinPath (
builtins.attrValues phps
)}
'';
};
in {
nix.settings = {
substituters = ["https://fossar.cachix.org/"];
trusted-public-keys = ["fossar.cachix.org-1:Zv6FuqIboeHPWQS7ysLCJ7UT7xExb4OE8c4LyGb5AsE="];
};
# Link PHP installations so that PhpStorm knows about them
systemd.tmpfiles.settings =
builtins.mapAttrs (name: drv: {
"${prefix}/${name}"."L+".argument = drv.outPath;
@ -68,6 +88,8 @@ in {
phps;
environment.systemPackages = [
phps.${selectedPhp}.packages.composer
pkgs.jetbrains.phpstorm
phps.${selectedPhp}
symfony-cli
];
}

View file

@ -1,5 +0,0 @@
{pkgs, ...}: {
environment.systemPackages = [
pkgs.jetbrains.phpstorm
];
}

View file

@ -0,0 +1,35 @@
{
lib,
pkgs,
...
}: {
services = {
desktopManager = {
cosmic.enable = lib.mkForce false;
plasma6.enable = true;
};
displayManager = {
cosmic-greeter.enable = lib.mkForce false;
sddm = {
enable = true;
wayland.enable = true;
};
};
};
environment.systemPackages = [
pkgs.kdePackages.sddm-kcm
pkgs.kdePackages.discover
pkgs.kdePackages.kate
];
programs = {
kdeconnect.enable = true;
partition-manager.enable = true;
};
xdg.portal = {
xdgOpenUsePortal = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
};
}

View file

@ -0,0 +1,5 @@
{
services.flatpak.packages = [
"io.github.dweymouth.supersonic"
];
}

View file

@ -0,0 +1,10 @@
{pkgs, ...}: {
environment.systemPackages = [
pkgs.gnumake
pkgs.unzip
pkgs.pv
pkgs.jq
pkgs.mariadb
pkgs.openssl
];
}