Initial commit
This commit is contained in:
commit
8ecabce74c
8 changed files with 410 additions and 0 deletions
12
modules/home-manager/bash.nix
Normal file
12
modules/home-manager/bash.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
rb = "sudo nixos-rebuild switch --flake /etc/nixos#fw";
|
||||
nx = "vim ~/nixos-config/hosts/fw/configuration.nix";
|
||||
hm = "vim ~/nixos-config/hosts/fw/home.nix";
|
||||
};
|
||||
};
|
||||
}
|
||||
19
modules/home-manager/git.nix
Normal file
19
modules/home-manager/git.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "cubernetes";
|
||||
email = "timo42@proton.me";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
core = {
|
||||
editor = "vim";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
19
modules/home-manager/ssh.nix
Normal file
19
modules/home-manager/ssh.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.ssh-agent.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/ssh-agent";
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks = {
|
||||
"*" = {
|
||||
identitiesOnly = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue