mkboot: stop pretending the arm installer is host specific

- run `rdate` when we are on arm64
- install neovim packges that exist now
This commit is contained in:
Aaron Bieber 2023-06-05 14:05:38 -06:00
parent 4815673dcd
commit a0b0e4b0a8
No known key found for this signature in database
4 changed files with 18 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#!/usr/bin/env sh
case $1 in
weather)
nix build .#nixosConfigurations.weatherInstall.config.system.build.sdImage
arm|arm64)
nix build .#nixosConfigurations.arm64Install.config.system.build.sdImage
;;
haas)
nix build .#nixosConfigurations.hassInstall.config.system.build.isoImage
@ -14,6 +14,6 @@ reform)
nix build .#nixosConfigurations.reformInstall.config.system.build.sdImage
;;
*)
echo "Usage: boot [iso|weather|hass|reform]"
echo "Usage: boot [iso|arm64|arm|hass|reform]"
;;
esac

View File

@ -123,9 +123,11 @@ let
nvim-treesitter.withAllGrammars
rust-vim
telescope-fzf-native-nvim
telescope-manix
telescope-nvim
vimagit
vim-gitgutter
vim-go
vim-hindent
vim-lua
vim-markdown
@ -142,7 +144,7 @@ let
myVimPackages = if pkgs.system == "aarch64-linux" then
baseVimPackages
else
baseVimPackages ++ [ vimPlugins.vim-go vimPlugins.telescope-manix ];
baseVimPackages ++ [ ];
in {
environment.systemPackages = with pkgs; [
elmPackages.elm

View File

@ -180,7 +180,7 @@
#router =
# buildSys "x86_64-linux" stable [ ./configs/hardened.nix ] "router";
weatherInstall = stable.lib.nixosSystem {
arm64Install = stable.lib.nixosSystem {
system = "aarch64-linux";
modules = [

View File

@ -107,6 +107,17 @@ in {
time.timeZone = "US/Mountain";
systemd.services."setdate" = if pkgs.system == "aarch64-linux" then {
description = "Set date on boot";
wantedBy = [ "network-online.target" ];
after = [ "network-online.target" ];
script = ''
. /etc/profile;
${pkgs.outils}/bin/rdate pool.ntp.org
'';
serviceConfig.Type = "oneshot";
} else {};
programs = {
zsh.enable = true;
ssh = {