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; };
};
homeConfigurations."thilo@thilo-pc" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./configs/fedora/home.nix ];
extraSpecialArgs = { inherit inputs nixgl; };
};
homeConfigurations."thilo@thilo-pc-win" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./configs/wsl/home.nix ];
extraSpecialArgs = { inherit inputs; };
extraSpecialArgs = { inherit inputs nixgl; };
};
};
}

View file

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

View file

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

View file

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