prepare for nas

This commit is contained in:
2026-03-12 23:42:32 +01:00
parent 76239f5fea
commit 2d06332891
3 changed files with 29 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
# changed to grub following the (ZFS tutorial)[https://nixos.wiki/wiki/ZFS] # changed to grub following the (ZFS tutorial)[https://nixos.wiki/wiki/ZFS]
boot.loader.grub = { boot.loader.grub = lib.mkDefault {
enable = true; enable = true;
zfsSupport = true; zfsSupport = true;
efiSupport = true; efiSupport = true;
@@ -132,5 +132,6 @@
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.11"; # Did you read the comment? system.stateVersion = "24.11"; # Did you read the comment?
nix.settings.trusted-users = [ "shatteredmint" ];
} }

21
flake.lock generated
View File

@@ -1,5 +1,25 @@
{ {
"nodes": { "nodes": {
"friendlyelecCM3588": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1771227633,
"narHash": "sha256-uUZMqpQ+Hv4CzwWSZeLpdPEth0W2+d0MlnZb073XjwY=",
"owner": "YayaADev",
"repo": "nixos-friendlyelec-cm3588",
"rev": "687a43f7a8961d7929e82494cfeb55c031638192",
"type": "github"
},
"original": {
"owner": "YayaADev",
"repo": "nixos-friendlyelec-cm3588",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -38,6 +58,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"friendlyelecCM3588": "friendlyelecCM3588",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }

View File

@@ -9,6 +9,10 @@
# follow defined nixpkgs to prevent version mismatch # follow defined nixpkgs to prevent version mismatch
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
friendlyelecCM3588 = {
url = "github:YayaADev/nixos-friendlyelec-cm3588";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = {self, nixpkgs, home-manager, ... }@inputs: outputs = {self, nixpkgs, home-manager, ... }@inputs:
@@ -54,8 +58,8 @@
specialArgs = inputs; specialArgs = inputs;
modules = [ modules = [
./devices/nas.nix inputs.friendlyelecCM3588.nixosModules.cm3588 # board + kernel support
./configuration.nix ./configuration.nix
./users/shatteredmint.nix ./users/shatteredmint.nix