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 = [
|
|
|
|
|
../../modules
|
2023-10-13 21:06:28 -07:00
|
|
|
|
./steam-deck.nix
|
|
|
|
|
./syncthing.nix
|
2023-09-02 11:06:41 -07:00
|
|
|
|
];
|
|
|
|
|
|
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
|
2023-09-19 17:53:01 -07:00
|
|
|
|
#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.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
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Define user account.
|
|
|
|
|
users.users.${user} = {
|
|
|
|
|
isNormalUser = true;
|
2023-10-08 10:29:38 -07:00
|
|
|
|
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ]; # Enable ‘sudo’ for the user.
|
2023-08-21 21:05:02 -07:00
|
|
|
|
};
|
|
|
|
|
|
2023-10-08 21:13:29 -07:00
|
|
|
|
# Password-less root
|
|
|
|
|
security.sudo.extraRules = [{
|
|
|
|
|
users = [ "${user}" ];
|
|
|
|
|
commands = [{
|
|
|
|
|
command = "ALL" ;
|
|
|
|
|
options= [ "NOPASSWD" ];
|
|
|
|
|
}];
|
|
|
|
|
}];
|
|
|
|
|
|
2023-09-19 17:53:01 -07:00
|
|
|
|
# List packages installed in system profile.
|
2023-08-21 21:05:02 -07:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-09-19 17:53:01 -07:00
|
|
|
|
# One-off stable packages
|
2023-10-28 22:58:53 -07:00
|
|
|
|
firefox
|
2023-11-03 20:26:28 -07:00
|
|
|
|
google-chrome
|
|
|
|
|
discord
|
|
|
|
|
gamemode
|
2023-09-02 09:04:05 -07:00
|
|
|
|
] ++ [
|
2023-09-19 17:53:01 -07:00
|
|
|
|
# One-off unstable packages
|
2023-08-21 21:05:02 -07:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Enable modules
|
|
|
|
|
modules = {
|
2023-09-19 17:53:01 -07:00
|
|
|
|
desktop = {
|
2023-10-08 10:29:38 -07:00
|
|
|
|
sway.enable = false;
|
2023-08-21 21:05:02 -07:00
|
|
|
|
};
|
2023-09-02 09:04:05 -07:00
|
|
|
|
devel = {
|
2023-10-08 10:29:38 -07:00
|
|
|
|
engineering.enable = false;
|
2023-09-19 17:53:01 -07:00
|
|
|
|
notes.enable = true;
|
2023-10-08 10:29:38 -07:00
|
|
|
|
python.enable = false;
|
|
|
|
|
tooling.enable = false;
|
2023-09-02 09:04:05 -07:00
|
|
|
|
};
|
2023-08-21 21:05:02 -07:00
|
|
|
|
gaming = {
|
|
|
|
|
steam.enable = true;
|
|
|
|
|
};
|
2023-09-19 17:53:01 -07:00
|
|
|
|
services = {
|
2023-10-08 10:29:38 -07:00
|
|
|
|
jellyfin.enable = false;
|
|
|
|
|
peripherals.enable = false;
|
2023-09-19 17:53:01 -07:00
|
|
|
|
samba-client.enable = true;
|
2023-10-08 10:29:38 -07:00
|
|
|
|
virt-manager.enable = false;
|
2023-09-19 17:53:01 -07:00
|
|
|
|
};
|
|
|
|
|
system = {
|
|
|
|
|
ssh.enable = true;
|
|
|
|
|
terminal.enable = true;
|
|
|
|
|
};
|
2023-08-21 21:05:02 -07:00
|
|
|
|
};
|
2023-09-19 17:53:01 -07:00
|
|
|
|
# Did you read the comment?
|
|
|
|
|
system.stateVersion = "23.05";
|
2023-08-21 21:05:02 -07:00
|
|
|
|
}
|