https://github.com/mayniklas/dotfiles
https://github.com/mayniklas/dotfiles
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mayniklas/dotfiles
- Owner: MayNiklas
- Created: 2021-08-10T17:32:13.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T09:25:52.000Z (about 3 years ago)
- Last Synced: 2025-02-09T10:09:37.280Z (over 1 year ago)
- Language: Nix
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# my dotfiles managed by home-manager
Contains my dotfiles for non NixOS systems.
## Introduction
Over the last two years, I have been using NixOS together with home-manager to manage my dotfiles.
Since my primary laptop is a MacBook, I have decided to give home manager a try in a seperate repository (simplicity).
## Pre-requisites
- install [Nix](https://nixos.org/download.html)
- enable [Nix Flakes](https://nixos.wiki/wiki/Flakes)
## Commands
```bash
# build /check configuration
nix build .#homeConfigurations.nik@MacBook-Pro-14-2021.activationPackage
# initialize configuration
nix run .#homeConfigurations.nik@MacBook-Pro-14-2021.activationPackage
# rebuild configuration
home-manager switch --flake .
# basic flake check
nix flake check
# update flake.lock -> updates all flake inputs (e.g. system update)
nix flake update
# update a single flake input
nix flake lock --update-input nixpkgs
# show contents of flake
nix flake show
# show flake info
nix flake info
# run flake app externally
nix run 'github:mayniklas/nixos#owncast'
# run flake app
nix run nixpkgs#python39 -- --version
# lists all syslinks into the nix store (helpfull for finding old builds that can be deleted)
nix-store --gc --print-roots
# delete unused elements in nix store
nix-collect-garbage
# also delete iterations
nix-collect-garbage -d
# use auto formatter on flake.nix
nix fmt flake.nix
```