This commit is contained in:
Luj 2023-06-10 23:51:49 +02:00
commit 3298173246
Signed by: luj
GPG key ID: 6FC74C847011FD83
11 changed files with 102 additions and 155 deletions

View file

@ -118,7 +118,7 @@ VfXtULncAiEA2gmqdr+ugFz5tvPdKwanroTiMTUMhhCRYVlQlyTApyQ=
services.openssh = {
enable = true;
ports = [ 45 ];
permitRootLogin = "yes";
settings.PermitRootLogin = "yes";
openFirewall = true;
};

View file

@ -142,7 +142,7 @@ VfXtULncAiEA2gmqdr+ugFz5tvPdKwanroTiMTUMhhCRYVlQlyTApyQ=
services.openssh = {
enable = true;
ports = [ 45 ];
permitRootLogin = "yes";
settings.PermitRootLogin = "yes";
openFirewall = true;
};

View file

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, inputs, ... }:
{
@ -15,12 +11,11 @@
inputs.nixos-apple-silicon.nixosModules.apple-silicon-support
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
nixpkgs.config.allowUnsupportedSystem = false;
networking.hostName = "macintosh"; # Define your hostname.
# Pick only one of the below networking options.
networking.wireless.enable = false;
hardware.asahi.addEdgeKernelConfig = true;
@ -34,18 +29,24 @@
LIBSEAT_BACKEND = "logind";
};
programs.fish.shellInit = ''
if test -z (pgrep ssh-agent)
eval (ssh-agent -c) > /dev/null
set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK
set -Ux SSH_AGENT_PID $SSH_AGENT_PID
set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK
end
'';
services.xserver = {
enable = true;
layout = "fr";
displayManager.gdm.enable = true;
libinput = {
enable = true;
naturalScrolling = true;
};
};
services.tailscale.enable = true;
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
networking.networkmanager.dns = "systemd-resolved";
services.resolved.enable = true;
time.timeZone = "Europe/Paris";
# Select internationalisation properties.
@ -57,11 +58,6 @@
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
services.xserver.libinput = {
enable = true;
naturalScrolling = true;
};
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
@ -88,8 +84,6 @@
security.pam.services.swaylock = { };
services.gnome3.gnome-keyring.enable = true;
security.pam.services.login.enableGnomeKeyring = true;
programs.ssh.startAgent = true;
programs.adb.enable = true;