Compare commits
No commits in common. "4c07feb21a4f27bd375b15566caf8c2b5c053419" and "96f40629911ad1fca72039f3bd3aced0bc2436f7" have entirely different histories.
4c07feb21a
...
96f4062991
|
@ -5,7 +5,6 @@
|
||||||
./environment.nix
|
./environment.nix
|
||||||
./home-manager.nix
|
./home-manager.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./nixpkgs.nix
|
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
./security.nix
|
./security.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
{ config, lib, pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
nixpkgs = {
|
|
||||||
config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
packageOverrides = pkgs: {
|
|
||||||
agenix = inputs.agenix.packages.${config.nixpkgs.hostPlatform.system}.default;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
overlays = [ inputs.nur.overlay ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -8,8 +8,6 @@ in
|
||||||
options.qenya.sysadmin.enable = mkEnableOption "Base configuration for headless servers";
|
options.qenya.sysadmin.enable = mkEnableOption "Base configuration for headless servers";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
time.timeZone = "Etc/UTC";
|
|
||||||
|
|
||||||
# Allow remote deployment with colmena
|
# Allow remote deployment with colmena
|
||||||
deployment.targetUser = null;
|
deployment.targetUser = null;
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
22
flake.nix
22
flake.nix
|
@ -27,15 +27,25 @@
|
||||||
nodeNixpkgs = {
|
nodeNixpkgs = {
|
||||||
kalessin = import nixpkgs { system = "aarch64-linux"; }; # TODO: this should be generated from the host config somehow
|
kalessin = import nixpkgs { system = "aarch64-linux"; }; # TODO: this should be generated from the host config somehow
|
||||||
};
|
};
|
||||||
specialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = { name, nodes, ... }: {
|
defaults = { name, nodes, config, lib, pkgs, ... }: {
|
||||||
networking.hostName = name;
|
networking.hostName = name;
|
||||||
|
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
|
nixpkgs.flake.source = nixpkgs;
|
||||||
|
nix.nixPath = [ "nixpkgs=flake:nixpkgs" ];
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
packageOverrides = pkgs: {
|
||||||
|
agenix = agenix.packages.${config.nixpkgs.hostPlatform.system}.default;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
overlays = [ nur.overlay ];
|
||||||
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
@ -49,6 +59,7 @@
|
||||||
|
|
||||||
tohru = { name, nodes, ... }: {
|
tohru = { name, nodes, ... }: {
|
||||||
networking.hostId = "31da19c1";
|
networking.hostId = "31da19c1";
|
||||||
|
time.timeZone = "Europe/London";
|
||||||
deployment = {
|
deployment = {
|
||||||
allowLocalDeployment = true;
|
allowLocalDeployment = true;
|
||||||
targetHost = null; # disallow remote deployment
|
targetHost = null; # disallow remote deployment
|
||||||
|
@ -61,6 +72,7 @@
|
||||||
|
|
||||||
yevaud = { name, nodes, ... }: {
|
yevaud = { name, nodes, ... }: {
|
||||||
networking.hostId = "09673d65";
|
networking.hostId = "09673d65";
|
||||||
|
time.timeZone = "Etc/UTC";
|
||||||
deployment.targetHost = "yevaud.birdsong.network";
|
deployment.targetHost = "yevaud.birdsong.network";
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -70,6 +82,7 @@
|
||||||
|
|
||||||
orm = { name, nodes, ... }: {
|
orm = { name, nodes, ... }: {
|
||||||
networking.hostId = "00000000";
|
networking.hostId = "00000000";
|
||||||
|
time.timeZone = "Etc/UTC";
|
||||||
deployment.targetHost = "orm.birdsong.network";
|
deployment.targetHost = "orm.birdsong.network";
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -79,6 +92,7 @@
|
||||||
|
|
||||||
kalessin = { name, nodes, ... }: {
|
kalessin = { name, nodes, ... }: {
|
||||||
networking.hostId = "534b538e";
|
networking.hostId = "534b538e";
|
||||||
|
time.timeZone = "Etc/UTC";
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = "kalessin.birdsong.network";
|
targetHost = "kalessin.birdsong.network";
|
||||||
buildOnTarget = true;
|
buildOnTarget = true;
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
boot.loader.systemd-boot.editor = false;
|
boot.loader.systemd-boot.editor = false;
|
||||||
|
|
||||||
age.secrets.wireguard-peer-tohru.file = ../../secrets/wireguard-peer-tohru.age;
|
age.secrets.wireguard-peer-tohru.file = ../../secrets/wireguard-peer-tohru.age;
|
||||||
|
|
||||||
birdsong.peering = {
|
birdsong.peering = {
|
||||||
enable = true;
|
enable = true;
|
||||||
privateKeyFile = config.age.secrets.wireguard-peer-tohru.path;
|
privateKeyFile = config.age.secrets.wireguard-peer-tohru.path;
|
||||||
|
@ -29,8 +30,6 @@
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
time.timeZone = "Europe/London";
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_GB.UTF-8";
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
console.keyMap = "uk";
|
console.keyMap = "uk";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue