mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
git
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
vicinae.url = "github:vicinaehq/vicinae";
|
vicinae.url = "github:vicinaehq/vicinae";
|
||||||
ghostty.url = "github:ghostty-org/ghostty";
|
ghostty.url = "github:ghostty-org/ghostty";
|
||||||
|
inputs.auth-keys-hub.url = "github:input-output-hk/auth-keys-hub";
|
||||||
|
|
||||||
quickshell = {
|
quickshell = {
|
||||||
url = "github:outfoxxed/quickshell";
|
url = "github:outfoxxed/quickshell";
|
||||||
@@ -39,6 +40,7 @@
|
|||||||
inherit profile;
|
inherit profile;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
./modules/core
|
||||||
./profiles/${profile}.nix
|
./profiles/${profile}.nix
|
||||||
./hosts/${host}
|
./hosts/${host}
|
||||||
] ++ extraModules;
|
] ++ extraModules;
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
./network.nix
|
./network.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
|
./ssh.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
./user.nix
|
./user.nix
|
||||||
./xserver.nix
|
./xserver.nix
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{ inputs, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [ inputs.auth-keys-hub.nixosModules.auth-keys-hub ];
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.auth-keys-hub = {
|
||||||
|
enable = true;
|
||||||
|
github = {
|
||||||
|
users = [ "moons-14:moons" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -3,5 +3,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./git.nix
|
./git.nix
|
||||||
./fcitx5
|
./fcitx5
|
||||||
|
./ssh.nix
|
||||||
|
./zsh.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
|
programs.ssh.startAgent = true;
|
||||||
|
|
||||||
|
home.packages = [ pkgs.openssh ];
|
||||||
|
|
||||||
|
home.activation.generateSshKey = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
key="$HOME/.ssh/id_ed25519"
|
||||||
|
if [ ! -f "$key" ]; then
|
||||||
|
umask 077
|
||||||
|
mkdir -p "$HOME/.ssh"
|
||||||
|
ssh-keygen -t ed25519 -N "" -f "$key" \
|
||||||
|
-C "${config.home.username}@$(hostnamectl --static)"
|
||||||
|
echo "Generated SSH key at $key"
|
||||||
|
echo "Public key:"
|
||||||
|
cat "$key.pub"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./../modules/core
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.moons.imports = [
|
home-manager.users.moons.imports = [
|
||||||
./../modules/home/zsh.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user