[misc] 重构项目结构

This commit is contained in:
2026-01-18 11:37:04 +08:00
parent 1267fc3d22
commit e75f6956b2
6 changed files with 7 additions and 9 deletions
+5 -6
View File
@@ -12,28 +12,27 @@
outputs = { nixpkgs, home-manager, ... }@inputs: { outputs = { nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations = { nixosConfigurations = {
"um790-nix" = nixpkgs.lib.nixosSystem { "eris" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration.nix ./hosts/eris/configuration.nix
]; ];
}; };
}; };
homeConfigurations = { homeConfigurations = {
"origami@um790-nix" = home-manager.lib.homeManagerConfiguration { "origami@eris" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ./home/um790.nix ]; modules = [ ./home/hosts/eris.nix ];
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
}; };
"origami@metis" = home-manager.lib.homeManagerConfiguration { "origami@metis" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ./home/metis.nix ]; modules = [ ./home/hosts/metis.nix ];
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
}; };
}; };
}; };
} }
+1 -1
View File
@@ -60,7 +60,7 @@
"cloc" = "scc"; "cloc" = "scc";
"cat" = "bat"; "cat" = "bat";
"x" = "atool -x"; "x" = "atool -x";
"flake-update" = "nixos-rebuild switch --use-remote-sudo --flake ${config.home.homeDirectory}/flakes#um790-nix"; "flake-update" = "nixos-rebuild switch --use-remote-sudo --flake ${config.home.homeDirectory}/flakes#eris";
"cl" = "clear"; "cl" = "clear";
}; };
}; };
@@ -26,7 +26,7 @@
}; };
}; };
networking.hostName = "um790-nix"; networking.hostName = "eris";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
time.timeZone = "Asia/Shanghai"; time.timeZone = "Asia/Shanghai";
@@ -173,4 +173,3 @@
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }