Regenerated

This commit is contained in:
2026-03-22 18:56:53 +00:00
parent 6e4a125baf
commit a26c8f7391
33 changed files with 6 additions and 1512 deletions
@@ -1,69 +0,0 @@
{ pkgs, config, ... }:
let
username = config.defaultUser or "henrov";
in
{
environment.systemPackages = [
pkgs.emacs-pgtk.override { withTreeSitter = true; }
];
home-manager.users.${username} = {
home.stateVersion = "26.05";
programs.emacs = {
enable = true;
package = pkgs.emacs-pgtk.override { withTreeSitter = true; };
extraPackages = epkgs: with epkgs; [
#(epkgs.manualPackages.treesit-grammars.override { withAllGrammars = true; })
rust-mode
rustic
nix-mode
hcl-mode
nerd-icons
doom-modeline
diminish
eldoc
eldoc-box
pulsar
which-key
avy
consult
vertico
marginalia
crux
shell-pop
nerd-icons-corfu
corfu
cape
orderless
yasnippet
yasnippet-snippets
rg
exec-path-from-shell
eat
f
gptel
nixpkgs-fmt
envrc
catppuccin-theme
magit
expreg
vundo
puni
sideline
sideline-flymake
sideline-eglot
];
# Load your init.el via extraConfig
extraConfig = builtins.readFile ./init.el;
};
home.sessionVariables = {
EDITOR = "emacs";
XDG_SCREENSHOTS_DIR = "~/screenshots";
};
};
}
-57
View File
@@ -1,57 +0,0 @@
{ lib, config, ... }:
let
# --- Program definition ---
programName = "wofi";
# Path to assets
assetPath = ../../../assets/system/conf/${programName};
# Generate file mappings
programFiles =
if builtins.pathExists assetPath then builtins.readDir assetPath else {};
files = lib.genAttrs (builtins.attrNames programFiles) (name: {
src = "${assetPath}/${name}";
});
# Top-level toggle for this module
enableProgram = config.enableWofi or false;
# Default user
username = config.defaultUser or "henrov";
in
{
# --- Module option ---
options.enableWofi = lib.mkEnableOption "Enable Wofi terminal launcher";
# --- Config ---
config = lib.mkIf enableProgram {
# --- Deploy assets to ~/.config/wofi ---
environment.etc."${programName}".source = assetPath;
# --- Optional systemd service to sync config ---
systemd.services."${programName}-sync" = {
description = "Sync ${programName} configuration files";
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = ''
set -euo pipefail
if [ -d "${assetPath}" ]; then
for f in ${lib.concatStringsSep " " (builtins.attrNames files)}; do
mkdir -p "/home/${username}/.config/${programName}"
cp -u "${assetPath}/$f" "/home/${username}/.config/${programName}/$f"
done
fi
'';
};
restartTriggers = [ assetPath ];
path = [];
};
};
}
@@ -1,12 +0,0 @@
{ lib, pkgs, config, ... }:
{
options.enableFonts = lib.mkEnableOption "Enable nerd fonts";
config = lib.mkIf (config.enableFonts or false) {
fonts.packages = with pkgs; [
nerd-fonts.iosevka
nerd-fonts.fira-code
];
};
}
@@ -1,45 +0,0 @@
{ lib, config, ... }:
let
# --- Module variables ---
moduleName = "waybar";
username = config.defaultUser or "henrov";
# Assets directory (self-contained)
assetPath = ../../../assets/system/conf/${moduleName};
# Read required config files
waybarConfig = "${assetPath}/waybar.conf";
waybarStyle = "${assetPath}/style.css";
# Top-level toggle
enableProgram = config.enableWaybar or false;
in
{
# --- Option ---
options.enableWaybar =
lib.mkEnableOption "Enable Waybar status bar";
# --- Config ---
config = lib.mkIf enableProgram {
# Install Waybar (symbolic reference expected to be resolved elsewhere)
environment.systemPackages = [
"waybar"
];
# Deploy only required files to ~/.config/waybar
home-manager.users.${username}.xdg.configFile = {
"waybar/config".source =
if builtins.pathExists waybarConfig
then waybarConfig
else null;
"waybar/style.css".source =
if builtins.pathExists waybarStyle
then waybarStyle
else null;
};
};
}
-13
View File
@@ -1,13 +0,0 @@
{ config, pkgs, lib, ... }:
{
services.dbus = lib.mkForce {
enable = true; # Force this to be true
};
# Configure dbus-broker via its configuration file
environment.etc."dbus-broker/launch.conf".text = ''
[General]
LogLevel=warning
MaxConnectionsPerUser=2048
'';
}