Compare commits

...

2 commits

Author SHA1 Message Date
9390144b66
Add perso-home with only home-manager conf
Some checks failed
check / check (push) Failing after 0s
2024-10-28 19:19:32 +01:00
df09153864 Add home readme on tips 2024-10-28 18:39:58 +01:00
3 changed files with 42 additions and 4 deletions

View file

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

5
tips/README.md Normal file
View file

@ -0,0 +1,5 @@
# Tips: Home
- [Debug insecure package error](./debug_insecure_package.md)
- [How try pull request](./how_to_test_pr.md)
- [Build and run VM from nixos configuration](./test_on_vm.md)