feat: add dependencies to host in home-manager

This commit is contained in:
2025-04-13 18:22:04 +03:00
parent 28bf565203
commit 9cdd54c6e8
10 changed files with 38 additions and 14 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, pkgs-fixed, ... }: {
{ pkgs, pkgs-fixed, host, ... }: {
disabledModules = [ ../../modules/user/packages/coding.nix ];
home.packages = with pkgs; [
nautilus
@ -7,4 +7,5 @@
python3
pkgs-fixed.jetbrains.pycharm-community
];
programs.hyprlock.enable = host.laptop;
}

View File

@ -15,7 +15,7 @@
in {
settings = {
monitor = ",preferred,auto,1";
exec-once =["${lib.getExe pkgs.linux-wallpaperengine} /mnt/D/SteamLibrary/steamapps/workshop/content/431960/816353979 --assets-dir /mnt/D/SteamLibrary/steamapps/common/wallpaper_engine/assets --screen-root DP-1 --noautomute"];
exec-once =["${lib.getExe pkgs.linux-wallpaperengine} ~/.local/share/wpe/wallpaper --assets-dir ~/.local/share/wpe/assets --screen-root DP-1 --noautomute"];
general = {
gaps_in = 5;
gaps_out = 5;

View File

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }: {
{ pkgs, config, lib, host, ... }: {
stylix = {
enable = true;
targets = {
@ -21,7 +21,11 @@
dark = "Pop-Dark";
};
cursor = {
cursor = if host.name == "Impreza" then {
name = "catppuccin-mocha-pink-cursors";
size = 16;
package = pkgs.catppuccin-cursors.mochaPink;
} else {
name = "catppuccin-mocha-peach-cursors";
size = 16;
package = pkgs.catppuccin-cursors.mochaPeach;

View File

@ -1,4 +1,4 @@
{ pkgs, pkgs-stable, pkgs-fixed, lib, inputs, name, fullname ? name, ... }: {
{ config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, laptop, name, fullname ? name, ... }: {
imports = [
inputs.home-manager.nixosModules.home-manager {
home-manager = {
@ -27,6 +27,10 @@
inherit inputs;
inherit pkgs-stable;
inherit pkgs-fixed;
host = {
laptop = laptop;
name = config.networking.hostName;
};
};
};
}