mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-22 05:54:41 +01:00
add mosh
This commit is contained in:
parent
f40587796a
commit
abe555ca4c
|
@ -1,7 +1,11 @@
|
||||||
{ pkgs, modulesPath, lib, ... }:
|
|
||||||
{
|
{
|
||||||
imports =
|
pkgs,
|
||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
modulesPath,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services."NetworkManager-wait-oline".enable = false;
|
systemd.services."NetworkManager-wait-oline".enable = false;
|
||||||
|
@ -23,16 +27,19 @@
|
||||||
externalInterface = "enp1s0";
|
externalInterface = "enp1s0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
interfaces."enp1s0" = {
|
interfaces."enp1s0" = {
|
||||||
ipv6.addresses = [{
|
ipv6.addresses = [
|
||||||
|
{
|
||||||
address = "2a01:4f8:c17:c51f::";
|
address = "2a01:4f8:c17:c51f::";
|
||||||
prefixLength = 64;
|
prefixLength = 64;
|
||||||
}];
|
}
|
||||||
ipv4.addresses = [{
|
];
|
||||||
|
ipv4.addresses = [
|
||||||
|
{
|
||||||
address = "91.107.221.11";
|
address = "91.107.221.11";
|
||||||
prefixLength = 32;
|
prefixLength = 32;
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
defaultGateway6 = {
|
defaultGateway6 = {
|
||||||
address = "fe80::1";
|
address = "fe80::1";
|
||||||
|
@ -57,13 +64,18 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.mosh.enable = true;
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PermitRootLogin = "prohibit-password";
|
settings.PermitRootLogin = "prohibit-password";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim wget neofetch btop
|
vim
|
||||||
|
wget
|
||||||
|
neofetch
|
||||||
|
btop
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
|
@ -76,7 +88,9 @@
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ {
|
swapDevices = [
|
||||||
|
{
|
||||||
device = "/dev/sda2";
|
device = "/dev/sda2";
|
||||||
} ];
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue