mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Rename default configs for host and user to common.nix
This commit is contained in:
parent
968b5bfa86
commit
03bc6c09a0
5 changed files with 6 additions and 5 deletions
54
hosts/common.nix
Normal file
54
hosts/common.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [../modules/system];
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
auto-optimise-store = true;
|
||||
warn-dirty = false;
|
||||
trusted-users = ["root" "@wheel"];
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "de_DE.UTF-8";
|
||||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||||
LC_MEASUREMENT = "de_DE.UTF-8";
|
||||
LC_MONETARY = "de_DE.UTF-8";
|
||||
LC_NAME = "de_DE.UTF-8";
|
||||
LC_NUMERIC = "de_DE.UTF-8";
|
||||
LC_PAPER = "de_DE.UTF-8";
|
||||
LC_TELEPHONE = "de_DE.UTF-8";
|
||||
LC_TIME = "de_DE.UTF-8";
|
||||
};
|
||||
|
||||
console.keyMap = "de-latin1-nodeadkeys";
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.git
|
||||
pkgs.neovim
|
||||
];
|
||||
|
||||
fonts.packages = [
|
||||
(pkgs.nerdfonts.override {fonts = ["JetBrainsMono" "NerdFontsSymbolsOnly"];})
|
||||
pkgs.corefonts
|
||||
pkgs.roboto
|
||||
pkgs.open-sans
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (pkgs.lib.getName pkg) [
|
||||
"spotify"
|
||||
"discord"
|
||||
"steam"
|
||||
"steam-original"
|
||||
"steam-run"
|
||||
"corefonts"
|
||||
"nvidia-x11"
|
||||
"nvidia-settings"
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue