trying several things in order to figure out why plasma-manager is not co-operating...

This commit is contained in:
Chris Kruining 2025-03-23 14:58:05 +01:00
parent ce1d40f6a2
commit ec7429d384
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
5 changed files with 48 additions and 52 deletions

View file

@ -72,18 +72,8 @@
unstable = pkgs-unstable;
my = self.packages.${system};
};
# nvfetcher = final: prev: {
# sources =
# builtins.mapAttrs (_: p: p.src)
# ((import ./packages/_sources/generated.nix) {
# inherit (final) fetchurl fetchgit fetchFromGitHub dockerTools;
# });
# };
};
# packages."${system}" = mapModules ./packages (p: pkgs.callPackage p {});
nixosModules =
{
sneeuwvlok = import ./.;

View file

@ -1,6 +1,5 @@
{ config, options, lib, pkgs, user, ... }:
{ inputs, config, lib, pkgs, user, ... }:
let
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf;
cfg = config.modules.${user}.desktop.plasma;
@ -20,10 +19,20 @@ in
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs.kdePackages; [
kcoreaddons
];
# environment.plasma6.excludePackages = with pkgs.kdePackages; [ konsole kate ghostwriter oxygen ];
environment.sessionVariables.NIXOS_OZONE_WL = "1";
services = {
xserver.enable = true;
desktopManager.plasma6.enable = true;
displayManager = {
defaultSession = "plasma";
sddm = {
enable = true;
wayland.enable = true;
@ -35,19 +44,22 @@ in
};
};
environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.plasma6.excludePackages = with pkgs.kdePackages; [ konsole kate ghostwriter ];
# should enable theme integration with gtk apps (i.e. firefox, thunderbird)
programs.dconf.enable = true;
home-manager = {
sharedModules = [
inputs.plasma-manager.homeManagerModules.plasma-manager
];
};
home-manager.users.${user}.programs.plasma = {
enable = true;
immutableByDefault = true;
immutableByDefault = false;
windows.allowWindowsToRememberPositions = true;
workspace = {
lookAndFeel = "org.kde.breezedark.desktop";
colorScheme = "CatppuccinMocha";
};
spectacle.shortcuts = {
@ -120,12 +132,23 @@ in
autoSuspend.action = "nothing";
dimDisplay.enable = false;
turnOffDisplay = {
idleTimeout = "never";
};
};
lowBattery = {
powerButtonAction = "shutDown";
whenLaptopLidClosed = "doNothing";
autoSuspend.action = "nothing";
dimDisplay.enable = false;
turnOffDisplay = {
idleTimeout = "never";
};
};
};
kscreenlocker = {
autoLock = false;
lockOnResume = false;
@ -146,6 +169,18 @@ in
XftSubPixel = "rgb";
};
};
kwalletrc = {
Wallet.Enabled = false;
};
plasmarc = {
General = {
RaiseMaximumVolume = true;
VolumeStep = 2;
};
};
kcminputrc = {
Keyboard.NumLock.value = 0;
};
};
};
};

View file

@ -25,8 +25,8 @@ in {
enable = true;
settings = {
background-blur-radius = 20;
theme = "dark:everforest,light:everforest";
window-theme = "dark";
theme = "dark:stylix,light:stylix";
window-theme = config.stylix.polarity;
background-opacity = 0.8;
minimum-contrast = 1.1;
};

View file

@ -35,19 +35,12 @@ in {
stylix = {
enable = true;
autoEnable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/${cfg.theme}.yaml";
image = ./${cfg.theme}.jpg;
polarity = cfg.polarity;
targets = {
grub.enable = true;
plymouth.enable = true;
console.enable = true;
nixos-icons.enable = true;
qt.enable = true;
};
fonts = {
serif = {
package = pkgs.dejavu_fonts;

View file

@ -1,22 +0,0 @@
{ lib, pkgs ? import <nixpkgs> {} }:
let
inherit (lib.attrsets) attrValues;
inherit (lib.meta) getExe;
in
pkgs.mkShell {
buildInputs = attrValues {
inherit (pkgs) git nix-bash-completions;
};
shellHook = let
inherit (pkgs) nixStable writeShelScriptBin;
nixBin = writeShellScriptBin "nix" ''
${ getExe nixStable} --option experimental-features "nix-command flakes" "$@"
'';
in ''
export FLAKE="$(pwd)"
export PATH="$FLAKE/bin:${nixBin}/bin:$PATH"
'';
}