move out common stuff again
This commit is contained in:
parent
c022eb979b
commit
c1e4cdb929
5 changed files with 10 additions and 4 deletions
6
modules/_common/default.nix
Normal file
6
modules/_common/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{...}: {
|
||||||
|
imports = [
|
||||||
|
./i18n.nix
|
||||||
|
./nixpkgs.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
28
modules/_common/i18n.nix
Normal file
28
modules/_common/i18n.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
21
modules/_common/nixpkgs.nix
Normal file
21
modules/_common/nixpkgs.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -8,10 +8,9 @@
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
<home-manager/nixos>
|
<home-manager/nixos>
|
||||||
|
../_common
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
./kde.nix
|
./kde.nix
|
||||||
./i18n.nix
|
|
||||||
./nixpkgs.nix
|
|
||||||
./vinzenz.nix
|
./vinzenz.nix
|
||||||
./ronja.nix
|
./ronja.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,9 @@
|
||||||
}: let
|
}: let
|
||||||
cfg = config.my.server;
|
cfg = config.my.server;
|
||||||
in {
|
in {
|
||||||
imports = [];
|
imports = [
|
||||||
|
../_common
|
||||||
|
];
|
||||||
|
|
||||||
options.my.server = {
|
options.my.server = {
|
||||||
enable = lib.mkEnableOption "server role";
|
enable = lib.mkEnableOption "server role";
|
||||||
|
|
@ -23,7 +25,6 @@ in {
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue