Watch
0
1
Fork
You've already forked nixos-configuration
0

move out common stuff again

This commit is contained in:
Vinzenz Schroeter 2023-09-11 19:21:31 +02:00
commit c1e4cdb929
5 changed files with 10 additions and 4 deletions

View file

@ -0,0 +1,6 @@
{...}: {
imports = [
./i18n.nix
./nixpkgs.nix
];
}

28
modules/_common/i18n.nix Normal file
View file

@ -0,0 +1,28 @@
{...}: {
config = {
time.timeZone = "Europe/Berlin";
i18n = {
defaultLocale = "en_US.UTF-8";
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";
};
};
services.xserver = {
# Configure keymap in X11
layout = "de";
xkbVariant = "";
};
# Configure console keymap
console.keyMap = "de";
};
}

View file

@ -0,0 +1,21 @@
{...}: {
config = {
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-12.2.3"
];
};
system = {
stateVersion = "22.11";
# enable auto updates
autoUpgrade.enable = true;
};
nix.gc = {
automatic = true;
dates = "00:30";
};
};
}

View file

@ -8,10 +8,9 @@
in {
imports = [
<home-manager/nixos>
../_common
./gnome.nix
./kde.nix
./i18n.nix
./nixpkgs.nix
./vinzenz.nix
./ronja.nix
];

View file

@ -6,7 +6,9 @@
}: let
cfg = config.my.server;
in {
imports = [];
imports = [
../_common
];
options.my.server = {
enable = lib.mkEnableOption "server role";
@ -23,7 +25,6 @@ in {
KbdInteractiveAuthentication = false;
};
};
};
programs = {