SSH moved into own config file
This commit is contained in:
parent
c2eaa3b7df
commit
6d566b700c
5
TODO.md
5
TODO.md
@ -15,9 +15,10 @@
|
||||
- [x] options for YUBIKEY to make more sense and control
|
||||
- [x] power profiles solution in waybar
|
||||
- [x] auto-cpufreq
|
||||
- [x] ssh config module
|
||||
- [ ] modularity connected via configuration.nix file with home manager (disable gnome, gnome configuration will be disabled too)
|
||||
- [ ] neovim
|
||||
- [ ] librewolf and firefox fix
|
||||
- [ ] librewolf and firefox fix, extensions and bookmarks in librewolf
|
||||
- [ ] graph of my system structure
|
||||
- [ ] cleanup hyprland subtools (rofi, hyprlock, waybar)
|
||||
- [ ] 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
|
||||
- [ ] NVIDIA options
|
||||
- [ ] fix plasma manager and extend gnome configuration
|
||||
- [ ] merge shell aliases
|
||||
- [ ] nix-on-droid
|
||||
|
||||
- [ ] update my home page and create new web
|
||||
- [ ] fix kde theme in stylix
|
||||
|
||||
@ -67,6 +67,7 @@
|
||||
lock-on-remove = false;
|
||||
notify = false;
|
||||
};
|
||||
ssh.client.enable = false;
|
||||
};
|
||||
|
||||
# Basic programs to enable
|
||||
|
||||
@ -71,6 +71,7 @@
|
||||
lock-on-remove = false;
|
||||
notify = true;
|
||||
};
|
||||
ssh.client.enable = true;
|
||||
};
|
||||
|
||||
# Basic programs to enable
|
||||
@ -78,13 +79,6 @@
|
||||
programs.wireshark.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;
|
||||
|
||||
# Allow unfree packages
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
./packages/virtual-machines.nix
|
||||
./packages/yubikey.nix
|
||||
./packages/sops/sops.nix
|
||||
./packages/ssh-client.nix
|
||||
];
|
||||
|
||||
program = {
|
||||
@ -22,6 +23,7 @@
|
||||
lock-on-remove = lib.mkDefault false;
|
||||
notify = lib.mkDefault false;
|
||||
};
|
||||
ssh.client.enable = lib.mkDefault true;
|
||||
};
|
||||
sys.desktop.steamdeck.enable = lib.mkDefault false;
|
||||
sys.security.sops.enable = lib.mkDefault true;
|
||||
|
||||
19
nixos/system/packages/ssh-client.nix
Normal file
19
nixos/system/packages/ssh-client.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user