Skip to content

Commit bdd55fe

Browse files
committed
bcachefs: add bcachefs-tools from upstream
Signed-off-by: John Titor <[email protected]>
1 parent 9ae26ff commit bdd55fe

File tree

3 files changed

+186
-7
lines changed

3 files changed

+186
-7
lines changed

flake.lock

Lines changed: 171 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88

99
{
1010
description = "Unstable NixOS custom installation media";
11-
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
11+
inputs = {
12+
nixpkgs.url = "nixpkgs/nixos-unstable";
13+
bcachefs-tools.url = "github:koverstreet/bcachefs-tools";
14+
};
1215
outputs =
13-
{ self, nixpkgs }:
16+
{ self, nixpkgs, ... }@inputs:
1417
let
1518
system = "x86_64-linux"; # change arch here
1619

1720
specialArgs = {
1821
inherit system;
22+
inherit inputs;
1923
};
2024
in
2125
{

graphical-configuration.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
lib,
1010
pkgs,
1111
system,
12+
inputs,
1213
...
1314
}:
1415

@@ -36,7 +37,6 @@
3637

3738
# Enable NetworkManager to manage network connections.
3839
networking.networkmanager.enable = true;
39-
sound.enable = true; # Enable sound
4040
hardware.bluetooth.enable = true; # enables support for Bluetooth
4141

4242
nixpkgs.config.allowUnfree = true;
@@ -53,4 +53,12 @@
5353
google-chrome
5454
firefox
5555
];
56+
57+
systemd.enableUnifiedCgroupHierarchy = lib.mkForce false;
58+
59+
nixpkgs.overlays = [
60+
(final: prev: {
61+
bcachefs-tools = inputs.bcachefs-tools.packages.${pkgs.system}.bcachefs-tools;
62+
})
63+
];
5664
}

0 commit comments

Comments
 (0)