adapt config for use with standalone home-manager

This commit is contained in:
greyweather committed 2026-08-28 01:15:05 +01:00
1 parent 765f346eb6
commit 3af64e993c
19 files changed
+418 -287

No files matched your search

+14 -3
View File
@@ -1,5 +1,5 @@
{ inputs, self, ... }: {
flake.homeModules.global = { osConfig, config, pkgs, ... }: {
flake.homeModules.global = { config, pkgs, osConfig, ... }: {
nix.gc = {
automatic = true;
persistent = true;
@@ -7,13 +7,24 @@
};
home = {
stateVersion = osConfig.info.stateVersion;
stateVersion = config.info.stateVersion;
packages = with pkgs; [
speedtest-go
] ++ osConfig.features.applications.extraUserPackages;
] ++ config.features.applications.extraPackages
++ (if !(builtins.hasAttr "osConfig" self) then [
pkgs.home-manager
] else []);
shell.enableBashIntegration = true;
username = "grey";
homeDirectory = "/home/${config.home.username}";
};
xdg = {
enable = true;
localBinInPath = !(builtins.hasAttr "osConfig" self);
};
programs = {