up
This commit is contained in:
@@ -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
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
./ghostty.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
./zellij.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
23
modules/home/darwin/default.nix
Normal file
23
modules/home/darwin/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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 = {
|
||||||
|
packages = pkgs.callPackage ../packages.nix {};
|
||||||
|
stateVersion = constants.stateVersions.homeManager;
|
||||||
|
shellAliases = {
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
lg = "lazygit";
|
lg = "lazygit";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
12
modules/home/nixos/default.nix
Normal file
12
modules/home/nixos/default.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./zellij.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
packages = pkgs.callPackage ../../nixos/packages.nix {};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user