refactor: move system specific modules into system/modules

This commit is contained in:
Mohammad Rafiq 2025-03-01 06:05:53 +08:00
parent abfacba0aa
commit fa79ebae52
5 changed files with 12 additions and 12 deletions

View file

@ -1,14 +1,15 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ {
imports = config,
[ # Include the results of the hardware scan. pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hw-nemesis.nix ./hw-nemesis.nix
../modules/networking.nix ./modules/networking.nix
]; ];
# Bootloader. # Bootloader.
@ -53,7 +54,7 @@
users.users.rafiq = { users.users.rafiq = {
isNormalUser = true; isNormalUser = true;
description = "rafiq"; description = "rafiq";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = ["networkmanager" "wheel"];
packages = with pkgs; []; packages = with pkgs; [];
}; };
@ -96,5 +97,4 @@
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment? system.stateVersion = "24.11"; # Did you read the comment?
} }