Files
nix/hosts/elara/default.nix
2025-01-09 12:00:49 +00:00

84 lines
2.5 KiB
Nix

{ config, inputs, ... }:
{
imports = [
../../lib
inputs.disko.nixosModules.disko
(import ./format.nix {
device = "/dev/disk/by-id/ata-Samsung_SSD_990_EVO_1TB_S7GCNL0XA04998F";
})
./hardware.nix
# elara runs on an external drive on eirene
../eirene/hardware.nix
../eirene/display.nix
../common/configs/system/bluetooth
../common/configs/system/boot
../common/configs/system/brightnessctl
../common/configs/system/btop
../common/configs/system/btrfs
../common/configs/system/cloudflared
../common/configs/system/cpu
../common/configs/system/docker
../common/configs/system/fastfetch
../common/configs/system/getty
../common/configs/system/git
../common/configs/system/gpg-agent
../common/configs/system/impermanence
../common/configs/system/lsof
../common/configs/system/ncdu
../common/configs/system/neovim
../common/configs/system/networking
../common/configs/system/nix
../common/configs/system/nix-cleanup
../common/configs/system/nix-ld
../common/configs/system/nixpkgs
../common/configs/system/ntp
../common/configs/system/pipewire
../common/configs/system/plymouth
../common/configs/system/powertop
../common/configs/system/printing
../common/configs/system/ranger
../common/configs/system/sops
../common/configs/system/ssh
../common/configs/system/system
../common/configs/system/timezone
../common/configs/system/tlp
../common/configs/system/tmux
../common/configs/system/tree
../common/configs/system/users
../common/configs/system/wget
../common/configs/system/zsh
./configs/system/globalprotect-remote-connect
./users/nikara
];
networking.hostName = "elara";
i18n.defaultLocale = "en_US.UTF-8";
sops = {
defaultSopsFile = ./secrets/secrets.yaml;
# Required for building private SAS packages
secrets."ssh/sas/git/key" = {
sopsFile = ../../secrets/sas/secrets.yaml;
path = "/root/.ssh/ssh_git_sas_ed25519_key";
};
};
programs.ssh.extraConfig = ''
Host github.com
User git
HostName github.com
IdentityFile /root/.ssh/ssh_git_sas_ed25519_key
StrictHostKeyChecking no
Host gitlab.sas.com
User git
HostName gitlab.sas.com
IdentityFile /root/.ssh/ssh_git_sas_ed25519_key
StrictHostKeyChecking no
'';
environment.impermanence.device =
config.disko.devices.disk.usb.content.partitions.root.content.name;
}