mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 00:55:58 +08:00
reuse common module
This commit is contained in:
parent
79265cb479
commit
a568f38cba
1 changed files with 17 additions and 10 deletions
27
flake.nix
27
flake.nix
|
|
@ -81,19 +81,26 @@
|
|||
in
|
||||
{
|
||||
# Configuration common to all Linux systems
|
||||
nixosModules.default = {
|
||||
imports = [
|
||||
./nixos/caches
|
||||
./nixos/self-ide.nix
|
||||
./nixos/takemessh
|
||||
./nixos/current-location.nix
|
||||
nixosModules = {
|
||||
common = {
|
||||
imports = [
|
||||
./nixos/caches
|
||||
];
|
||||
};
|
||||
default = inputs.nixpkgs.lib.mkMerge [
|
||||
self.nixosModules.common
|
||||
({
|
||||
imports = [
|
||||
./nixos/self-ide.nix
|
||||
./nixos/takemessh
|
||||
./nixos/current-location.nix
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
# Configuration common to macOS Linux systems
|
||||
darwinModules.default = {
|
||||
imports = [
|
||||
./nixos/caches
|
||||
];
|
||||
darwinModules = {
|
||||
default = self.nixosModules.common;
|
||||
};
|
||||
# Configurations for Linux (NixOS) systems
|
||||
nixosConfigurations =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue