Add eirene bare metal config
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
7
hosts/common/configs/git/default.nix
Normal file
7
hosts/common/configs/git/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
};
|
||||
}
|
||||
|
6
hosts/common/configs/gpg-agent/default.nix
Normal file
6
hosts/common/configs/gpg-agent/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.gnupg.agent.enable = true;
|
||||
}
|
||||
|
7
hosts/common/configs/nix-ld/default.nix
Normal file
7
hosts/common/configs/nix-ld/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
libraries = [ ];
|
||||
};
|
||||
}
|
||||
|
8
hosts/common/configs/ssh/default.nix
Normal file
8
hosts/common/configs/ssh/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
programs.ssh = {
|
||||
knownHosts = {
|
||||
eirene.publicKeyFile = ../../../eirene/secrets/ssh_host_ed25519_key.pub;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
delete_subvolume_recursively() {
|
||||
IFS=$'\n'
|
||||
for i in $(btrfs subvolume list -o "$1" | cut -f 9- -d ' '); do
|
||||
|
Reference in New Issue
Block a user