Skip to content

Commit

Permalink
trim toplevel further
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Sep 28, 2024
1 parent 168569e commit 32b5ca0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions flake-parts/devshell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{ inputs, ... }:
{
imports = [
inputs.treefmt-nix.flakeModule
];
perSystem = { inputs', config, pkgs, ... }: {
devShells.default = pkgs.mkShell {
name = "nixos-config-shell";
Expand Down
4 changes: 4 additions & 0 deletions flake-parts/nixos-flake.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{ inputs, ... }:
{
imports = [
inputs.nixos-flake.flakeModule
];
perSystem = { self', ... }: {
packages.default = self'.packages.activate;

Expand Down
6 changes: 2 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,16 @@
(attrNames (readDir ./flake-parts))) ++
[
./flake-module.nix
inputs.treefmt-nix.flakeModule
inputs.nixos-flake.flakeModule
inputs.nixos-flake.flakeModule
./users
./home
./nixos
./nix-darwin
];


perSystem = { self', pkgs, lib, system, ... }: {
# Make our overlay available to the devShell
# "Flake parts does not yet come with an endorsed module that initializes the pkgs argument.""
# So we must do this manually; https://flake.parts/overlays#consuming-an-overlay
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = lib.attrValues self.overlays;
Expand Down

0 comments on commit 32b5ca0

Please sign in to comment.