Skip to content

Commit

Permalink
Update sirius host
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasl-dev committed Oct 23, 2024
1 parent 164c48d commit a89af2f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Nix
result
*.qcow2
11 changes: 11 additions & 0 deletions hosts/specific/sirius/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{ pkgs, lib, ... }:

{
imports = [
./hardware-configuration.nix
Expand All @@ -16,4 +18,13 @@
hostName = "sirius";
domain = "lukasl.dev";
};

virtualisation.oci-containers = {
backend = "docker";
};

users.users = {
root.shell = lib.mkForce pkgs.zsh;
lukas.shell = lib.mkForce pkgs.zsh;
};
}
4 changes: 1 addition & 3 deletions hosts/specific/sirius/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
wget
curl
just
zig
];

programs.neovim = {
Expand All @@ -17,7 +18,4 @@
viAlias = true;
vimAlias = true;
};

environment.etc."xdg/nvim".source = ../../../dots/nvim;
environment.variables.XDG_CONFIG_DIRS = [ "/etc/xdg" ];
}
11 changes: 10 additions & 1 deletion hosts/specific/sirius/ssh.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
services.openssh.enable = true;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
AllowUsers = null;
UseDns = true;
PermitRootLogin = "yes";
};
};

networking.firewall = {
allowedTCPPorts = [ 22 ];
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ vega-vm-build:
nixos-rebuild build-vm --flake .#vega

vega-vm-run:
./result/bin/run-nixos-vm
./result/bin/run-vega-vm

vega-vm: vega-vm-clean vega-vm-build vega-vm-run

Expand All @@ -25,7 +25,7 @@ sirius-vm-build:
nixos-rebuild build-vm --flake .#sirius

sirius-vm-run:
./result/bin/run-nixos-vm
./result/bin/run-sirius-vm

sirius-vm: sirius-vm-clean sirius-vm-build sirius-vm-run

Expand Down

0 comments on commit a89af2f

Please sign in to comment.