Format + new ssh

This commit is contained in:
Samy Avrillon 2025-08-24 16:51:55 +02:00
parent c56c99352b
commit b0d74406fa
6 changed files with 88 additions and 28 deletions

View File

@ -21,7 +21,15 @@
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ "dm-snapshot" "uas" "usbcore" "usb_storage" "ext4" "nls_cp437" "nls_iso8859_1"];
boot.initrd.kernelModules = [
"dm-snapshot"
"uas"
"usbcore"
"usb_storage"
"ext4"
"nls_cp437"
"nls_iso8859_1"
];
boot.initrd.postDeviceCommands = pkgs.lib.mkBefore ''
mkdir -m 0755 -p /run/secrets/
sleep 2

View File

@ -1,4 +1,11 @@
{config, lib, pkgs, sops, ...}: {
{
config,
lib,
pkgs,
sops,
...
}:
{
home-manager.users.mysaa.accounts.email.accounts = {

View File

@ -1,6 +1,12 @@
{config, lib, pkgs, ...}: {
{
config,
lib,
pkgs,
...
}:
{
home-manager.users.mysaa.programs.git = {
home-manager.users.mysaa.programs.git = {
enable = true;
userEmail = "mysaa@hadoly.fr";
userName = "Mysaa Java";
@ -10,6 +16,6 @@ home-manager.users.mysaa.programs.git = {
aliases = {
l = "log --oneline --graph";
};
};
};
}

View File

@ -1,9 +1,20 @@
{config, lib, pkgs, ...}: {
{
config,
lib,
pkgs,
...
}:
{
fileSystems."/run/secrets" = {
device = "/dev/disk/by-uuid/545bfd15-0973-4395-9d05-6c4c78a9e45c";
fsType = "ext4";
options = ["nofail" "noauto" "ro" "x-systemd.automount"];
options = [
"nofail"
"noauto"
"ro"
"x-systemd.automount"
];
};
}

View File

@ -1,6 +1,12 @@
{config, lib, pkgs, ...}: {
{
config,
lib,
pkgs,
...
}:
{
programs.ssh = {
programs.ssh = {
extraConfig = ''
Host git-ssh.hadoly.fr
Hostname git-ssh.hadoly.fr
@ -10,7 +16,22 @@ programs.ssh = {
Host github.com
HostName github.com
IdentityFile /run/secrets/ssh/MysaaJava@github.com
Host midori
HostName midori.bernard.com.de
User mysaa
IdentityFile /run/secrets/ssh/mysaa@midori.bernard.com.de
Match host nasvrillon exec "nc -w 1 -z 192.168.1.39 5001"
HostName 192.168.1.39
Port 22
Host nasvrillon
HostName nasvrillon.myqnapcloud.com
User samy
Port 6962
ConnectTimeout 10
AddressFamily inet
'';
};
};
}

View File

@ -32,13 +32,19 @@
#hyphenDicts.fr_FR
hyphenDicts.en_US
hyphenDicts.de_DE
steam
];
programs.steam.enable = true;
home-manager.users.mysaa.services.kdeconnect.enable = true;
# We open kdeconnect ports
networking.firewall = rec {
allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
allowedUDPPortRanges = allowedTCPPortRanges;
};
@ -48,7 +54,8 @@
enable = true;
profiles.default = {
isDefault = true;
settings = {}
settings =
{ }
// lib.attrsets.concatMapAttrs (
_: account:
lib.optionalAttrs (account.passwordCommand != null) (