2023-11-15 16:09:47 +00:00
|
|
|
##
|
|
|
|
# Nix Configuration
|
|
|
|
#
|
|
|
|
# @file
|
|
|
|
# @version 0.1
|
|
|
|
|
|
|
|
HOST ?= ziltis-desktop
|
|
|
|
DEVICE ?= nvme0n1
|
|
|
|
|
|
|
|
#configuration.nix: hosts/${HOST}.nix
|
|
|
|
# ln -s "$<" "$@"
|
|
|
|
|
|
|
|
disko: disko-config.nix
|
|
|
|
sed -i "s|.*DEVICE_NAME| device = \"/dev/$(DEVICE)\"; # DEVICE_NAME|g" disko-config.nix
|
|
|
|
nix run \
|
|
|
|
--extra-experimental-features nix-command \
|
|
|
|
--extra-experimental-features flakes \
|
|
|
|
github:nix-community/disko -- \
|
|
|
|
--mode disko \
|
|
|
|
./disko-config.nix
|
|
|
|
|
2023-11-19 23:29:24 +00:00
|
|
|
build-iso: iso.nix
|
|
|
|
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix
|
|
|
|
|
2023-11-15 16:09:47 +00:00
|
|
|
install-system: configuration.nix
|
|
|
|
sed -i "s|.*DEVICE_HOSTNAME| networking.hostName = \"$(HOST)\"; # DEVICE_HOSTNAME|g" configuration.nix
|
|
|
|
nixos-generate-config --no-filesystems --root /mnt
|
|
|
|
cp configuration.nix /mnt/etc/nixos
|
|
|
|
cp disko-config.nix /mnt/etc/nixos
|
|
|
|
nixos-install
|
|
|
|
|
2024-07-10 13:09:38 +00:00
|
|
|
setup-fido:
|
|
|
|
systemd-cryptenroll --fido2-device=auto /dev/disk/by-partlabel/disk-main-luks
|
|
|
|
|
2024-08-21 15:30:52 +00:00
|
|
|
setup-desktop:
|
|
|
|
bw config server https://vaultwarden.lyrion.ch
|
2024-08-21 16:18:08 +00:00
|
|
|
echo "Bitwarden Login"
|
|
|
|
bw login | grep items | awk '{print $$6}' > ~/.vw-session-key
|
2024-08-21 15:30:52 +00:00
|
|
|
|
2024-09-11 15:44:12 +00:00
|
|
|
install-chicken-doc:
|
|
|
|
mkdir -p $${CHICKEN_DOC_REPOSITORY}
|
|
|
|
curl https://3e8.org/pub/chicken-doc/chicken-doc-repo-5.tgz | gzip -d | tar -xf - -C $${CHICKEN_DOC_REPOSITORY}/..
|
|
|
|
|
2023-11-16 10:30:36 +00:00
|
|
|
install:
|
2024-08-21 16:18:08 +00:00
|
|
|
touch ~/.vw-session-key
|
|
|
|
touch ~/.config/hypr/monitors.conf
|
2024-11-05 07:56:26 +00:00
|
|
|
#sudo nix-collect-garbage --delete-old
|
2024-10-03 16:26:14 +00:00
|
|
|
sudo env NIXPKGS_ALLOW_BROKEN=1 nixos-rebuild switch --recreate-lock-file --flake .#ziltis-desktop --impure --show-trace
|
2023-11-16 10:30:36 +00:00
|
|
|
|
2023-11-15 16:09:47 +00:00
|
|
|
# end
|