refactor: move all common settings into its own file

This commit is contained in:
Mohammad Rafiq 2025-03-05 06:37:18 +08:00
parent bcffebd32b
commit 7c0f8e4f79
2 changed files with 15 additions and 13 deletions

View file

@ -0,0 +1,14 @@
{pkgs, ...}: {
users.users.rafiq = {
isNormalUser = true;
description = "rafiq";
extraGroups = ["networkmanager" "wheel"];
};
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["nix-command" "flakes"];
environment.systemPackages = with pkgs; [
git
];
}

View file

@ -3,8 +3,8 @@
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
# Include the results of the hardware scan.
./hw-nemesis.nix ./hw-nemesis.nix
./modules/common.nix
./modules/networking.nix ./modules/networking.nix
./modules/locale.nix ./modules/locale.nix
./modules/systemd-boot.nix ./modules/systemd-boot.nix
@ -12,18 +12,6 @@
networking.hostName = "nemesis"; # Define your hostname. networking.hostName = "nemesis"; # Define your hostname.
users.users.rafiq = {
isNormalUser = true;
description = "rafiq";
extraGroups = ["networkmanager" "wheel"];
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
git
];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave