refactor: move all common settings into its own file
This commit is contained in:
parent
bcffebd32b
commit
7c0f8e4f79
2 changed files with 15 additions and 13 deletions
14
systems/modules/common.nix
Normal file
14
systems/modules/common.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
|
@ -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. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue