Skip to content

Commit

Permalink
Revert "2024/05/27-02:30:50"
Browse files Browse the repository at this point in the history
This reverts commit e811174.
  • Loading branch information
1nv0k32 committed May 27, 2024
1 parent e811174 commit 9a3f434
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
11 changes: 0 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,5 @@
(import "${self}/src/base.nix")
(import "${self}/pkgs/base.nix")
];
localModules = [
(
{ lib, ... }:
{
imports =
[ ]
++ lib.optional (builtins.pathExists ./hardware-configuration.nix) (import ./hardware-configuration.nix)
++ lib.optional (builtins.pathExists ./local.nix) (import ./local.nix);
}
)
];
};
}
21 changes: 15 additions & 6 deletions misc/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@

outputs =
{ user-config, ... }@inputs:
let
localModules = [
(
{ lib, ... }:
{
imports =
[ ]
++ lib.optional (builtins.pathExists ./hardware-configuration.nix) (import ./hardware-configuration.nix)
++ lib.optional (builtins.pathExists ./local.nix) (import ./local.nix);
}
)
];
in
{
nixosConfigurations = {
"nyx" = user-config.inputs.nixpkgs.lib.nixosSystem {
Expand All @@ -18,9 +31,7 @@
inputs = user-config.inputs;
};
modules =
user-config.baseModules
++ user-config.localModules
++ [ (import "${inputs.user-config}/system/z13.nix") ];
user-config.baseModules ++ localModules ++ [ (import "${inputs.user-config}/system/z13.nix") ];
};

"nixos" = user-config.inputs.nixpkgs.lib.nixosSystem {
Expand All @@ -32,9 +43,7 @@
inputs = user-config.inputs;
};
modules =
user-config.baseModules
++ user-config.localModules
++ [ (import "${inputs.user-config}/system/wsl.nix") ];
user-config.baseModules ++ localModules ++ [ (import "${inputs.user-config}/system/wsl.nix") ];
};
};
};
Expand Down

0 comments on commit 9a3f434

Please sign in to comment.