Add eirene bare metal config

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-19 17:17:55 +03:00
parent aec06c4b37
commit 69ac30f0b9
10 changed files with 66 additions and 22 deletions

View File

@@ -0,0 +1,7 @@
{
programs.git = {
enable = true;
lfs.enable = true;
};
}

View File

@@ -0,0 +1,6 @@
{ pkgs, ... }:
{
programs.gnupg.agent.enable = true;
}

View File

@@ -0,0 +1,7 @@
{
programs.nix-ld = {
enable = true;
libraries = [ ];
};
}

View File

@@ -0,0 +1,8 @@
{
programs.ssh = {
knownHosts = {
eirene.publicKeyFile = ../../../eirene/secrets/ssh_host_ed25519_key.pub;
};
};
}

View File

@@ -7,6 +7,10 @@
./configs/zsh
./configs/neovim
./configs/tmux
./configs/ssh
./configs/nix-ld
./configs/git
./configs/gpg-agent
];
fileSystems."/persist".neededForBoot = true;
@@ -14,7 +18,7 @@
boot = {
loader = {
systemd-boot.enable = true;
timeout = 0;
timeout = 3;
efi.canTouchEfiVariables = true;
};
@@ -23,6 +27,7 @@
postDeviceCommands = lib.mkAfter (builtins.readFile ./scripts/impermanence.sh);
};
supportedFilesystems = [ "btrfs" "ntfs" ];
kernelParams = [ "loglevel=3" "quiet" ];
consoleLogLevel = 0;
};
@@ -45,12 +50,11 @@
};
systemPackages = with pkgs; [
nano
tree
git
ranger
btop
fastfetch
sops
];
};
@@ -62,16 +66,6 @@
defaultUserShell = pkgs.zsh;
};
programs = {
nix-ld = {
enable = true;
libraries = [ ];
};
ssh.knownHosts = {
eirene.publicKeyFile = ../eirene/secrets/ssh_host_ed25519_key.pub;
};
};
security.sudo.extraConfig = ''
Defaults lecture = never
'';
@@ -97,6 +91,10 @@
stateVersion = "24.05";
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
gc.automatic = true;
};
nixpkgs.config.allowUnfree = true;
}

View File

@@ -1,3 +1,5 @@
#!/bin/sh
delete_subvolume_recursively() {
IFS=$'\n'
for i in $(btrfs subvolume list -o "$1" | cut -f 9- -d ' '); do