saturnOS/saturnOS/system/default.nix

46 lines
1.3 KiB
Nix

#this is a template, but would be auto-generated by saturnConfig, when the system is first created and on later modification to the system options
# it is not reccomended to use this file, as it should be generated by the script only
{ config, pkgs, lib, ... }:
{
# importing custom user config
imports = [ ./custom.nix ];
# settings hostname
saturn.hostname = "saturnOS";
saturn.prettyHostname = "🪐 saturnOS";
# efi bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.initrd.systemd.enable = true;
boot.plymouth.enable = true;
boot.kernelParams = ["quiet"];
# configure networking
networking.networkmanager.enable = true;
# configure locale
time.timeZone = "Etc/UTC";
i18n.defaultLocale = "en_CA.UTF-8";
# configure x11 keymap
services.xserver = {
layout = "us";
xkbVariant = "";
};
# add and configure users
users.users.saturn = {
initialPassword = "";
isNormalUser = true;
description = "Saturn User";
extraGroups = [ "networkmanager" "wheel" ];
};
# import home-manager config from home.nix ( kept for legacy reasons )
# home-manager.users.${sysConf.user} = import "${userDir}/home.nix" sysConf;
system.stateVersion = "23.05";
}