mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-22 00:00:03 +03:00
flake.nix: add nixosModules
Signed-off-by: Kayla Firestack <dev@kaylafire.me>
This commit is contained in:
parent
96f55bdb32
commit
fa27037e70
12
flake.nix
12
flake.nix
@ -15,6 +15,18 @@
|
||||
version = "${builtins.substring 0 8 self.lastModifiedDate}-${self.shortRev or "dirty"}";
|
||||
|
||||
overlay = import ./nix/overlay.nix inputs;
|
||||
nixosModule = self.nixosModules.bcachefs;
|
||||
nixosModules.bcachefs = import ./rust-src/mount/module.nix;
|
||||
nixosModules.bcachefs-enable-boot = ({config, pkgs, lib, ... }:{
|
||||
# Disable Upstream NixOS Module when this is in use
|
||||
disabledModules = [ "tasks/filesystems/bcachefs.nix" ];
|
||||
# Import needed packages
|
||||
nixpkgs.overlays = [ self.overlay ];
|
||||
|
||||
# Add bcachefs to boot and kernel
|
||||
boot.initrd.supportedFilesystems = [ "bcachefs" ];
|
||||
boot.supportedFilesystems = [ "bcachefs" ];
|
||||
});
|
||||
}
|
||||
// utils.lib.eachSystem supportedSystems (system:
|
||||
let pkgs = import nixpkgs {
|
||||
|
Loading…
Reference in New Issue
Block a user