openssh for tailscale + final modules import

This commit is contained in:
boyreau 2026-08-21 12:18:09 +02:00
commit b05e714ae7
2 changed files with 13 additions and 2 deletions

View file

@ -27,8 +27,8 @@ Top-level files are global configurations
├── modules # Custom nixos modules re-usable accross machines ├── modules # Custom nixos modules re-usable accross machines
│   └── default.nix │   └── default.nix
│ │
├── roles ├── roles # Either desktop or server role
│   └── desktop.nix # Desktop role │   └── desktop.nix
├── README.md ├── README.md
└── shell.nix └── shell.nix
``` ```

View file

@ -4,6 +4,8 @@
/etc/nixos/modules/security.nix /etc/nixos/modules/security.nix
/etc/nixos/modules/nix.nix /etc/nixos/modules/nix.nix
/etc/nixos/modules/tailscale.nix
/etc/nixos/modules/ssl.nix
./hardware-configuration.nix ./hardware-configuration.nix
./users.nix ./users.nix
@ -16,6 +18,14 @@
"/nix/var/nix/profiles/per-user/root/channels" "/nix/var/nix/profiles/per-user/root/channels"
]; ];
services.openssh.enable = true;
services.openssh.listenAddresses = [
{
addr = "100.0.0.0";
port = 22;
}
];
networking.hostName = "pepere"; networking.hostName = "pepere";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -24,5 +34,6 @@
i18n.defaultLocale = "fr_FR.UTF-8"; i18n.defaultLocale = "fr_FR.UTF-8";
# Do not change
system.stateVersion = "26.05"; system.stateVersion = "26.05";
} }