Commit 68d57854e6c8
Changed files (3)
machine
machine/ehime.nix
@@ -1,26 +0,0 @@
-{ config, pkgs, ... }:
-
-{
- imports =
- [ # Include the results of the hardware scan.
- ../hardware-configuration.nix
- ../profiles/desktop.nix
- ../profiles/dev.nix
- ../profiles/dockerization.nix
- ../location/home.nix
- ../profiles/avahi.nix
- ];
-
- time.timeZone = "Europe/Paris";
-
- boot.loader.systemd-boot.enable = false;
- boot.loader.grub.device = "/dev/sda";
- boot.initrd.checkJournalingFS = false;
-
- boot.kernel.sysctl."vm.overcommit_memory" = "1";
-
- # Enable the OpenSSH daemon.
- services.openssh.enable = true;
- users.users.root.openssh.authorizedKeys.keys =
- with import ../ssh-keys.nix; [ wakasu ];
-}
machine/hokkaido.nix
@@ -1,50 +0,0 @@
-{ config, pkgs, ... }:
-
-{
- imports =
- [ # Include the results of the hardware scan.
- ../hardware-configuration.nix
- ../profiles/server.nix
- ../profiles/gitconfig.nix
- ../profiles/avahi.nix
- ../profiles/syncthing.nix
- ../profiles/fish.nix
- ../service/ssh-tunnel.nix
- ../location/home.nix
- ];
-
- time.timeZone = "Europe/Paris";
-
- networking.enableIPv6 = false;
- networking.firewall.allowedTCPPorts = [ 80 443 2375 8384 ];
-
- home-manager.users.vincent = {...}: {
- imports = [ ../envs/hokkaido.nix ../envs/server.nix ];
- };
-
- virtualisation.docker = {
- enable = true;
- package = pkgs.docker-edge;
- storageDriver = "overlay2";
- extraOptions = "--experimental --host=tcp://0.0.0.0:2375";
- };
- services.ssh-tunnel = {
- enable = true;
- localUser = "vincent";
- remoteHostname = "95.85.58.158";
- remotePort = 22;
- remoteUser = "vincent";
- bindPort = 2223;
- };
-
- fileSystems."/data/nyan" = {
- device = "/dev/disk/by-uuid/9d4ee0b8-bffb-4a18-8c23-cca3bf5b4487";
- fsType = "ext4";
- options = ["relatime"];
- };
- fileSystems."/data/toshito" = {
- device = "/dev/disk/by-uuid/57b0853e-6650-41d6-b42a-93f2fd182d2a";
- fsType = "ext4";
- options = ["relatime"];
- };
-}
machine/kobe.nix
@@ -1,42 +0,0 @@
-{ config, pkgs, ... }:
-
-{
- imports =
- [ # Include the results of the hardware scan.
- ../hardware-configuration.nix
- ../configuration/custom-packages.nix
- ../configuration/users.nix
- ../profiles/server.nix
- ../profiles/dockerization.nix
- ../profiles/avahi.nix
- ../profiles/gitconfig.nix
- ../location/docker.nix
- ../service/ssh-tunnel.nix
- ];
-
- time.timeZone = "Europe/Paris";
- boot.loader.systemd-boot.enable = true;
-
- # Enable the OpenSSH daemon.
- services.openssh.enable = true;
- users.users.root.openssh.authorizedKeys.keys =
- with import ../ssh-keys.nix; [ wakasu ];
-
- virtualisation.docker.extraOptions = "--label=type=server -H unix:///var/run/docker.sock -H 0.0.0.0:2375";
- networking.firewall.allowedTCPPorts = [ 2375 ];
-
- # remote reverse ssh tunnel
- services.ssh-tunnel = {
- enable = true;
- localUser = "vincent";
- remoteHostname = "95.85.58.158";
- remotePort = 22;
- remoteUser = "vincent";
- bindPort = 2222;
- };
-
- # TODO Move this in a profile
- environment.systemPackages = with pkgs; [
- ape
- ];
-}