Modularized config
This commit is contained in:
18
systems/modules/common.nix
Normal file
18
systems/modules/common.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnumake
|
||||
git
|
||||
];
|
||||
|
||||
security.rtkit.enable = true;
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
18
systems/modules/locales.nix
Normal file
18
systems/modules/locales.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "nl_NL.UTF-8";
|
||||
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
||||
LC_MEASUREMENT = "nl_NL.UTF-8";
|
||||
LC_MONETARY = "nl_NL.UTF-8";
|
||||
LC_NAME = "nl_NL.UTF-8";
|
||||
LC_NUMERIC = "nl_NL.UTF-8";
|
||||
LC_PAPER = "nl_NL.UTF-8";
|
||||
LC_TELEPHONE = "nl_NL.UTF-8";
|
||||
LC_TIME = "nl_NL.UTF-8";
|
||||
};
|
||||
}
|
||||
19
systems/modules/programs.nix
Normal file
19
systems/modules/programs.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
zsh.enable = true;
|
||||
|
||||
hyprland.enable = true;
|
||||
hyprland.xwayland.enable = true;
|
||||
|
||||
steam.enable = true;
|
||||
steam.remotePlay.openFirewall = true;
|
||||
steam.localNetworkGameTransfers.openFirewall = true;
|
||||
|
||||
virt-manager.enable = true;
|
||||
|
||||
gamescope.enable = false;
|
||||
gamescope.capSysNice = true;
|
||||
};
|
||||
}
|
||||
25
systems/modules/services.nix
Normal file
25
systems/modules/services.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.openssh.enable = true;
|
||||
|
||||
services = {
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
|
||||
xserver = {
|
||||
enable = true;
|
||||
xkb.layout = "us";
|
||||
xkb.variant = "";
|
||||
};
|
||||
|
||||
printing.enable = true;
|
||||
|
||||
pulseaudio.enable = false;
|
||||
|
||||
pipewire.enable = true;
|
||||
pipewire.alsa.enable = true;
|
||||
pipewire.alsa.support32Bit = true;
|
||||
pipewire.pulse.enable = true;
|
||||
};
|
||||
}
|
||||
16
systems/modules/users.nix
Normal file
16
systems/modules/users.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.avravels = {
|
||||
isNormalUser = true;
|
||||
description = "Armel van Ravels";
|
||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
|
||||
packages = with pkgs; [
|
||||
home-manager
|
||||
discord
|
||||
spotify
|
||||
protonvpn-gui
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user