This commit is contained in:
2025-08-16 14:46:16 +02:00
parent 8d4ea15585
commit 88bcacf521
33 changed files with 53 additions and 41 deletions

View File

@@ -6,9 +6,7 @@
user, user,
sops-nix, sops-nix,
... ...
}: let }: {
setWallpaperScript = import ./libs/wallpaper.nix {inherit pkgs;};
in {
imports = [ imports = [
../core.nix ../core.nix
../tailscale.nix ../tailscale.nix
@@ -48,26 +46,13 @@ in {
lib, lib,
... ...
}: { }: {
_module.args = {inherit user;}; _module.args = {inherit user constants;};
imports = [ imports = [
nixvim.homeModules.nixvim nixvim.homeModules.nixvim
../home-manager ../home/default.nix
../home-manager/darwin ../home/darwin/default.nix
]; ];
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
home = {
packages =
pkgs.callPackage ../packages.nix {}
++ pkgs.callPackage ./packages.nix {};
stateVersion = constants.stateVersions.homeManager;
activation = {
"setWallpaper" = lib.hm.dag.entryAfter ["revealHomeLibraryDirectory"] ''
echo "[+] Setting wallpaper"
${setWallpaperScript}/bin/set-wallpaper-script
'';
};
};
}; };
}; };

View File

@@ -1,5 +0,0 @@
{
imports = [
./ghostty.nix
];
}

View File

@@ -1,5 +0,0 @@
{
imports = [
./zellij.nix
];
}

View File

@@ -0,0 +1,23 @@
{
pkgs,
config,
lib,
constants,
...
}: let
setWallpaperScript = import ../../darwin/lib/wallpaper.nix {inherit pkgs;};
in {
imports = [
./ghostty.nix
];
home = {
packages = pkgs.callPackage ../../darwin/packages.nix {};
activation = {
"setWallpaper" = lib.hm.dag.entryAfter ["revealHomeLibraryDirectory"] ''
echo "[+] Setting wallpaper"
${setWallpaperScript}/bin/set-wallpaper-script
'';
};
};
}

View File

@@ -1,4 +1,8 @@
{ {
pkgs,
constants,
...
}: {
imports = [ imports = [
./fish.nix ./fish.nix
./starship.nix ./starship.nix
@@ -21,8 +25,12 @@
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
home.shellAliases = { home = {
v = "nvim"; packages = pkgs.callPackage ../packages.nix {};
lg = "lazygit"; stateVersion = constants.stateVersions.homeManager;
shellAliases = {
v = "nvim";
lg = "lazygit";
};
}; };
} }

View File

@@ -0,0 +1,12 @@
{
pkgs,
...
}: {
imports = [
./zellij.nix
];
home = {
packages = pkgs.callPackage ../../nixos/packages.nix {};
};
}

View File

@@ -54,18 +54,12 @@
lib, lib,
... ...
}: { }: {
_module.args = {inherit user;}; _module.args = {inherit user constants;};
imports = [ imports = [
nixvim.homeModules.nixvim nixvim.homeModules.nixvim
../home-manager ../home/default.nix
../home-manager/nixos ../home/nixos/default.nix
]; ];
home = {
packages =
pkgs.callPackage ../packages.nix {}
++ pkgs.callPackage ./packages.nix {};
stateVersion = constants.stateVersions.homeManager;
};
}; };
}; };
} }