restructure hm moduels to ibe more flexible

This commit is contained in:
Thilo Billerbeck 2024-04-19 02:18:25 +02:00
parent e6d3d00297
commit 212e521c73
5 changed files with 29 additions and 5 deletions

17
configs/fedora/home.nix Normal file
View file

@ -0,0 +1,17 @@
{ ... }:
{
imports = [ ./../../home-manager/modules/machine.nix ];
machine = {
username = "thilo";
isGeneric = true;
isGnome = false;
noiseSuppression.enable = false;
isGraphical = false;
};
fonts.fontconfig.enable = true;
nixpkgs.config.allowUnfree = true;
}

View file

@ -68,11 +68,17 @@
]; ];
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
}; };
homeConfigurations."thilo@thilo-pc" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./configs/fedora/home.nix ];
extraSpecialArgs = { inherit inputs nixgl; };
};
homeConfigurations."thilo@thilo-pc-win" = homeConfigurations."thilo@thilo-pc-win" =
home-manager.lib.homeManagerConfiguration { home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
modules = [ ./configs/wsl/home.nix ]; modules = [ ./configs/wsl/home.nix ];
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs nixgl; };
}; };
}; };
} }

View file

@ -70,11 +70,13 @@ in {
unrar unrar
inputs.w17.packages.x86_64-linux.default inputs.w17.packages.x86_64-linux.default
aichat aichat
nix-output-monitor
] ++ (if config.machine.isGraphical then [
(pkgs.nerdfonts.override { (pkgs.nerdfonts.override {
fonts = [ "JetBrainsMono" "FiraCode" "FiraMono" ]; fonts = [ "JetBrainsMono" "FiraCode" "FiraMono" ];
}) })
nix-output-monitor
nodePackages.pnpm
npm-check-updates
] ++ (if config.machine.isGraphical then [
corefonts corefonts
vistafonts vistafonts
jetbrains.webstorm jetbrains.webstorm

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, pkgs, lib, ... }:
{ {
programs.alacritty = { programs.alacritty = {

View file

@ -3,7 +3,6 @@
{ {
programs.git = { programs.git = {
enable = true; enable = true;
package = pkgs.gitFull;
lfs.enable = true; lfs.enable = true;
userEmail = "thilo.billerbeck@officerent.de"; userEmail = "thilo.billerbeck@officerent.de";
userName = "Thilo Billerbeck"; userName = "Thilo Billerbeck";