Regenerated
This commit is contained in:
@@ -8,13 +8,15 @@ let
|
||||
assetPath = "${flakeRoot}/assets/system/conf/${moduleName}";
|
||||
|
||||
# Read all files in the asset directory
|
||||
programFiles = builtins.readDir assetPath;
|
||||
assetFiles = builtins.attrNames (builtins.readDir assetPath);
|
||||
|
||||
files = lib.genAttrs (builtins.attrNames programFiles) (name: {
|
||||
source = "${assetPath}/${name}";
|
||||
# Convert files to Home Manager xdg config entries
|
||||
stylixFiles = lib.genAttrs assetFiles (f: {
|
||||
name = ".config/${moduleName}/${f}";
|
||||
value = { source = "${assetPath}/${f}"; };
|
||||
});
|
||||
|
||||
# Optional stylix.conf
|
||||
# Optional stylix.conf contents
|
||||
stylixConfFile = "${assetPath}/stylix.conf";
|
||||
stylixConf =
|
||||
if builtins.pathExists stylixConfFile
|
||||
@@ -26,24 +28,22 @@ let
|
||||
cursorSize = 24;
|
||||
in
|
||||
{
|
||||
#################################
|
||||
############################
|
||||
# System packages
|
||||
#################################
|
||||
############################
|
||||
environment.systemPackages = [
|
||||
pkgs.feh
|
||||
pkgs.st
|
||||
];
|
||||
|
||||
#################################
|
||||
############################
|
||||
# Home Manager user-level configuration
|
||||
#################################
|
||||
############################
|
||||
# Follow the hyprland pattern to avoid "option does not exist"
|
||||
_module.args.hmUsers = {
|
||||
"${username}" = {
|
||||
# Copy all stylix config files into ~/.config/stylix/
|
||||
home.file = lib.mkMerge (lib.mapAttrs' (name: value: {
|
||||
name = "${moduleName}/${name}";
|
||||
value = { inherit (value) source; };
|
||||
}) files);
|
||||
# Merge all Stylix asset files into ~/.config/stylix/
|
||||
home.file = lib.mkMerge stylixFiles;
|
||||
|
||||
# Include stylix.conf if it exists
|
||||
home.file."${moduleName}/stylix.conf".text = stylixConf;
|
||||
|
||||
Reference in New Issue
Block a user