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 # allow proprietary packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# fix power buttons
services.logind.settings.Login = {
HandlePowerKey = "suspend";
HandleLidSwitch = "suspend";
#HibernateDelaySec = "30min";
};
# power management # power management
services.autoaspm.enable = true; services.autoaspm.enable = true;
powerManagement.powertop.enable = true; powerManagement.powertop.enable = true;

View File

@@ -22,6 +22,7 @@
tailscale.enable = true; tailscale.enable = true;
}; };
# boot (systemd is going on me) # boot (systemd is going on me)
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
boot.loader.efi.canTouchEfiVariables = true; 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 = { home.pointerCursor = {
dotIcons.enable = false;
enable = true; enable = true;
gtk.enable = true; gtk.enable = true;
x11.enable = true; x11.enable = true;

View File

@@ -3,10 +3,19 @@
lib, lib,
config, config,
... ...
}: { }: let
programs.kitty = { 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; enable = true;
# enableZshIntegration = true; # enableZshIntegration = true;
enableGitIntegration = true; enableGitIntegration = true;
#darwinLaunchOptions = [""]; #darwinLaunchOptions = [""];
settings = { settings = {
@@ -29,5 +38,5 @@
# size = 12; # size = 12;
# }; # };
}; };
};
} }

View File

@@ -1,10 +1,22 @@
{ {
pkgs, pkgs,
lib,
config, 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 # just using the normal lfrc
programs.lf = { programs.${program} = {
enable = false; enable = false;
}; };
@@ -18,4 +30,5 @@
xdg.configFile."ctpv/config" = { xdg.configFile."ctpv/config" = {
source = config.lib.file.mkOutOfStoreSymlink "/home/blake/.nix/users/blake/dots/lf/ctpv_config"; source = config.lib.file.mkOutOfStoreSymlink "/home/blake/.nix/users/blake/dots/lf/ctpv_config";
}; };
};
} }

View File

@@ -1,10 +1,23 @@
{ {
pkgs, pkgs,
lib,
config, config,
... ...
}: { }:
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 # just using the normal lfrc
programs.librewolf = { programs.${program} = {
enable = true; enable = true;
}; };
};
} }

View File

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

View File

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

View File

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