Regenerated

This commit is contained in:
2026-03-22 18:59:32 +00:00
parent 5c8867a8df
commit fb5c05f49f
32 changed files with 1491 additions and 0 deletions
@@ -0,0 +1,69 @@
{ 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";
};
};
}
@@ -0,0 +1,12 @@
{ 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
];
};
}
@@ -0,0 +1,45 @@
{ 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
@@ -0,0 +1,13 @@
{ 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
'';
}