This commit is contained in:
2025-12-25 17:14:54 +09:00
parent 50e49e8454
commit b550bf3b91
3 changed files with 132 additions and 91 deletions
+28 -5
View File
@@ -34,9 +34,23 @@
};
};
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, ...}:
outputs =
inputs@{
self,
nixpkgs,
nixpkgs-unstable,
nixos-hardware,
home-manager,
...
}:
let
mkSystem = { host, system, profile, extraModules ? [ ] }:
mkSystem =
{
host,
system,
profile,
extraModules ? [ ],
}:
nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
@@ -49,9 +63,11 @@
./modules/core
./profiles/${profile}.nix
./hosts/${host}
] ++ extraModules;
]
++ extraModules;
};
in {
in
{
nixosConfigurations = {
x1g9 = mkSystem {
host = "x1g9";
@@ -83,13 +99,20 @@
profile = "cli-server";
extraModules = [ ];
};
service-1 = mkSystem {
host = "service-1";
system = "x86_64-linux";
profile = "cli-server";
extraModules = [ ];
};
};
devShells = {
x86_64-linux =
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in {
in
{
next-web = import ./shells/next-web.nix { inherit pkgs; };
jupyter = import ./shells/jupyter.nix { inherit pkgs; };
rust = import ./shells/rust/default.nix { inherit pkgs; };
+12
View File
@@ -0,0 +1,12 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ ... }:
{
imports =
[
./hardware-configuration.nix
];
}
+6
View File
@@ -24,6 +24,12 @@
identityFile = "~/.ssh/id_ed25519_sk_rk";
identitiesOnly = true;
};
"service-1.moons14.com" = {
host = "service-1.moons14.com";
identityFile = "~/.ssh/id_ed25519_sk_rk";
identitiesOnly = true;
};
};
extraConfig = ''