Home

dotnix @b6b22cba13ed4bc4388c98f084e40fdbfa83e4b5 - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / justfile
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[private]
default:
	@just --choose

[private]
rebuild *args:
	@git add .
	@sudo nixos-rebuild --flake . {{args}} |& nix run nixpkgs#nix-output-monitor

# Rebuild the current machine
switch *args:
	@just rebuild switch {{args}}

hm:
	@home-manager switch --flake . |& nix run nixpkgs#nix-output-monitor
	@systemctl --user start agenix.service

# Rebuild the current machine for next boot
boot *args:
	@just rebuild boot {{args}}

# Run colmena for remote deploy
colmena node:
	@git add .
	@nix run nixpkgs#colmena -- apply --on {{node}}

# Update the flake
update-flake:
	@nix flake update

# Update an individual input
update input:
	@nix flake lock --update-input {{input}}

fetch:
	@nix run nixpkgs#onefetch -- --true-color never --no-bots -d lines-of-code
	@nix run nixpkgs#scc -- --no-cocomo .