Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobvanderlinden/nixos-config
My personal NixOS and home-manager configuration
https://github.com/bobvanderlinden/nixos-config
home-manager home-manager-config nix nixos nixos-config
Last synced: 7 days ago
JSON representation
My personal NixOS and home-manager configuration
- Host: GitHub
- URL: https://github.com/bobvanderlinden/nixos-config
- Owner: bobvanderlinden
- Created: 2018-08-07T20:04:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-20T18:40:34.000Z (16 days ago)
- Last Synced: 2024-10-22T06:29:28.887Z (15 days ago)
- Topics: home-manager, home-manager-config, nix, nixos, nixos-config
- Language: Nix
- Homepage:
- Size: 906 KB
- Stars: 52
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nixos-config
This repository includes the Nix configuration for my laptop.
It includes the following:
- A flake-based configuration (see [flake.nix](flake.nix))
- [NixOS](https://nixos.org/) configuration (see [configuration.nix](system/configuration.nix))
- [home-manager](https://github.com/nix-community/home-manager#home-manager-using-nix) configuration (see [home](home/default.nix))
- Custom NixOS modules (see [system/modules/](system/modules/))
- Custom home-manager modules (see [home/modules/](home/modules/))
- Custom packages (see [packages/](packages/))
- Do not expect this configuration to work for your system as-is## Usage
To switch to a new system+home configuration I usually run:
```sh
nix run .#switch
```Which does the following:
- Switch to new configuration for home-manager
- Switch to new configuration for NixOS
- Builds configuration using [`nom`](https://github.com/maralorn/nix-output-monitor) for more insightful output.
- Asks for `sudo` only when system configuration has actually changed.
- Plings when actually switching system configuration.This is similar to using the `home-manager` and `nixos-rebuild` tools:
```console
$ home-manager switch --flake .
$ nixos-rebuild --flake . switch --use-remote-sudo
```To update nixpkgs and others I usually do:
```sh
nix flake update
```