Initial commit of NixOS config

This commit is contained in:
2025-08-07 14:04:06 +02:00
commit 3255b199db
24 changed files with 996 additions and 0 deletions

29
lockscreen.nix Normal file
View File

@ -0,0 +1,29 @@
{ config, pkgs, lib, ... }:
let
# Define the custom background package with the correct relative path
background-package = pkgs.stdenvNoCC.mkDerivation {
name = "background-image";
src = ./other/wallpaper.png; # Place wallpaper.jpg in the same directory as this config file
dontUnpack = true;
installPhase = ''
cp $src $out
'';
};
in
{
# X11 and KDE Plasma configuration
#services.xserver.enable = true;
services.displayManager.sddm = {
enable = lib.mkDefault true;
theme = "breeze";
wayland.enable = true;
};
environment.systemPackages = with pkgs; [
(pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
[General]
background = "${background-package}"
'')
];
}