From fa79ebae52c8d016bade610f30b0f5b460a2a530 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 1 Mar 2025 06:05:53 +0800 Subject: [PATCH] refactor: move system specific modules into system/modules --- {modules => systems/modules}/common.nix | 0 {modules => systems/modules}/networking.nix | 0 {modules => systems/modules}/nvidia.nix | 0 {modules => systems/modules}/wm-hyprland.nix | 0 systems/nemesis.nix | 24 ++++++++++---------- 5 files changed, 12 insertions(+), 12 deletions(-) rename {modules => systems/modules}/common.nix (100%) rename {modules => systems/modules}/networking.nix (100%) rename {modules => systems/modules}/nvidia.nix (100%) rename {modules => systems/modules}/wm-hyprland.nix (100%) diff --git a/modules/common.nix b/systems/modules/common.nix similarity index 100% rename from modules/common.nix rename to systems/modules/common.nix diff --git a/modules/networking.nix b/systems/modules/networking.nix similarity index 100% rename from modules/networking.nix rename to systems/modules/networking.nix diff --git a/modules/nvidia.nix b/systems/modules/nvidia.nix similarity index 100% rename from modules/nvidia.nix rename to systems/modules/nvidia.nix diff --git a/modules/wm-hyprland.nix b/systems/modules/wm-hyprland.nix similarity index 100% rename from modules/wm-hyprland.nix rename to systems/modules/wm-hyprland.nix diff --git a/systems/nemesis.nix b/systems/nemesis.nix index 2b88a50..447dd57 100644 --- a/systems/nemesis.nix +++ b/systems/nemesis.nix @@ -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? - }