a little restructuring of home manager to focus on host specific configs

This commit is contained in:
2025-11-01 12:33:27 -05:00
parent ba2bcba53b
commit 84b7477cff
12 changed files with 118 additions and 74 deletions

View File

@@ -34,6 +34,13 @@
# allow proprietary packages
nixpkgs.config.allowUnfree = true;
# fix power buttons
services.logind.settings.Login = {
HandlePowerKey = "suspend";
HandleLidSwitch = "suspend";
#HibernateDelaySec = "30min";
};
# power management
services.autoaspm.enable = true;
powerManagement.powertop.enable = true;

View File

@@ -22,6 +22,7 @@
tailscale.enable = true;
};
# boot (systemd is going on me)
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
boot.loader.efi.canTouchEfiVariables = true;

View File

@@ -0,0 +1,22 @@
{
pkgs,
lib,
config,
...
}: {
imports = [
./librewolf
./kitty
./waybar
./hypr
./neovim
./lf
./zsh
./ssh
./gpg
./git
./xdg
];
}

View File

@@ -359,6 +359,7 @@
};
home.pointerCursor = {
dotIcons.enable = false;
enable = true;
gtk.enable = true;
x11.enable = true;

View File

@@ -3,31 +3,40 @@
lib,
config,
...
}: {
programs.kitty = {
enable = true;
# enableZshIntegration = true;
enableGitIntegration = true;
#darwinLaunchOptions = [""];
settings = {
dynamic_background_opacity = "no";
confirm_os_window_close = "0";
shell_integration = "enabled";
cursor = "#d0d0d0";
cursor_shape = "beam";
cursor_beam_thickness = 2.5;
foreground = "#dddddd";
background = "#2F1730";
background_opacity = 0.9;
selection_foreground = "none";
selection_background = "none";
term = "xterm-256color";
};
# font = {
# package = ;
# name = ;
# size = 12;
# };
}: let
program = "kitty";
cfg = config.dots.${program};
#sec = sops.secrets;
in {
options.dots.${program} = {
enable = lib.mkEnableOption "enables ${program}";
};
config = lib.mkIf cfg.enable {
programs.${program} = {
enable = true;
# enableZshIntegration = true;
enableGitIntegration = true;
#darwinLaunchOptions = [""];
settings = {
dynamic_background_opacity = "no";
confirm_os_window_close = "0";
shell_integration = "enabled";
cursor = "#d0d0d0";
cursor_shape = "beam";
cursor_beam_thickness = 2.5;
foreground = "#dddddd";
background = "#2F1730";
background_opacity = 0.9;
selection_foreground = "none";
selection_background = "none";
term = "xterm-256color";
};
# font = {
# package = ;
# name = ;
# size = 12;
# };
};
};
}

View File

@@ -1,21 +1,34 @@
{
pkgs,
lib,
config,
...
}: {
}:
let
program = "lf";
cfg = config.dots.${program};
#sec = sops.secrets;
in {
options.dots.${program} = {
enable = lib.mkEnableOption "enables ${program}";
};
config = lib.mkIf cfg.enable {
# just using the normal lfrc
programs.lf = {
enable = false;
};
programs.${program} = {
enable = false;
};
# install it to userspace
home.packages = with pkgs; [lf ctpv trashy];
# install it to userspace
home.packages = with pkgs; [lf ctpv trashy];
# link configs
xdg.configFile."lf/lfrc" = {
source = config.lib.file.mkOutOfStoreSymlink "/home/blake/.nix/users/blake/dots/lf/lfrc";
};
xdg.configFile."ctpv/config" = {
source = config.lib.file.mkOutOfStoreSymlink "/home/blake/.nix/users/blake/dots/lf/ctpv_config";
# link configs
xdg.configFile."lf/lfrc" = {
source = config.lib.file.mkOutOfStoreSymlink "/home/blake/.nix/users/blake/dots/lf/lfrc";
};
xdg.configFile."ctpv/config" = {
source = config.lib.file.mkOutOfStoreSymlink "/home/blake/.nix/users/blake/dots/lf/ctpv_config";
};
};
}

View File

@@ -1,10 +1,23 @@
{
pkgs,
lib,
config,
...
}: {
# just using the normal lfrc
programs.librewolf = {
enable = true;
}:
let
program = "librewolf";
cfg = config.dots.${program};
#sec = sops.secrets;
in {
options.dots.${program} = {
enable = lib.mkEnableOption "enables ${program}";
};
config = lib.mkIf cfg.enable {
# just using the normal lfrc
programs.${program} = {
enable = true;
};
};
}

View File

@@ -5,6 +5,7 @@
}: {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"git.blakedheld.xyz" = {
user = "gitea";

View File

@@ -21,7 +21,7 @@ in
{
imports = [
inputs.sops-nix.homeManagerModules.sops
#./os/${platform}.nix
./dots
./dots/neovim
./dots/lf
./dots/zsh

View File

@@ -8,12 +8,17 @@
{
imports = [
../dots/hypr
../dots/kitty
../dots/waybar
../dots/librewolf
../dots
];
dots = {
lf.enable = true;
kitty.enable = true;
librewolf.enable = true;
};
home.packages = with pkgs; [
htop
sl

View File

@@ -1,11 +0,0 @@
{
config,
lib,
pkgs,
inputs,
...
}:
{
}

View File

@@ -1,17 +0,0 @@
{
config,
lib,
pkgs,
inputs,
...
}:
{
imports = [
];
home.packages = with pkgs; [
htop
sl
];
}