summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2025-03-16 18:09:19 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2025-03-16 18:09:19 +0100
commit72cfb21d9b801acec843d068d32727cc19b14a43 (patch)
tree24d0a9a736d54df9a7825b0e92182b1558bb3cd4 /home
parent5071706126a85da430e754f8d01722f6b2d26a78 (diff)
add remote nix builder
Diffstat (limited to 'home')
-rw-r--r--home/default.nix30
1 files changed, 23 insertions, 7 deletions
diff --git a/home/default.nix b/home/default.nix
index 2486b09..bc7026d 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -1,4 +1,8 @@
-{pkgs, ...}: {
+{
+ config,
+ pkgs,
+ ...
+}: {
personal = {
profiles = {
dev = true;
@@ -14,10 +18,22 @@
accounts.email.accounts.personal.primary = true;
- programs.bash.bashrcExtra = ''
- function screen (){
- echo -ne "\033]0;screen $@\a"
- sudo ${pkgs.screen}/bin/screen $@
- }
- '';
+ programs = {
+ bash.bashrcExtra = ''
+ function screen (){
+ echo -ne "\033]0;screen $@\a"
+ sudo ${pkgs.screen}/bin/screen $@
+ }
+ '';
+
+ # necessary because the hephaistos remote builder sets
+ # nixremote as default ssh user
+ ssh = {
+ enable = true;
+ matchBlocks."hephaistos.local" = {
+ user = config.home.username;
+ extraOptions.IdentitiesOnly = "no";
+ };
+ };
+ };
}