mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
feat: add host zackbiene
This commit is contained in:
parent
99056be50d
commit
df628838bf
5 changed files with 82 additions and 0 deletions
41
hosts/zackbiene/default.nix
Normal file
41
hosts/zackbiene/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
config,
|
||||
nixos-hardware,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
nixos-hardware.common-pc-ssd
|
||||
|
||||
../../modules/core
|
||||
../../modules/efi.nix
|
||||
../../modules/zfs.nix
|
||||
|
||||
../../users/root
|
||||
|
||||
./fs.nix
|
||||
./net.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
|
||||
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
extraComponents = ["default_config" "met" "zha"];
|
||||
openFirewall = true;
|
||||
config = {
|
||||
default_config = {};
|
||||
met = {};
|
||||
};
|
||||
};
|
||||
#networking.firewall.allowedTCPPorts = [1883];
|
||||
#services.zigbee2mqtt.enable = true;
|
||||
#services.zigbee2mqtt.settings = {
|
||||
# homeassistant = config.services.home-assistant.enable;
|
||||
# permit_join = true;
|
||||
# serial = {
|
||||
# port = "/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0";
|
||||
# };
|
||||
#};
|
||||
}
|
16
hosts/zackbiene/fs.nix
Normal file
16
hosts/zackbiene/fs.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "rpool/root/nixos";
|
||||
fsType = "zfs";
|
||||
options = ["zfsutil" "X-mount.mkdir"];
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/TODO";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [];
|
||||
}
|
7
hosts/zackbiene/meta.nix
Normal file
7
hosts/zackbiene/meta.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
type = "nixos";
|
||||
system = "aarch64-linux";
|
||||
physical_connections = {
|
||||
"10-lan1" = "LAN 1";
|
||||
};
|
||||
}
|
15
hosts/zackbiene/net.nix
Normal file
15
hosts/zackbiene/net.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
networking = {
|
||||
hostId = "68a7bba3";
|
||||
};
|
||||
|
||||
systemd.network.networks = {
|
||||
"10-lan1" = {
|
||||
DHCP = "yes";
|
||||
matchConfig.MACAddress = "TODO";
|
||||
networkConfig.IPv6PrivacyExtensions = "kernel";
|
||||
dhcpV4Config.RouteMetric = 10;
|
||||
dhcpV6Config.RouteMetric = 10;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -89,6 +89,9 @@ in {
|
|||
};
|
||||
|
||||
programs = {
|
||||
# Required even when using home-manager's zsh module since the /etc/profile load order
|
||||
# is partly controlled by this. See nix-community/home-manager#3681.
|
||||
zsh.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
config = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue