Skip to content

Commit

Permalink
host: add vulpes
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Feb 5, 2024
1 parent 91710e0 commit 32e92b0
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hosts/vulpes/_hardware.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda2"; fsType = "ext4"; };
}
18 changes: 18 additions & 0 deletions hosts/vulpes/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ pkgs, ... }: {

zramSwap.enable = true;
environment.systemPackages = with pkgs; [
curl
htop
wget
git
helix
];

users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOqoRDiXXxBKU0FjnT2YcFnczYBKMKXGPgD9IVfBg5gq"
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIHnLWTS5/vPyPFY+tCVYn3Ejf3NQpQzcGnWLQTyE7lbzAAAAC3NzaDpwYXNzZm94"
];

system.stateVersion = "24.05";
}
9 changes: 9 additions & 0 deletions hosts/vulpes/networking.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
hostName = "vulpes";
firewall.allowedTCPPorts = [ 80 443 ];
firewall.allowedUDPPorts = [ 443 22222 ];
firewall.enable = false;

useDHCP = true;
useNetworkd = true;
}
17 changes: 17 additions & 0 deletions hosts/vulpes/nix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ inputs }:
{
registry = {
nixpkgs.flake = inputs.nixpkgs;
};

extraOptions = ''
experimental-features = nix-command flakes
'';

channel.enable = false;

settings = {
nix-path = [ "nixpkgs=${inputs.nixpkgs}" ];
auto-optimise-store = true;
};
}
6 changes: 6 additions & 0 deletions hosts/vulpes/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
config = {
allowUnfree = true;
allowBroken = true;
};
}
4 changes: 4 additions & 0 deletions hosts/vulpes/services.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ pkgs }:
{
openssh.enable = true;
}

0 comments on commit 32e92b0

Please sign in to comment.