diff --git a/hosts/lily/default.nix b/hosts/lily/default.nix new file mode 100644 index 0000000..b7772a7 --- /dev/null +++ b/hosts/lily/default.nix @@ -0,0 +1,41 @@ +{ pkgs, config, ... }: +{ + imports = [ + ./hardware-configuration.nix + ./variables.nix + ./../../modules/core/default.server.nix + ]; + + networking.hostName = "lily"; + + liv.server.enable = true; + + time.timeZone = "Europe/Amsterdam"; + + environment.systemPackages = with pkgs; [ + kitty.terminfo + zfs + ]; + + boot = { + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + supportedFilesystems = [ "zfs" ]; + }; + + networking.hostId = "8wfk1d8a"; + + services.zfs = { + autoScrub.enable = true; + trim.enable = true; + }; + + # boot.zfs.extraPools = [ "terrabite" ]; + + # fileSystems."/terrabite/main" = { + # device = "terrabite/main"; + # fsType = "zfs"; + # }; +} diff --git a/hosts/lily/variables.nix b/hosts/lily/variables.nix new file mode 100644 index 0000000..00f986e --- /dev/null +++ b/hosts/lily/variables.nix @@ -0,0 +1,19 @@ +{ + lib, + config, + ... +}: +let + inherit (lib) mkOption types; + inherit (config.liv) variables; +in +{ + options.liv.variables.lily = { + thisMachine = mkOption { + default = "lily.srv.${variables.primaryDomain}"; + type = types.str; + readOnly = true; + description = "Domain of this specific machine"; + }; + }; +}