Add perso-home with only home-manager conf
Some checks failed
check / check (push) Failing after 0s

This commit is contained in:
Florian RICHER 2024-10-28 19:19:32 +01:00
parent df09153864
commit 9390144b66
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
2 changed files with 37 additions and 4 deletions

View file

@ -49,6 +49,11 @@
{ name = "perso-laptop"; system = "x86_64-linux"; }
{ name = "perso-desktop"; system = "x86_64-linux"; }
];
home-modules = [
nix-flatpak.homeManagerModules.nix-flatpak
nix-doom-emacs.hmModule
];
in {
nixosConfigurations = nixpkgs.lib.foldl (c: s:
c // {
@ -63,15 +68,23 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs;
home-manager.users.florian.imports = [
nix-flatpak.homeManagerModules.nix-flatpak
nix-doom-emacs.hmModule
home-manager.users.florian.imports = home-modules ++ [
./hosts/${s.name}/home.nix
];
}
];
};
}) {} systems;
homeConfigurations = {
perso-home = home-manager.lib.homeManagerConfiguration rec {
pkgs = import nixpkgs { system = "x86_64-linux"; };
modules = home-modules ++ [
{ nix.package = pkgs.nix; }
./hosts/perso-home/home.nix
];
};
};
};
}

20
hosts/perso-home/home.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
{
imports = [
../../modules/home
];
modules.home = {
apps = {
kitty.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;
direnv.enable = true;
git.enable = true;
};
};
}