NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(boot): use systemd for stage 1 boot

Signed-off-by: ajhalili2006 <ajhalili2006@gmail.com>

+21 -3
+1 -1
secrets/agenix.nix
··· 1 1 # This is my agenix setup for all things SecretOps on my NixOS and home-manager 2 - # configurations. 2 + # configurations. This may be unused due to usage of agenix-rekey. 3 3 { lib, pkgs, config, ... }: 4 4 5 5 let
+1 -1
shared/networking.nix
··· 13 13 ]; 14 14 15 15 # systemd-resolved related settings 16 - boot.initrd.services.resolved.enable = true; 17 16 services.resolved.enable = true; 17 + boot.initrd.services.resolved.enable = true; 18 18 services.resolved.settings.Resolve = { 19 19 DNSSEC = "false"; # https://superuser.com/a/1493674 20 20 # Commented this out since Tailscale do thee heavy work for MagicDNS
+19 -1
shared/systemd.nix
··· 1 - { ... }: 1 + { lib, config, pkgs, ... }: 2 2 3 3 { 4 4 services.timesyncd = { ··· 16 16 "3.asia.pool.ntp.org" 17 17 ]; 18 18 }; 19 + 20 + # use systemd for boot stage 1 21 + boot.initrd.systemd = { 22 + enable = true; 23 + extraBin = { 24 + bash = "${pkgs.bash}/bin/bash"; 25 + utils = "${pkgs.busybox}/bin/busybox"; 26 + }; 27 + }; 28 + boot.initrd.network.ssh.enable = true; 29 + boot.initrd.network.ssh.authorizedKeys = with ./ssh-keys.nix; [ 30 + personal.y2022 31 + personal.passwordless 32 + personal.rp.gildedguy 33 + work.recaptime-dev.crew 34 + fido2Keys.hackclub_yubikey.main 35 + fido2Keys.hackclub_yubikey.backup 36 + ]; 19 37 }