about summary refs log tree commit diff stats
path: root/sys/boot/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-11 21:58:08 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-11 21:58:08 +0200
commit1681647502aeffd2db1e9a84e6ccb4c3c6b3783b (patch)
treed4a50e86fe6c2eef6d3bb35737cdbe989e7a0541 /sys/boot/default.nix
parentfix(sys/boot): Include a parameter for the device the iso is stored on (diff)
downloadnixos-config-1681647502aeffd2db1e9a84e6ccb4c3c6b3783b.tar.gz
nixos-config-1681647502aeffd2db1e9a84e6ccb4c3c6b3783b.zip
fix(sys/boot): Always update the config-file
Diffstat (limited to 'sys/boot/default.nix')
-rw-r--r--sys/boot/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/boot/default.nix b/sys/boot/default.nix
index 68c6454a..1a849fbb 100644
--- a/sys/boot/default.nix
+++ b/sys/boot/default.nix
@@ -16,6 +16,10 @@
 
   nixosDir = "/EFI/nixos";
 
+  # FIXME: This system has two big problems:
+  # 1. It does not updated files, which still have the same name
+  # 2. It forgets about files, which were 'deleted' in this configuration (these just
+  #    stay on disk forever) <2024-05-11>
   copyExtraFiles = ''
     echo "[systemd-boot] copying files to ${bootMountPoint}"
     empty_file=$(mktemp)
@@ -37,10 +41,10 @@
       bash
       */
       ''
-        if ! [ -e ${esa "${bootMountPoint}/loader/entries/${n}"} ]; then
+        # if ! [ -e ${esa "${bootMountPoint}/loader/entries/${n}"} ]; then
           install -Dp "${pkgs.writeText n v}" ${esa "${bootMountPoint}/loader/entries/${n}"}
           install -D "$empty_file" ${esa "${bootMountPoint}/${nixosDir}/.extra-files/loader/entries/${n}"}
-        fi
+        # fi
       '')
     cfg.extraEntries)}
   '';