feat: initial configuration for galene
This commit is contained in:
parent
0b6177320f
commit
ab009108dd
5 changed files with 29 additions and 11 deletions
1
certificates/id_ed25519_srv-videoconf.pub
Normal file
1
certificates/id_ed25519_srv-videoconf.pub
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPel38K6eMnz1kS/od+4znlq0/wqUk1HifXVerv/DZUZ srv-videoconf
|
12
hosts/srv-videoconf/boot.nix
Normal file
12
hosts/srv-videoconf/boot.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
# Use the GRUB 2 boot loader.
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
# efiSupport = true;
|
||||
# efiInstallAsRemovable = true;
|
||||
# Define on which hard drive you want to install Grub.
|
||||
device = "/dev/vda"; # or "nodev" for efi only
|
||||
};
|
||||
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||
}
|
||||
|
|
@ -1,7 +1,22 @@
|
|||
{rootPath, ...}: {
|
||||
imports = [
|
||||
./boot.nix
|
||||
./hardware-configuration.nix
|
||||
|
||||
(rootPath + /system_profiles/server.nix)
|
||||
];
|
||||
services.galene = {
|
||||
enable = true;
|
||||
|
||||
insecure = true;
|
||||
};
|
||||
|
||||
users = let
|
||||
username = "root";
|
||||
in {
|
||||
users."${username}".openssh.authorizedKeys.keyFiles = [
|
||||
(rootPath + /certificates/id_ed25519_srv-videoconf.pub)
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
# to /etc/nixos/configuration.nix instead.
|
||||
{
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
|
@ -13,15 +12,6 @@
|
|||
extraModulePackages = [];
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/d290e12c-d93c-45f6-b737-135b551c1951";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/8c56f52e-568a-4e03-b22c-6d1c7de7c118";}
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
|
|
|
@ -15,7 +15,7 @@ in {
|
|||
nixosConfigurations = builtins.mapAttrs (hostName: hostOptions: (hostHelper hostName hostOptions)) {
|
||||
crocoite = {stateVersion = "24.05";};
|
||||
|
||||
#srv-videoconf = {stateVersion = "24.11";};
|
||||
srv-videoconf = {stateVersion = "25.05";};
|
||||
|
||||
game-luanti = {stateVersion = "25.05";};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue