Regenerated
This commit is contained in:
+13
-21
@@ -624,30 +624,19 @@ in
|
||||
|
||||
** =generated/modules/traveldroid/desktop/stylix.nix=
|
||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/desktop/stylix.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
{ pkgs, lib, config, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
# Determine the default username from host config
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
moduleName = "stylix";
|
||||
assetPath = "${flakeRoot}/assets/traveldroid/conf/";
|
||||
|
||||
# Read all files in the asset directory
|
||||
programFiles = builtins.readDir assetPath;
|
||||
|
||||
files = lib.genAttrs (builtins.attrNames programFiles) (name: {
|
||||
source = "${assetPath}/${name}";
|
||||
});
|
||||
|
||||
# Optional stylix.conf
|
||||
stylixConfFile = "${assetPath}/stylix.conf";
|
||||
stylixConf =
|
||||
if builtins.pathExists stylixConfFile
|
||||
then builtins.readFile stylixConfFile
|
||||
else "";
|
||||
|
||||
# Cursor defaults
|
||||
cursorName = "phinger-cursors-light";
|
||||
cursorSize = 24;
|
||||
in
|
||||
@@ -660,23 +649,26 @@ in
|
||||
pkgs.st
|
||||
];
|
||||
|
||||
# Enable Stylix GTK globally
|
||||
stylix.targets.gtk.enable = true;
|
||||
|
||||
############################
|
||||
# Home Manager user config
|
||||
############################
|
||||
_module.args.hmUsers = {
|
||||
${username} = {
|
||||
home-manager.users = lib.recursiveUpdate (config.home-manager.users or {}) {
|
||||
"${username}" = {
|
||||
stylix = {
|
||||
enable = true;
|
||||
|
||||
# Map all config files into ~/.config/stylix/
|
||||
xdg.configFile =
|
||||
lib.mapAttrs' (name: value: {
|
||||
targets = {
|
||||
gtk = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile = lib.mapAttrs' (name: value: {
|
||||
name = "${moduleName}/${name}";
|
||||
value = { inherit (value) source; };
|
||||
}) files;
|
||||
};
|
||||
|
||||
# Environment variables for the session
|
||||
home.sessionVariables = {
|
||||
STYLIX_CONF = "$HOME/.config/stylix/stylix.conf";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user