SSH moved into own config file

This commit is contained in:
foglar 2024-12-27 21:48:56 +01:00
parent c2eaa3b7df
commit 6d566b700c
5 changed files with 26 additions and 9 deletions

View File

@ -15,9 +15,10 @@
- [x] options for YUBIKEY to make more sense and control - [x] options for YUBIKEY to make more sense and control
- [x] power profiles solution in waybar - [x] power profiles solution in waybar
- [x] auto-cpufreq - [x] auto-cpufreq
- [x] ssh config module
- [ ] modularity connected via configuration.nix file with home manager (disable gnome, gnome configuration will be disabled too) - [ ] modularity connected via configuration.nix file with home manager (disable gnome, gnome configuration will be disabled too)
- [ ] neovim - [ ] neovim
- [ ] librewolf and firefox fix - [ ] librewolf and firefox fix, extensions and bookmarks in librewolf
- [ ] graph of my system structure - [ ] graph of my system structure
- [ ] cleanup hyprland subtools (rofi, hyprlock, waybar) - [ ] cleanup hyprland subtools (rofi, hyprlock, waybar)
- [ ] modularize hyprland config into multiple files - [ ] modularize hyprland config into multiple files
@ -25,7 +26,7 @@
- [ ] make static background folder and figure out how to simply manage backgrounds across my devices - [ ] make static background folder and figure out how to simply manage backgrounds across my devices
- [ ] NVIDIA options - [ ] NVIDIA options
- [ ] fix plasma manager and extend gnome configuration - [ ] fix plasma manager and extend gnome configuration
- [ ] merge shell aliases - [ ] nix-on-droid
- [ ] update my home page and create new web - [ ] update my home page and create new web
- [ ] fix kde theme in stylix - [ ] fix kde theme in stylix

View File

@ -67,6 +67,7 @@
lock-on-remove = false; lock-on-remove = false;
notify = false; notify = false;
}; };
ssh.client.enable = false;
}; };
# Basic programs to enable # Basic programs to enable

View File

@ -71,6 +71,7 @@
lock-on-remove = false; lock-on-remove = false;
notify = true; notify = true;
}; };
ssh.client.enable = true;
}; };
# Basic programs to enable # Basic programs to enable
@ -78,13 +79,6 @@
programs.wireshark.enable = true; programs.wireshark.enable = true;
programs.auto-cpufreq.enable = true; programs.auto-cpufreq.enable = true;
programs.ssh.extraConfig = ''
Host masaoka
HostName 192.168.8.140
User foglar
IdentityFile ~/.ssh/id_masaoka
'';
#services.twingate.enable = true; #services.twingate.enable = true;
# Allow unfree packages # Allow unfree packages

View File

@ -7,6 +7,7 @@
./packages/virtual-machines.nix ./packages/virtual-machines.nix
./packages/yubikey.nix ./packages/yubikey.nix
./packages/sops/sops.nix ./packages/sops/sops.nix
./packages/ssh-client.nix
]; ];
program = { program = {
@ -22,6 +23,7 @@
lock-on-remove = lib.mkDefault false; lock-on-remove = lib.mkDefault false;
notify = lib.mkDefault false; notify = lib.mkDefault false;
}; };
ssh.client.enable = lib.mkDefault true;
}; };
sys.desktop.steamdeck.enable = lib.mkDefault false; sys.desktop.steamdeck.enable = lib.mkDefault false;
sys.security.sops.enable = lib.mkDefault true; sys.security.sops.enable = lib.mkDefault true;

View File

@ -0,0 +1,19 @@
{
lib,
config,
...
}: {
options = {
program.ssh.client.enable = lib.mkEnableOption "enable SSH client configuration";
};
config = lib.mkIf config.program.ssh.client.enable {
programs.ssh = {
extraConfig = ''
Host masaoka
HostName 192.168.8.140
User foglar
IdentityFile ~/.ssh/id_masaoka
'';
};
};
}