refactor(home): move host home-manager configs out of hosts

This commit is contained in:
Ryan Yin
2026-03-23 10:49:17 +08:00
parent 8b4e922e5b
commit cf7b5a5be7
17 changed files with 19 additions and 11 deletions
+14
View File
@@ -0,0 +1,14 @@
{ config, ... }:
let
hostName = "shoukei"; # Define your hostname.
mkSymlink = config.lib.file.mkOutOfStoreSymlink;
in
{
programs.ssh.matchBlocks."github.com".identityFile =
"${config.home.homeDirectory}/.ssh/${hostName}";
modules.desktop.nvidia.enable = false;
xdg.configFile."niri/niri-hardware.kdl".source =
mkSymlink "${config.home.homeDirectory}/nix-config/hosts/12kingdoms-shoukei/niri-hardware.kdl";
}
+12
View File
@@ -0,0 +1,12 @@
{ config, ... }:
let
mkSymlink = config.lib.file.mkOutOfStoreSymlink;
in
{
programs.ssh.matchBlocks."github.com".identityFile = "${config.home.homeDirectory}/.ssh/idols-ai";
modules.desktop.nvidia.enable = true;
xdg.configFile."niri/niri-hardware.kdl".source =
mkSymlink "${config.home.homeDirectory}/nix-config/hosts/idols-ai/niri-hardware.kdl";
}
+21
View File
@@ -0,0 +1,21 @@
{
programs.gh.enable = true;
programs.git.enable = true;
programs.zellij.enable = true;
programs.bash.enable = true;
programs.nushell.enable = true;
programs.starship = {
enable = true;
enableBashIntegration = true;
enableNushellIntegration = true;
};
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
};
home.stateVersion = "25.11";
}
+3
View File
@@ -0,0 +1,3 @@
{
imports = [ ./idols-aquamarine.nix ];
}
+3
View File
@@ -0,0 +1,3 @@
{
imports = [ ./idols-aquamarine.nix ];
}