From 2524df484f6d378cf7731ab30c5f371362f7795f Mon Sep 17 00:00:00 2001 From: tzlil Date: Sat, 14 Jan 2023 15:15:40 +0200 Subject: changed sway Mod, change cli to use pc /etc/hosts entry, add pc to known hosts for tzlil ssh config --- mixins/cli.nix | 4 ++-- mixins/sway.nix | 2 +- profiles/user.nix | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mixins/cli.nix b/mixins/cli.nix index 9d2ba95..61153d3 100644 --- a/mixins/cli.nix +++ b/mixins/cli.nix @@ -31,8 +31,8 @@ l = "ls -alh"; }; functions = { - sb.body = "nixos-rebuild build --flake git+ssh://tzlil@100.99.246.128/home/tzlil/newflake --use-remote-sudo"; - sw.body = "nixos-rebuild switch --flake git+ssh://tzlil@100.99.246.128/home/tzlil/newflake --use-remote-sudo"; + sb.body = "nixos-rebuild build --flake git+ssh://pc/home/tzlil/newflake --use-remote-sudo"; + sw.body = "nixos-rebuild switch --flake git+ssh://pc/home/tzlil/newflake --use-remote-sudo"; }; }; }; diff --git a/mixins/sway.nix b/mixins/sway.nix index 5e80167..7ff601a 100644 --- a/mixins/sway.nix +++ b/mixins/sway.nix @@ -140,7 +140,7 @@ in { } ]; - modifier = "Mod4"; + modifier = "Mod5"; left = "h"; down = "n"; up = "e"; diff --git a/profiles/user.nix b/profiles/user.nix index 46f8d50..71c6617 100644 --- a/profiles/user.nix +++ b/profiles/user.nix @@ -45,12 +45,12 @@ }; programs.ssh = { enable = true; - # knownHosts = { - # pc = { - # extraHostNames = [ "100.99.246.128" ]; - # publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINu5lRKb1Ao4uj1tAV10QHKIvXfC8ncQ65b+oJtxrd1e"; - # }; - # }; + knownHosts = { + pc = { + extraHostNames = [ "100.99.246.128" ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINu5lRKb1Ao4uj1tAV10QHKIvXfC8ncQ65b+oJtxrd1e"; + }; + }; matchBlocks."*".identityFile = config.age.secrets."id_ed25519".path; }; }; -- cgit 1.4.1