An open API service indexing awesome lists of open source software.

https://github.com/mathiswellmann/nixos-config

NixOS configs for all my systems
https://github.com/mathiswellmann/nixos-config

Last synced: 5 months ago
JSON representation

NixOS configs for all my systems

Awesome Lists containing this project

README

          

# NixOs Configuration files

To apply a configuration for a particular host, e.g `meshify`:
```shell
sudo nixos-rebuild switch --flake .#meshify
```
Replace `meshify` with the desired host, found in `hosts`.

## Using modules
If you want to use for example the `monero.nix` module in your NixOs base system,
then copy `modules/monero.nix` into `/etc/nixos/modules/monero.nix` (make sure to create the `modules` directory in `/etc/nixos`).
Then modify your `/etc/nixos/configuration.nix` file to include the module as such:
```
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./../../modules/monero.nix
];
```
Now rebuild as such:
```shell
sudo nixos-rebuild switch
```

## Updating
See the metadata and the current flake inputs:
```shell
nix flake metadata .
```
There one can see the `Inputs`.

To update the flake input `nixpkgs`:
```shell
nix flake lock --update-input nixpkgs
```

Then update the system, eg for the `meshify` host configuration:
```
sudo nixos-rebuild switch --flake .#meshify --upgrade-all
```

## Cleaning system store manually
```shell
nix-store --gc
```

# Tips:
When getting something like this:
```shell
error: cached failure of attribute 'nixosConfigurations.poweredge.config.system.build.toplevel'
```
Then you can disable the eval-cache temporarily by running with `--option eval-cache false`.