Makefile : Add basic targets.

This commit is contained in:
Dmitry Voronin 2024-04-03 14:27:56 +03:00
parent 08e2d7df9f
commit c598914a52
2 changed files with 40 additions and 2 deletions

View file

@ -0,0 +1,38 @@
options = --option eval-cache false
flake = .
.PHONY: boot
boot:
nixos-rebuild boot $(options) --flake $(flake)
.PHONY: reboot
reboot: boot
reboot
.PHONY: switch
switch:
nixos-rebuild switch $(options) --flake $(flake)
.PHONY: trace
trace:
nixos-rebuild boot $(options) --show-trace --flake $(flake)
.PHONY: update
update:
nix flake update
.PHONY: live
live:
nix build $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
.PHONY: android
android:
nix-on-droid switch --flake $(flake)
.PHONY: check
check:
nix flake check
.PHONY: show
show:
nix flake show

View file

@ -106,8 +106,8 @@
# Wallpaper.
wallpaper = { pkgs, ...}: let
url = "https://4kwallpapers.com/images/wallpapers/love-couple-pixel-5120x2880-15209.jpg";
sha256 = "sha256-j89c4+zgPUYUgmHCDnF+Jq1Ka95yekod2syVkndADnc=";
url = "https://4kwallpapers.com/images/wallpapers/tuscany-pixel-art-3840x2160-15225.jpg";
sha256 = "sha256-kc87Q3EIuWMM6U6+si/V58RcH7FJKaImzM8VLzorOkI=";
in {
path = pkgs.fetchurl {
url = url;