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
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hw-nemesis.nix
../modules/networking.nix
];
config,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hw-nemesis.nix
./modules/networking.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
@ -53,7 +54,7 @@
users.users.rafiq = {
isNormalUser = true;
description = "rafiq";
extraGroups = [ "networkmanager" "wheel" ];
extraGroups = ["networkmanager" "wheel"];
packages = with pkgs; [];
};
@ -63,8 +64,8 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
git
];
@ -96,5 +97,4 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment?
}