feat: add dependencies to host in home-manager
This commit is contained in:
parent
28bf565203
commit
9cdd54c6e8
@ -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 = [
|
||||
./secrets/secrets.nix
|
||||
./modules/aagl.nix
|
||||
@ -19,6 +21,7 @@
|
||||
inherit pkgs-fixed;
|
||||
inherit lib;
|
||||
inherit inputs;
|
||||
inherit laptop;
|
||||
name = "chest";
|
||||
})
|
||||
];
|
||||
|
@ -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 = [
|
||||
./secrets/secrets.nix
|
||||
./modules/grub.nix
|
||||
@ -16,6 +18,7 @@
|
||||
inherit pkgs-fixed;
|
||||
inherit lib;
|
||||
inherit inputs;
|
||||
inherit laptop;
|
||||
name = "chest";
|
||||
})
|
||||
];
|
||||
@ -23,5 +26,5 @@
|
||||
nixpkgs.config.allowBroken = true;
|
||||
programs.gamemode.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
host.laptop = true;
|
||||
host.laptop = laptop;
|
||||
}
|
||||
|
@ -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 = [
|
||||
./secrets/secrets.nix
|
||||
./modules/grub.nix
|
||||
@ -19,6 +21,7 @@
|
||||
inherit pkgs-fixed;
|
||||
inherit lib;
|
||||
inherit inputs;
|
||||
inherit laptop;
|
||||
name = "sweetbread";
|
||||
fullname = "Sweet Bread";
|
||||
})
|
||||
|
@ -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 = [
|
||||
./secrets/secrets.nix
|
||||
./modules/grub.nix
|
||||
@ -17,13 +19,14 @@
|
||||
inherit pkgs-fixed;
|
||||
inherit lib;
|
||||
inherit inputs;
|
||||
inherit laptop;
|
||||
name = "sweetbread";
|
||||
fullname = "Sweet Bread";
|
||||
})
|
||||
];
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
host.laptop = true;
|
||||
host.laptop = laptop;
|
||||
|
||||
environment.systemPackages = [ pkgs.dbgate ];
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
{ config, lib, ... }: {
|
||||
imports = [
|
||||
./user/qt.nix
|
||||
./user/sops.nix
|
||||
@ -12,8 +12,9 @@
|
||||
./user/wofi.nix
|
||||
./user/mako.nix
|
||||
./user/ghostty.nix
|
||||
./user/packages/art.nix
|
||||
./user/packages/desktop.nix
|
||||
./user/packages/coding.nix
|
||||
./user/packages/utils.nix
|
||||
];
|
||||
] ;
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ pkgs-fixed, ... }: {
|
||||
{ pkgs-fixed, lib, host, ... }:
|
||||
|
||||
lib.mkIf (!host.laptop) {
|
||||
home.packages = with pkgs-fixed; [
|
||||
(blender.override { cudaSupport = true; })
|
||||
aseprite
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user