Migrate Lewis to this repo
This commit is contained in:
parent
9d96798518
commit
52a4563192
13 changed files with 5873 additions and 55 deletions
|
@ -23,4 +23,9 @@
|
|||
system = "x86_64-linux";
|
||||
nixosModule = import ./jefke/configuration.nix;
|
||||
};
|
||||
|
||||
lewis = {
|
||||
system = "x86_64-linux";
|
||||
nixosModule = import ./lewis/configuration.nix;
|
||||
};
|
||||
}
|
||||
|
|
31
machines/lewis/configuration.nix
Normal file
31
machines/lewis/configuration.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
self,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
config = {
|
||||
facter.reportPath = ./facter.json;
|
||||
networking.hostName = "lewis";
|
||||
system.stateVersion = "23.05";
|
||||
users.users.root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim ++ config.pim.ssh.keys.niels;
|
||||
|
||||
sops = {
|
||||
age.keyFile = "/root/.config/sops/age/keys.txt";
|
||||
defaultSopsFile = "${self}/secrets/lewis/nixos.yaml";
|
||||
};
|
||||
|
||||
deployment = {
|
||||
targetHost = "lewis";
|
||||
targetUser = "root";
|
||||
tags = ["server" "kubernetes"];
|
||||
};
|
||||
|
||||
pim = {
|
||||
sops-nix.usersWithSopsKeys = ["root"];
|
||||
# TODO: this should be dynamically set using Colmena tags
|
||||
k3s.serverAddr = "https://jefke.dmz:6443";
|
||||
data-sharing.enable = true;
|
||||
backups.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
5507
machines/lewis/facter.json
Normal file
5507
machines/lewis/facter.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -75,6 +75,7 @@
|
|||
|
||||
boot.initrd.luks.devices."luks-8ffd3129-4908-4209-98c4-4eb68a35c494".device = "/dev/disk/by-uuid/8ffd3129-4908-4209-98c4-4eb68a35c494";
|
||||
|
||||
# TODO: create option for this instead of commenting out
|
||||
# specialisation.cosmic.configuration = {
|
||||
# imports = [
|
||||
# inputs.nixos-cosmic.nixosModules.default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue