NOflake/systems/BASED.nix

123 lines
2.7 KiB
Nix
Raw Normal View History

2023-07-18 22:14:59 -07:00
{ lib, pkgs, modulesPath, ... }: {
2023-07-11 00:38:39 -07:00
environment.systemPackages = with pkgs; [
2023-07-23 20:21:08 -07:00
# exfatprogs
2023-09-28 23:33:56 -07:00
# rustup
2023-07-11 00:38:39 -07:00
appimage-run
bat
bottom
cifs-utils
du-dust
2023-09-28 23:33:56 -07:00
ffmpeg
2023-07-11 00:38:39 -07:00
firefox
git
helix
2023-09-28 23:33:56 -07:00
mesa
2023-07-11 00:38:39 -07:00
mpv
nfs-utils
nil
nixpkgs-fmt
onlyoffice-bin
ouch
ripgrep-all
skim
2023-09-28 23:33:56 -07:00
snapper
2023-07-11 00:38:39 -07:00
tree
2023-09-28 23:33:56 -07:00
unstable.yazi
unstable.joshuto
unstable.oculante
2023-07-11 00:38:39 -07:00
wezterm
wget
2023-08-25 17:40:48 -07:00
yt-dlp
2023-09-28 23:33:56 -07:00
zathura
zstd
2023-07-11 00:38:39 -07:00
];
programs.partition-manager.enable = true;
2023-07-11 00:38:39 -07:00
2023-07-18 22:14:59 -07:00
services.tailscale.enable = lib.mkDefault true;
services.openssh.enable = lib.mkDefault true;
services.flatpak.enable = lib.mkDefault true;
services.printing.enable = lib.mkDefault true;
2023-09-28 23:33:56 -07:00
services.btrfs.autoScrub.enable = true;
2023-07-11 00:38:39 -07:00
environment.variables = {
EDITOR = "hx";
VISUAL = "hx";
};
2023-07-19 00:52:04 -07:00
environment.sessionVariables = {
EDITOR = "hx";
VISUAL = "hx";
};
2023-07-25 00:20:24 -07:00
# xdg.portal = {
# enable = true;
# extraPortals = with pkgs; [
# xdg-desktop-portal-wlr
# ];
# };
2023-07-11 00:38:39 -07:00
hardware.enableAllFirmware = true;
2023-07-18 22:14:59 -07:00
hardware.bluetooth.enable = lib.mkDefault true;
2023-07-11 00:38:39 -07:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2023-08-06 04:08:26 -07:00
boot.loader.timeout = 0;
boot.supportedFilesystems = [ "ntfs" ];
2023-07-11 00:38:39 -07:00
2023-09-28 23:33:56 -07:00
networking.networkmanager = {
enable = true;
# dispatcherScripts = [{
# source = pkgs.writeText "upHook" ''
# logger "event $2"
# if [ "$2" == "vpn-up" ]; then
# iptables -A OUTPUT -o tun0 -j ACCEPT
# iptables -A OUTPUT ! -o tun0 -j DROP
# fi
# if [ "$2" == "vpn-down" ]; then
# iptables -D OUTPUT -o tun0 -j ACCEPT
# iptables -D OUTPUT ! -o tun0 -j DROP
# fi
# '';
# type = "basic";
# }];
};
2023-07-11 00:38:39 -07:00
networking.firewall.enable = false;
services.xserver.enable = true;
services.xserver.layout = "us";
systemd.services.display-manager.restartIfChanged = false;
2023-07-18 22:14:59 -07:00
services.xserver.displayManager.sddm.enable = lib.mkDefault true;
services.xserver.desktopManager.plasma5.enable = lib.mkDefault true;
2023-07-11 00:38:39 -07:00
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
elisa
konsole
2023-09-28 23:33:56 -07:00
gwenview
2023-07-11 00:38:39 -07:00
];
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
nix.settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
};
nixpkgs.config = { allowUnfree = true; };
2023-07-18 22:14:59 -07:00
systemd.extraConfig = ''
DefaultTimeoutStopSec=15s
'';
2023-07-11 00:38:39 -07:00
time.timeZone = "US/Pacific";
i18n.defaultLocale = "en_US.UTF-8";
2023-09-28 23:33:56 -07:00
i18n.supportedLocales = [ "all" ];
2023-07-11 00:38:39 -07:00
2023-07-18 22:14:59 -07:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2023-07-11 00:38:39 -07:00
system.stateVersion = "23.05";
}