Templating for system init.
Networking, pipewire for audio, time, i18n, console,
This commit is contained in:
parent
eec674e7ad
commit
e19044a9b5
|
@ -23,7 +23,7 @@ in {
|
||||||
|
|
||||||
#################### Disk Layout ####################
|
#################### Disk Layout ####################
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
(configLib.relativeToRoot "hosts/common/disks/rehoboam.nix")
|
(configLib.relativeToRoot "hosts/common/disks/jehoboam.nix")
|
||||||
{
|
{
|
||||||
_module.args = {
|
_module.args = {
|
||||||
disk = "/dev/vda";
|
disk = "/dev/vda";
|
||||||
|
@ -38,7 +38,8 @@ in {
|
||||||
#################### Host-specific Optional Configs ####################
|
#################### Host-specific Optional Configs ####################
|
||||||
"hosts/common/optional/services/clamav.nix" # depends on optional/msmtp.nix
|
"hosts/common/optional/services/clamav.nix" # depends on optional/msmtp.nix
|
||||||
"hosts/common/optional/msmtp.nix" # required for emailing clamav alerts
|
"hosts/common/optional/msmtp.nix" # required for emailing clamav alerts
|
||||||
"hosts/common/optional/services/openssh.nix"
|
"hosts/common/optional/services/openssh.nix" # allow remote ssh
|
||||||
|
"hosts/common/optional/pipewire.nix" # audio
|
||||||
|
|
||||||
# Desktop
|
# Desktop
|
||||||
"hosts/common/optional/services/greetd.nix" # display manager
|
"hosts/common/optional/services/greetd.nix" # display manager
|
||||||
|
@ -55,13 +56,26 @@ in {
|
||||||
autoLogin.enable = true;
|
autoLogin.enable = true;
|
||||||
autoLogin.username = "laozi";
|
autoLogin.username = "laozi";
|
||||||
|
|
||||||
|
# I18n & Time
|
||||||
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
# Starter config
|
||||||
|
console = {
|
||||||
|
font = "Lat2-Terminus16";
|
||||||
|
keyMap = "us";
|
||||||
|
# useXkbConfig = true; # use xkb.options in tty.
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# services.gnome.gnome-keyring.enable = true;
|
# services.gnome.gnome-keyring.enable = true;
|
||||||
# TODO enable and move to greetd area? may need authentication dir or something?
|
# TODO enable and move to greetd area? may need authentication dir or something?
|
||||||
# services.pam.services.greetd.enableGnomeKeyring = true;
|
# services.pam.services.greetd.enableGnomeKeyring = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "sunzi";
|
hostName = "jeroboam";
|
||||||
# networkmanager.enable = true;
|
# wireless.enable = true;
|
||||||
|
networkmanager.enable = true;
|
||||||
enableIPv6 = false;
|
enableIPv6 = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue