1 Star 0 Fork 0

Mayuri / my-nix-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 2.23 KB
一键复制 编辑 原始数据 按行查看 历史
DataEraserC 提交于 2024-02-22 19:42 . Add fily_pad_f12_1
#
# NOTE: Makefile's target name should not be the same as one of the file or directory in the current directory,
# otherwise the target will not be executed!
#
############################################################################
#
# Nix commands related to the local machine
#
############################################################################
mondrian_1:
NIXPKGS_ALLOW_BROKEN=1 NIXPKGS_ALLOW_UNFREE=1 nix-on-droid switch --flake ~/my-nix-config#mondrian_1
fily_pad_f12_1:
NIXPKGS_ALLOW_BROKEN=1 NIXPKGS_ALLOW_UNFREE=1 nix-on-droid switch --flake ~/my-nix-config#fily_pad_f12_1
pstar_1:
NIXPKGS_ALLOW_BROKEN=1 NIXPKGS_ALLOW_UNFREE=1 nix-on-droid switch --flake ~/my-nix-config#pstar_1
nix-on-droid_x11:
nix-shell ~/my-nix-config/scripts/x11_catppuccin.nix --run "myx :10"
#nix-shell ~/my-nix-config/scripts/x11.nix --run "myx :10"
update:
nix flake update
# Update specific input
# usage: make update_input i=wallpapers
update_input:
nix flake lock --update-input $(i)
history:
nix profile history --profile /nix/var/nix/profiles/system
gc:
# remove all generations older than 7 days
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
# garbage collect all unused nix store entries
sudo nix store gc --debug
############################################################################
#
# My often-used command
#
############################################################################
nur_all := nur-program-learning nur-linyinfeng nur-xddxdd nur-AtaraxiaSjel nur-arti5an
# Update nur inputs
# (can use with ''
# proxychains4 make update_nur
# ''
# or ''
# http_proxy='http://localhost:7890' https_proxy='http://localhost:7890' make update_nur
# '')
update_nur:
$(foreach repo,$(nur_all)\
,nix flake lock --update-input $(repo) &&) true
# nix-repl:
# NIX_PATH=nixpkgs=http://nixos.org/channels/nixos-23.05/nixexprs.tar.xz:home-manager=https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz:nix-on-droid=https://github.com/t184256/nix-on-droid/archive/release-23.05.tar.gz nix repl
# # for nix-on-droid:
# # nix-repl> hm = import <home-manager/modules> { configuration = ~/my-nix-config/home/nix-on-droid/aarch64/mondrian_1/home.nix; pkgs = import <nixpkgs> {}; }
1
https://gitee.com/MayuriNFC/my-nix-config.git
git@gitee.com:MayuriNFC/my-nix-config.git
MayuriNFC
my-nix-config
my-nix-config
main

搜索帮助