Regenerated

This commit is contained in:
2026-03-22 06:17:05 +00:00
parent 4e7557b044
commit 91d1ffeede
33 changed files with 0 additions and 1557 deletions
@@ -1,46 +0,0 @@
{ lib, config, pkgs, inputs, ... }:
let
username = config.defaultUser or "henrov";
# Paths
assetPath = ../../../assets/hyprland/conf/hypr;
mainConfig = "${assetPath}/hyprland.conf";
# Determine Hyprland package with fallbacks
hyprlandPkg =
pkgs.hyprland or
pkgs.hyprland-git or
inputs.hyprland.packages.${pkgs.system}.default;
# Map all files in the asset folder
hyprFiles =
builtins.listToAttrs (
map (f: {
name = ".config/hypr/${f}";
value = { source = "${assetPath}/${f}"; };
}) (builtins.attrNames (builtins.readDir assetPath))
);
in
{
# System-wide package
environment.systemPackages = [ hyprlandPkg ];
# Home Manager user settings
_module.args.hmUsers = {
${username} = {
home.packages = [ hyprlandPkg ];
# Merge main config + all other files
home.file = lib.mkMerge [
hyprFiles
{
".config/hypr/hyprland.conf" = { source = mainConfig; };
}
];
# Optional module-specific settings
settings.general."col.active_border" = "0xff97cbcd 0xff89b4fa";
};
};
}
@@ -1,65 +0,0 @@
{ lib, config, ... }:
let
# --- Module variables ---
moduleName = "stylix";
username = config.defaultUser or "henrov";
# Assets directory for Stylix config
assetPath = ../../../assets/system/conf/${moduleName};
# Read all config files
programFiles = builtins.readDir assetPath;
files = lib.genAttrs (builtins.attrNames programFiles) (name: {
src = "${assetPath}/${name}";
});
# Top-level toggle for this module
enableProgram = config.enableStylix or false;
# Read the main stylix.conf
stylixConfFile = "${assetPath}/stylix.conf";
stylixConf = if builtins.pathExists stylixConfFile
then builtins.readFile stylixConfFile
else "";
# Default cursor values
cursorName = "phinger-cursors-light";
cursorSize = 24;
in
{
# --- Top-level toggle ---
options.enableStylix = lib.mkEnableOption "Enable Stylix system theming";
# --- Only apply configuration if enabled ---
config = lib.mkIf enableProgram {
# Deploy Stylix configuration files to user's XDG config
home-manager.users.${username}.xdg.configFile =
lib.mapAttrs' (name: value: {
name = "${moduleName}/${name}";
value.source = value.src;
}) files;
# Merge all session variables into a single map
home-manager.users.${username}.home.sessionVariables = lib.mkMerge [
{
STYLIX_CONF = stylixConf;
}
{
XCURSOR_THEME = cursorName;
XCURSOR_SIZE = toString cursorSize;
HYPRCURSOR_THEME = cursorName;
HYPRCURSOR_SIZE = toString cursorSize;
}
];
# Optional wallpaper helper packages (symbolic, install manually or via packages)
environment.systemPackages = [
"feh"
"st"
];
};
}
@@ -1,34 +0,0 @@
{ lib, config, pkgs, inputs, ... }:
let
# Default user fallback
username = config.defaultUser or "henrov";
# Safe package reference with flake input fallback
xdgPortalHyprlandPkg = pkgs.xdg-desktop-portal-hyprland or
inputs.xdgPortalHyprland.packages.${pkgs.system}.default;
in
{
# System-wide installation of XDG portal package
environment.systemPackages = [
xdgPortalHyprlandPkg
];
# Home Manager user configuration
_module.args.hmUsers = {
${username} = {
home.packages = [
xdgPortalHyprlandPkg
];
# Enable XDG portal for Hyprland
xdg.portal = {
enable = true;
extraPortals = [ xdgPortalHyprlandPkg ];
config.hyprland = {
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
};
};
};
};
}
@@ -1,8 +0,0 @@
{ config, pkgs, ... }:
{
# (NVF = Neovim/terminal flavor)
stylix.targets.nvf.enable = true;
# feh wallpaper integration
stylix.targets.feh.enable = true;
}
@@ -1,36 +0,0 @@
{ lib, pkgs, config, ... }:
let
username = config.defaultUser or "henrov";
moduleName = "kitty";
# Paths and files
assetPath = ../../../assets/system/conf/${moduleName};
programFiles = builtins.readDir assetPath;
files = lib.genAttrs (builtins.attrNames programFiles) (name: {
src = "${assetPath}/${name}";
});
in
{
# Install kitty system-wide
environment.systemPackages = [ pkgs.kitty ];
# Home Manager user-specific configuration
_module.args.hmUsers = {
${username} = {
programs.kitty.enable = true;
# Extra user config snippet
programs.kitty.extraConfig = ''
# Include the Catppuccin-Mocha theme
include themes/Catppuccin-Mocha.conf
'';
# Copy all asset files into ~/.config/kitty/
home.file = lib.mkMerge (
map (name: { ".config/${moduleName}/${name}" = { source = files.${name}.src; }; })
(builtins.attrNames files)
);
};
};
}
@@ -1,26 +0,0 @@
{ lib, config, pkgs, ... }:
let
username = config.defaultUser or "henrov";
# Paths
starshipAssets = ../../../assets/system/conf/starship.toml;
in
{
# Install Starship system-wide
environment.systemPackages = [
pkgs.starship
];
# Home Manager user settings
_module.args.hmUsers = {
${username} = {
home.packages = [
pkgs.starship
];
# Copy the config into ~/.config
home.file.".config/starship.toml".source = starshipAssets;
};
};
}
@@ -1,35 +0,0 @@
{ lib, pkgs, config, ... }:
let
username = config.defaultUser or "henrov";
programName = "zsh";
programAssets = ../../../assets/system/conf/${programName};
zshInitFile = "${programAssets}/zsh.conf";
in
{
# System-wide package
environment.systemPackages = [ pkgs.zsh ];
# Home Manager user settings
_module.args.hmUsers = {
${username} = {
# Enable Zsh + Oh-My-Zsh
programs.zsh = {
enable = true;
ohMyZsh.enable = true;
ohMyZsh.theme = "catppuccin-mocha";
ohMyZsh.plugins = [
"git"
"docker"
"direnv"
"zsh-autosuggestions"
"zsh-completions"
"zsh-history-substring-search"
];
# Inject contents of zsh.conf
shellInit = builtins.readFile zshInitFile;
};
};
};
}
@@ -1,26 +0,0 @@
{ lib, config, pkgs, ... }:
let
username = "henrov";
in
{
# NixOS user
users.users.${username} = {
isNormalUser = true;
home = "/home/${username}";
hashedPassword = "$6$S7iShgBxB.77CwmP$i0njK.2r3OL5UEvgZbmwZ0rnpZ4QyJcv8p9uCmJ4AiVPSMXkQkIwMLzyAOnJ0q8.tPLIp/7EquEIZeK8qbmgw/";
extraGroups = [ "wheel" "networkmanager" ];
};
# Home Manager user definition
_module.args.hmUsers = {
${username} = {
home.username = username;
home.homeDirectory = "/home/${username}";
home.stateVersion = "26.05";
# Example: user packages
home.packages = [ pkgs.git pkgs.vim ];
};
};
}