This commit is contained in:
parent
aeb09fd985
commit
a845073dcc
3 changed files with 42 additions and 13 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
## Configure
|
## Configure
|
||||||
|
|
||||||
|
### NixOS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nixos-rebuild switch --flake flake_path_directory#hostname
|
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"
|
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
|
## Show changements between revisions
|
||||||
|
|
||||||
|
|
||||||
|
|
31
flake.nix
31
flake.nix
|
@ -124,6 +124,22 @@
|
||||||
]
|
]
|
||||||
++ extraModules;
|
++ 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
|
in
|
||||||
{
|
{
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
@ -152,19 +168,8 @@
|
||||||
#####################################################################
|
#####################################################################
|
||||||
#####################################################################
|
#####################################################################
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
perso-home = home-manager.lib.homeManagerConfiguration rec {
|
perso-home = customHomeManagerConfiguration { name = "perso-home"; system = "x86_64-linux"; };
|
||||||
pkgs = import nixpkgs {
|
pro-home = customHomeManagerConfiguration { name = "pro-home"; system = "x86_64-linux"; };
|
||||||
system = "x86_64-linux";
|
|
||||||
inherit overlays;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules =
|
|
||||||
home-modules
|
|
||||||
++ [
|
|
||||||
{nix.package = pkgs.nix;}
|
|
||||||
./hosts/perso-home/home.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
15
hosts/pro-home/home.nix
Normal file
15
hosts/pro-home/home.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../modules/home
|
||||||
|
];
|
||||||
|
|
||||||
|
modules.home = {
|
||||||
|
shell = {
|
||||||
|
zsh.enable = true;
|
||||||
|
atuin.enable = true;
|
||||||
|
direnv.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue