Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: MIT

{ lib, ... }:
{ pkgs, lib, ... }:
{
imports = [
# Filesystem configuration
Expand Down Expand Up @@ -62,5 +62,12 @@
securix.graphical-interface = {
variant = "kde";
terminalVariant = "kitty";

kde = {
lookAndFeelPackages = [
pkgs.securixThemes.example
];
defaultLookAndFeel = "org.acmecorp.example";
};
};
}
8 changes: 7 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ let

defaultEdition = "acmecorp-bureautix";

pkgs' = pkgs.extend (

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super convinced of using extend here, we should probably drop it and apply overlays ourselves.

final: prev: {
securixThemes = final.callPackage ./themes { };
}
);

securix = import securixSrc {
edition = defaultEdition;
defaultTags = [ defaultEdition ];
inherit pkgs;
pkgs = pkgs';
# We override to use our own Disko which contains a patch for the office_v1 layout.
sourcesOverrides =
sources':
Expand Down
57 changes: 57 additions & 0 deletions themes/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# SPDX-FileCopyrightText: 2025 Ryan Lahfa <ryan.lahfa@numerique.gouv.fr>
#
# SPDX-License-Identifier: MIT

{ mkPlasmaLookAndFeelPackage }:
{
example = mkPlasmaLookAndFeelPackage {
name = "Example";
version = "0.01";

metadata = {
id = "org.acmecorp.example";
description = "Example - Example theme based on Breeze Light";

# Credits:
#
# Wallpaper comes from https://unsplash.com/fr/@bernardhermant
# https://unsplash.com/fr/photos/un-mur-blanc-avec-une-horloge-sur-le-cote-0D5KCGpz-_4
# Icon comes from freepik.com

authors = {
rlahfa = {
name = "Ryan Lahfa";
email = "ryan.lahfa.ext@numerique.gouv.fr";
};
};

# https://spdx.org/licenses/etalab-2.0.html
license = "etalab-2.0";
};

defaults = {
kdeglobals = {
KDE.widgetStyle = "Breeze";
General.ColorScheme = "BreezeLight";
Icons.Theme = "breeze";
};
# Default wallpaper.
Wallpaper.Image = "GeometricWhite";
plasmarc.Theme = "default";
kcminputrc.Mouse.cursorTheme = "breeze_cursors";
kwinrc = {
"org.kde.kdecoration2" = {
library = "org.kde.breeze";
theme = "Breeze";
};
};
KSplash.Theme = "org.kde.Breeze";
};

icons = ./example-org/icons;
wallpapers = ./example-org/wallpapers;
launcherIcon = "example-launch";
previews = ./example-org/previews;
splash = null;
};
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Freepik

SPDX-License-Identifier: FreepikLicense
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Bernard Hermant

SPDX-License-Identifier: UnsplashFreeLicense
9 changes: 9 additions & 0 deletions themes/example-org/wallpapers/GeometricWhite/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"KPlugin": {
"Authors": [ { "Email": "", "Name": "Bernard Hermant" } ],
"Website": "...",
"Id": "GeometricWhite",
"License": "",
"Name": "Geometric White"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Ryan Lahfa <ryan.lahfa@numerique.gouv.fr>

SPDX-License-Identifier: MIT
Loading