More cleanup

This commit is contained in:
Sridhar Ratnakumar 2025-07-27 16:21:34 -04:00
parent f5f69ae4ba
commit 5f1a6424bc
4 changed files with 0 additions and 92 deletions

View file

@ -1,27 +0,0 @@
{ flake, pkgs, ... }:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
imports = [
"${inputs.nixpkgs}/nixos/modules/virtualisation/lxc-container.nix"
(self + /modules/nixos/shared/primary-as-admin.nix)
];
nixpkgs.hostPlatform = "x86_64-linux";
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
};
# Workaround the annoying `Failed to start Network Manager Wait Online` error on switch.
# https://github.com/NixOS/nixpkgs/issues/180175
systemd.services.NetworkManager-wait-online.enable = false;
system.stateVersion = "24.11";
}

View file

@ -1,19 +0,0 @@
{ pkgs, ... }:
{
imports = [
./configuration.nix
];
# Hello world service
services.nginx = {
enable = true;
# Return "Hello World" on / request
virtualHosts."_" = {
root = "${pkgs.writeTextDir "index.html" "Hello World"}";
};
};
networking.firewall = {
allowedTCPPorts = [ 80 ];
};
}

View file

@ -1,27 +0,0 @@
{ flake, pkgs, ... }:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
imports = [
"${inputs.nixpkgs}/nixos/modules/virtualisation/lxd-virtual-machine.nix"
(self + /modules/nixos/shared/primary-as-admin.nix)
];
nixpkgs.hostPlatform = "x86_64-linux";
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
};
# Workaround the annoying `Failed to start Network Manager Wait Online` error on switch.
# https://github.com/NixOS/nixpkgs/issues/180175
systemd.services.NetworkManager-wait-online.enable = false;
system.stateVersion = "24.11";
}

View file

@ -1,19 +0,0 @@
{ pkgs, ... }:
{
imports = [
./configuration.nix
];
# Hello world service
services.nginx = {
enable = true;
# Return "Hello World" on / request
virtualHosts."_" = {
root = "${pkgs.writeTextDir "index.html" "Hello World"}";
};
};
networking.firewall = {
allowedTCPPorts = [ 80 ];
};
}