Flake for my NixOS devices
1{
2 lib,
3 inputs,
4 outputs,
5 ...
6}: {
7 system = "aarch64-linux";
8
9 modules =
10 (builtins.attrValues (lib.filterAttrs (n: _: n != "base") outputs.nixosModules))
11 ++ [
12 "${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
13 {disabledModules = ["${inputs.nixpkgs}/nixos/modules/profiles/base.nix"];}
14 inputs.nixos-hardware.nixosModules.raspberry-pi-4
15 (
16 {pkgs, ...}: {
17 nixpkgs.overlays = [
18 (final: super: {
19 makeModulesClosure = x: super.makeModulesClosure (x // {allowMissing = true;});
20 })
21 ];
22
23 system.stateVersion = "25.05";
24 networking.hostName = "mann-co";
25
26 security.sudo.wheelNeedsPassword = false;
27
28 cow = {
29 bean = {
30 enable = true;
31 sudoer = true;
32 };
33 network.enable = true;
34 ssh-server.enable = true;
35 };
36 }
37 )
38 ];
39}