|
| 1 | +# See /modules/nixos/* for actual settings |
| 2 | +# This file is just *top-level* configuration. |
| 3 | +{ |
| 4 | + inputs, |
| 5 | + pkgs, |
| 6 | + ... |
| 7 | +}: |
| 8 | +{ |
| 9 | + imports = [ |
| 10 | + # hardware setup |
| 11 | + # see https://github.com/NixOS/nixos-hardware/blob/master/raspberry-pi/4/default.nixh |
| 12 | + inputs.nixos-generators.nixosModules.all-formats |
| 13 | + ./hardware-configuration.nix |
| 14 | + ./system |
| 15 | + ]; |
| 16 | + |
| 17 | + users.users.justinhoang = { |
| 18 | + # If you do, you can skip setting a root password by passing |
| 19 | + # '--no-root-passwd' to nixos-install. Be sure to change it (using |
| 20 | + # passwd) after rebooting! |
| 21 | + initialHashedPassword = "$y$j9T$sXZCGwjtugZIt/C2nU8bk/$D36OrIe3eyGSM7rPysbQI1OyT56TdtJZtcvnOne2Ge0"; |
| 22 | + isNormalUser = true; |
| 23 | + extraGroups = [ "wheel" ]; |
| 24 | + }; |
| 25 | + |
| 26 | + environment.systemPackages = |
| 27 | + let |
| 28 | + inherit (pkgs.stdenv.hostPlatform) system; |
| 29 | + in |
| 30 | + [ |
| 31 | + # add basic nixvim config |
| 32 | + inputs.nixvim-config.packages.${system}.minimal |
| 33 | + ]; |
| 34 | + |
| 35 | + # This option defines the first version of NixOS you have installed on this particular machine, |
| 36 | + # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. |
| 37 | + # |
| 38 | + # Most users should NEVER change this value after the initial install, for any reason, |
| 39 | + # even if you've upgraded your system to a new NixOS release. |
| 40 | + # |
| 41 | + # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, |
| 42 | + # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how |
| 43 | + # to actually do that. |
| 44 | + # |
| 45 | + # This value being lower than the current NixOS release does NOT mean your system is |
| 46 | + # out of date, out of support, or vulnerable. |
| 47 | + # |
| 48 | + # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, |
| 49 | + # and migrated your data accordingly. |
| 50 | + # |
| 51 | + # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . |
| 52 | + hardware.enableRedistributableFirmware = true; |
| 53 | + system.stateVersion = "24.11"; # Did you read the comment? |
| 54 | +} |
0 commit comments