feat: add dependencies to host in home-manager

This commit is contained in:
Sweetbread 2025-04-13 18:22:04 +03:00
parent 28bf565203
commit 9cdd54c6e8
Signed by: Sweetbread
GPG Key ID: 17A5CB9A7DD85319
10 changed files with 38 additions and 14 deletions

View File

@ -1,4 +1,6 @@
{ config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: { { config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: let
laptop = false;
in {
imports = [ imports = [
./secrets/secrets.nix ./secrets/secrets.nix
./modules/aagl.nix ./modules/aagl.nix
@ -19,6 +21,7 @@
inherit pkgs-fixed; inherit pkgs-fixed;
inherit lib; inherit lib;
inherit inputs; inherit inputs;
inherit laptop;
name = "chest"; name = "chest";
}) })
]; ];

View File

@ -1,4 +1,6 @@
{ config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: { { config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: let
laptop = true;
in {
imports = [ imports = [
./secrets/secrets.nix ./secrets/secrets.nix
./modules/grub.nix ./modules/grub.nix
@ -16,6 +18,7 @@
inherit pkgs-fixed; inherit pkgs-fixed;
inherit lib; inherit lib;
inherit inputs; inherit inputs;
inherit laptop;
name = "chest"; name = "chest";
}) })
]; ];
@ -23,5 +26,5 @@
nixpkgs.config.allowBroken = true; nixpkgs.config.allowBroken = true;
programs.gamemode.enable = true; programs.gamemode.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
host.laptop = true; host.laptop = laptop;
} }

View File

@ -1,4 +1,6 @@
{ config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: { { config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: let
laptop = false;
in {
imports = [ imports = [
./secrets/secrets.nix ./secrets/secrets.nix
./modules/grub.nix ./modules/grub.nix
@ -19,6 +21,7 @@
inherit pkgs-fixed; inherit pkgs-fixed;
inherit lib; inherit lib;
inherit inputs; inherit inputs;
inherit laptop;
name = "sweetbread"; name = "sweetbread";
fullname = "Sweet Bread"; fullname = "Sweet Bread";
}) })

View File

@ -1,4 +1,6 @@
{ config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: { { config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: let
laptop = true;
in {
imports = [ imports = [
./secrets/secrets.nix ./secrets/secrets.nix
./modules/grub.nix ./modules/grub.nix
@ -17,13 +19,14 @@
inherit pkgs-fixed; inherit pkgs-fixed;
inherit lib; inherit lib;
inherit inputs; inherit inputs;
inherit laptop;
name = "sweetbread"; name = "sweetbread";
fullname = "Sweet Bread"; fullname = "Sweet Bread";
}) })
]; ];
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
host.laptop = true; host.laptop = laptop;
environment.systemPackages = [ pkgs.dbgate ]; environment.systemPackages = [ pkgs.dbgate ];
} }

View File

@ -1,4 +1,4 @@
{ { config, lib, ... }: {
imports = [ imports = [
./user/qt.nix ./user/qt.nix
./user/sops.nix ./user/sops.nix
@ -12,8 +12,9 @@
./user/wofi.nix ./user/wofi.nix
./user/mako.nix ./user/mako.nix
./user/ghostty.nix ./user/ghostty.nix
./user/packages/art.nix
./user/packages/desktop.nix ./user/packages/desktop.nix
./user/packages/coding.nix ./user/packages/coding.nix
./user/packages/utils.nix ./user/packages/utils.nix
]; ] ;
} }

View File

@ -1,4 +1,6 @@
{ pkgs-fixed, ... }: { { pkgs-fixed, lib, host, ... }:
lib.mkIf (!host.laptop) {
home.packages = with pkgs-fixed; [ home.packages = with pkgs-fixed; [
(blender.override { cudaSupport = true; }) (blender.override { cudaSupport = true; })
aseprite aseprite

View File

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

View File

@ -15,7 +15,7 @@
in { in {
settings = { settings = {
monitor = ",preferred,auto,1"; 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 = { general = {
gaps_in = 5; gaps_in = 5;
gaps_out = 5; gaps_out = 5;

View File

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, host, ... }: {
stylix = { stylix = {
enable = true; enable = true;
targets = { targets = {
@ -21,7 +21,11 @@
dark = "Pop-Dark"; 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"; name = "catppuccin-mocha-peach-cursors";
size = 16; size = 16;
package = pkgs.catppuccin-cursors.mochaPeach; 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 = [ imports = [
inputs.home-manager.nixosModules.home-manager { inputs.home-manager.nixosModules.home-manager {
home-manager = { home-manager = {
@ -27,6 +27,10 @@
inherit inputs; inherit inputs;
inherit pkgs-stable; inherit pkgs-stable;
inherit pkgs-fixed; inherit pkgs-fixed;
host = {
laptop = laptop;
name = config.networking.hostName;
};
}; };
}; };
} }