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,15 +1,16 @@
# 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,
./hw-nemesis.nix ...
../modules/networking.nix }: {
]; imports = [
# Include the results of the hardware scan.
./hw-nemesis.nix
./modules/networking.nix
];
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -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; [];
}; };
@ -63,8 +64,8 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget # wget
git git
]; ];
@ -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?
} }