feat: added deployment flow
This commit is contained in:
parent
af43876fcb
commit
f0a030c44a
5 changed files with 186 additions and 2 deletions
44
nix/configuration.nix
Normal file
44
nix/configuration.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./module.nix
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
nix.settings.trusted-users = ["root" "cyberian"];
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 2 * 1024; # 2GB
|
||||
}
|
||||
];
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
users.users.cyberian = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
};
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
services.qemuGuest.enable = true;
|
||||
services.acpid.enable = true;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
|
||||
# Enable the volpe service
|
||||
services.volpe = {
|
||||
enable = true;
|
||||
domain = "69.61.19.180";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue