Compare commits
5 commits
bb6c9ea5d1
...
1c35c527a5
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c35c527a5 | |||
| c690057add | |||
| 70baaaca0f | |||
| b202fe478d | |||
| ade2927e8b |
9 changed files with 45 additions and 4 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -2,3 +2,7 @@
|
||||||
# Ignore build outputs from performing a nix-build or `nix build` command
|
# Ignore build outputs from performing a nix-build or `nix build` command
|
||||||
result
|
result
|
||||||
result-*
|
result-*
|
||||||
|
|
||||||
|
# ---> Kate
|
||||||
|
# Ignore kate's swap files
|
||||||
|
*.kate-swp
|
||||||
|
|
|
||||||
6
roles/desktop/default.nix
Executable file → Normal file
6
roles/desktop/default.nix
Executable file → Normal file
|
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./discord.nix
|
./services
|
||||||
./firefox.nix
|
./programs
|
||||||
./micro.nix
|
|
||||||
./keepassxc.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
roles/desktop/programs/default.nix
Executable file
10
roles/desktop/programs/default.nix
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./discord.nix
|
||||||
|
./firefox.nix
|
||||||
|
./micro.nix
|
||||||
|
./keepassxc.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -18,6 +18,7 @@ let
|
||||||
# monochrome-light, monochrome-dark or colorful
|
# monochrome-light, monochrome-dark or colorful
|
||||||
TrayIconAppearance = "monochrome-light";
|
TrayIconAppearance = "monochrome-light";
|
||||||
};
|
};
|
||||||
|
SSHAgent.Enabled = true;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
7
roles/desktop/services/default.nix
Normal file
7
roles/desktop/services/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./ssh-agent.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
21
roles/desktop/services/ssh-agent.nix
Normal file
21
roles/desktop/services/ssh-agent.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.ssh.startAgent = true;
|
||||||
|
/*
|
||||||
|
Home assistant added an option that does this
|
||||||
|
https://github.com/nix-community/home-manager/commit/2d9210f25ed18d5d4e11e6b886de4027c0c51a94
|
||||||
|
but since I still need to fix home-manager's envvars not applying I'll stick to the NixOS one
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
TODO: fix SSH_AUTH_SOCK not being set in Plasma
|
||||||
|
Turns out the NixOS module also has issues :3
|
||||||
|
The env is set but only in bash, not in the DE, so
|
||||||
|
keepass can't pick it up. For now I'll just set it manually
|
||||||
|
*/
|
||||||
|
home-manager.users.toast.xdg.configFile."plasma-workspace/env/ssh-agent.sh".text = ''
|
||||||
|
if [[ -z "$SSH_AUTH_SOCK" ]]; then
|
||||||
|
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue