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
- Host: GitHub
- URL: https://github.com/mathiswellmann/nixos-config
- Owner: MathisWellmann
- Created: 2023-06-21T16:26:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-15T21:18:09.000Z (5 months ago)
- Last Synced: 2025-09-15T21:24:49.179Z (5 months ago)
- Language: Nix
- Homepage:
- Size: 618 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.