2023-11-01 19:17:15 +01:00
|
|
|
# My personal nixos config.
|
2023-09-10 18:10:06 +02:00
|
|
|
|
2023-11-18 06:30:40 +01:00
|
|
|
### Usage
|
2023-09-10 18:10:06 +02:00
|
|
|
|
2023-11-01 19:17:15 +01:00
|
|
|
To build the base system for my craptop:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo nixos-rebuild switch --flake github:ivandimitrov8080/nix-config#laptop
|
|
|
|
```
|
|
|
|
|
|
|
|
To build ivand home:
|
|
|
|
|
2023-09-10 18:10:06 +02:00
|
|
|
```bash
|
2023-11-01 19:17:15 +01:00
|
|
|
home-manager switch --flake github:ivandimitrov8080/nix-config#ivand
|
2023-09-10 18:10:06 +02:00
|
|
|
```
|
|
|
|
|
2023-11-25 08:01:06 +01:00
|
|
|
To reuse modules:
|
|
|
|
|
|
|
|
in your flake.nix:
|
|
|
|
```nix
|
|
|
|
inputs.ivan-mods = {
|
|
|
|
url = "github:ivandimitrov8080/nix-config";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
outputs = {self, nixpkgs, ivan-mods, ...}:{
|
|
|
|
...
|
|
|
|
homeConfigurations = {
|
|
|
|
my-user = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
modules = with ivan-mods.modules.home; [
|
|
|
|
programs.nvim
|
|
|
|
programs.zsh
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
...
|
|
|
|
};
|
|
|
|
```
|
|
|
|
|