refactor: clean up

This commit is contained in:
Mohammad Rafiq 2025-03-12 03:49:11 +08:00
parent 45c4e136c4
commit 630b3ce27b
25 changed files with 195 additions and 210 deletions

View file

@ -1,25 +1,14 @@
{
config,
lib,
pkgs,
...
}: {
{inputs, ...}: {
imports = [
# Include the results of the hardware scan.
./hw-orpheus.nix
./modules/bootloaders/extlinux.nix
./modules/common.nix
./modules/networking.nix
./modules/stylix.nix
inputs.nixos-hardware.nixosModules.raspberry-pi-4
"${inputs.nixpkgs}/nixos/modules/profiles/minimal.nix"
];
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
boot.loader.grub.enable = false;
# Enables the generation of /boot/extlinux/extlinux.conf
boot.loader.generic-extlinux-compatible.enable = true;
networking.hostName = "orpheus"; # Define your hostname.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
services.openssh.enable = true;
networking.firewall.enable = false;
networking.hostName = "orpheus";
system.stateVersion = "25.05";
}