add pro-home
All checks were successful
check / check (push) Successful in 44s

This commit is contained in:
Florian RICHER 2025-06-26 11:17:43 +02:00
parent aeb09fd985
commit a845073dcc
3 changed files with 42 additions and 13 deletions

View file

@ -2,6 +2,8 @@
## Configure
### NixOS
```bash
nixos-rebuild switch --flake flake_path_directory#hostname
```
@ -10,6 +12,13 @@ nixos-rebuild switch --flake flake_path_directory#hostname
nix flake update --extra-experimental-features "nix-command flakes"
```
### Home manager on standalone Linux
```
nix run nixpkgs#home-manager -- switch --flake .#hostname // First time
home-manager -- switch --flake .#hostname // Then
```
## Show changements between revisions

View file

@ -124,6 +124,22 @@
]
++ extraModules;
};
customHomeManagerConfiguration = {
name,
system
}: home-manager.lib.homeManagerConfiguration rec {
pkgs = import nixpkgs {
inherit overlays system;
};
modules =
home-modules
++ [
{ nix.package = pkgs.nix; }
./hosts/${name}/home.nix
];
};
in
{
#####################################################################
@ -152,19 +168,8 @@
#####################################################################
#####################################################################
homeConfigurations = {
perso-home = home-manager.lib.homeManagerConfiguration rec {
pkgs = import nixpkgs {
system = "x86_64-linux";
inherit overlays;
};
modules =
home-modules
++ [
{nix.package = pkgs.nix;}
./hosts/perso-home/home.nix
];
};
perso-home = customHomeManagerConfiguration { name = "perso-home"; system = "x86_64-linux"; };
pro-home = customHomeManagerConfiguration { name = "pro-home"; system = "x86_64-linux"; };
};
}
#####################################################################

15
hosts/pro-home/home.nix Normal file
View file

@ -0,0 +1,15 @@
{ ... }:
{
imports = [
../../modules/home
];
modules.home = {
shell = {
zsh.enable = true;
atuin.enable = true;
direnv.enable = true;
};
};
}