Skip to content

Commit d30d2b9

Browse files
committed
testing
1 parent 6e48182 commit d30d2b9

File tree

3 files changed

+53
-20
lines changed

3 files changed

+53
-20
lines changed

configuration.nix

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
({ pkgs, lib, nixpkgs, ... }: {
1+
{
2+
pkgs,
3+
lib,
4+
inputs,
5+
...
6+
}:
7+
{
28
# bcachefs support
39
boot.kernelPackages = pkgs.linuxPackages_latest;
4-
boot.supportedFilesystems = lib.mkForce [ "bcachefs" "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs"];
10+
boot.supportedFilesystems = lib.mkForce [
11+
"bcachefs"
12+
"btrfs"
13+
"reiserfs"
14+
"vfat"
15+
"f2fs"
16+
"xfs"
17+
"ntfs"
18+
"cifs"
19+
];
20+
21+
# Localization
22+
i18n.defaultLocale = "en_US.UTF-8";
523

624
# Choose the system packages you want installed here.
725
environment.systemPackages = with pkgs; [
@@ -10,10 +28,23 @@
1028
man-pages
1129
man-pages-posix
1230
keyutils # for bcachefs encryption
31+
zstd
32+
gptfdisk
33+
lz4
34+
zstd
1335
];
1436

1537
# supports things like `nix run n#bash`
16-
nix.registry = {
17-
n.flake = nixpkgs;
38+
nix = {
39+
package = pkgs.lix;
40+
registry = {
41+
n.flake = inputs.nixpkgs;
42+
};
43+
settings.experimental-features = [
44+
"nix-command"
45+
"flakes"
46+
];
47+
settings.auto-optimise-store = true;
1848
};
19-
})
49+
documentation.dev.enable = true;
50+
}

flake.lock

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

flake.nix

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{
22
description = "NixOS with bcachefs";
33
inputs = {
4-
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
4+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
55
};
6-
outputs = { self, nixpkgs }: rec {
7-
nixosConfigurations = {
8-
bcachefs = nixpkgs.lib.nixosSystem {
9-
system = "x86_64-linux";
10-
specialArgs = { inherit nixpkgs; };
11-
modules = [
12-
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
13-
./configuration.nix
14-
];
6+
outputs =
7+
{ self, nixpkgs }@inputs:
8+
{
9+
nixosConfigurations = {
10+
bcachefs = nixpkgs.lib.nixosSystem {
11+
system = "x86_64-linux";
12+
specialArgs = { inherit inputs; };
13+
modules = [
14+
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
15+
./configuration.nix
16+
];
17+
};
1518
};
19+
packages.x86_64-linux.default = self.nixosConfigurations.bcachefs.config.system.build.isoImage;
1620
};
17-
packages.x86_64-linux.default = nixosConfigurations.bcachefs.config.system.build.isoImage;
18-
};
1921
}

0 commit comments

Comments
 (0)