dotfiles/provision/nixos/hosts/bulwark/configuration.nix

121 lines
2.6 KiB
Nix
Raw Normal View History

2023-09-02 09:04:05 -07:00
{ config, lib, pkgs, pkgs-unstable, user, ... }:
2023-08-21 21:05:02 -07:00
{
2023-09-02 11:06:41 -07:00
imports = [
./steam-deck.nix
../../modules
];
2023-08-21 21:05:02 -07:00
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
# Add non-free packages
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = import ../../lib/overlays.nix;
2023-09-02 12:38:32 -07:00
# Custom kernel is set within Jovian-Nixos
# boot.kernelPackages = pkgs.linuxPackages_zen;
2023-08-21 21:05:02 -07:00
# Hardware options
hardware.bluetooth.enable = true;
hardware.sensor.iio.enable = true;
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
hardware.opengl.driSupport32Bit = true;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Set networking options
networking.hostName = "bulwark";
networking.networkmanager.enable = true;
networking.firewall.checkReversePath = "loose";
networking.firewall.enable = false;
# Set your time zone.
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
# Add fonts
fonts.fonts = with pkgs; [
nerdfonts
];
# Enable zsh
programs.zsh.enable = true;
# Define user account.
users.users.${user} = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ]; # Enable sudo for the user.
shell = pkgs.zsh;
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
vim
git
killall
pciutils
syncthing
pinentry-curses
trash-cli
unzip
nnn
advcpmv
2023-08-30 20:26:55 -07:00
neovim
2023-09-02 09:04:05 -07:00
] ++ [
pkgs-unstable.brave
2023-08-21 21:05:02 -07:00
];
# Enable user services
services = {
gvfs.enable = true; # USB automount
blueman.enable = true;
printing.enable = true;
printing.drivers = [ pkgs.hplip ];
avahi.enable = true;
avahi.nssmdns = true;
syncthing = {
enable = true;
user = "${user}";
dataDir = "/home/${user}/sync";
configDir = "/home/${user}/.config/syncthing";
};
};
2023-09-02 12:38:32 -07:00
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
enableSSHSupport = true;
};
2023-08-21 21:05:02 -07:00
# Enable modules
modules = {
services = {
samba-client.enable = true;
};
2023-09-02 09:04:05 -07:00
devel = {
tooling.enable = true;
};
2023-08-21 21:05:02 -07:00
gaming = {
steam.enable = true;
};
};
system.stateVersion = "23.05"; # Did you read the comment?
}