diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-03-28 21:03:46 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-06-05 15:49:34 +0200 |
commit | 7010d98995fea8eda3c578fbfd13aecca918b7d9 (patch) | |
tree | 37d2add1bf249828a12e820fd6225fe2eb57fd32 /modules/base.nix | |
download | Spacebar-Open-Infrastructure-7010d98995fea8eda3c578fbfd13aecca918b7d9.tar.xz |
Initial commit
Diffstat (limited to 'modules/base.nix')
-rwxr-xr-x | modules/base.nix | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/modules/base.nix b/modules/base.nix new file mode 100755 index 0000000..268ddda --- /dev/null +++ b/modules/base.nix @@ -0,0 +1,76 @@ +{ config, pkgs, lib, ... }: + +{ + imports = + [ + ./monitoring.nix + ./users/Rory.nix + ./users/chris.nix + ]; + boot = { + kernelPackages = pkgs.linuxPackages_latest; + kernelParams = [ "memory_hotplug.memmap_on_memory=1" "memhp_default_state=online" ]; + loader = { + grub = { + enable = true; + version = 2; + devices = [ "/dev/sda" ]; # nodev for EFI only + # EFI + efiSupport = false; + efiInstallAsRemovable = false; + }; + timeout = 1; + }; + }; + + networking = { + hostName = lib.mkDefault "Spacebar-nix-base-server"; + firewall = { + enable = false; + # allowedTCPPorts = [ ... ]; + # allowedUDPPorts = [ ... ]; + }; + + networkmanager.enable = false; + wireless.enable = false; + enableIPv6 = false; + + useDHCP = false; + nameservers = [ "1.1.1.1" ]; + defaultGateway = "192.168.1.1"; + }; + + services = { + openssh = { + enable = true; + }; + }; + + + environment.systemPackages = with pkgs; [ + wget + neofetch + lnav + git + lsd + htop + btop + duf + kitty.terminfo + neovim + ]; + + systemd.coredump.extraConfig = lib.mkDefault '' + Storage=none + ''; + + documentation.nixos.enable = false; + hardware.pulseaudio.enable = false; + i18n.defaultLocale = "en_US.UTF-8"; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nixpkgs.config.allowUnfree = true; + security.sudo.wheelNeedsPassword = false; + security.polkit.enable = true; + sound.enable = false; + system.stateVersion = "22.11"; # DO NOT EDIT! +} |