Makefile : Add basic targets.
This commit is contained in:
parent
08e2d7df9f
commit
c598914a52
38
Makefile
38
Makefile
|
@ -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
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue