mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
add
This commit is contained in:
@@ -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; };
|
||||
|
||||
@@ -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
|
||||
];
|
||||
}
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user