2021-09-11 08:28:10 -07:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../home.nix
|
2021-09-26 04:58:32 -07:00
|
|
|
../common.nix
|
2021-09-11 08:28:10 -07:00
|
|
|
./hardware-configuration.nix
|
|
|
|
./configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
## Modules
|
|
|
|
modules = {
|
|
|
|
desktop = {
|
|
|
|
bspwm.enable = true;
|
|
|
|
apps = {
|
|
|
|
discord.enable = true;
|
|
|
|
rofi.enable = true;
|
|
|
|
# godot.enable = true;
|
2021-09-26 04:58:32 -07:00
|
|
|
# signal.enable = true;
|
2021-09-11 08:28:10 -07:00
|
|
|
};
|
|
|
|
browsers = {
|
2021-09-26 04:58:32 -07:00
|
|
|
default = "firefox";
|
|
|
|
brave.enable = false;
|
2021-09-11 08:28:10 -07:00
|
|
|
firefox.enable = true;
|
|
|
|
qutebrowser.enable = true;
|
|
|
|
};
|
|
|
|
gaming = {
|
2021-09-26 04:58:32 -07:00
|
|
|
# steam.enable = true;
|
2021-09-11 08:28:10 -07:00
|
|
|
# emulators.enable = true;
|
|
|
|
# emulators.psx.enable = true;
|
|
|
|
};
|
|
|
|
media = {
|
|
|
|
daw.enable = true;
|
|
|
|
documents.enable = true;
|
|
|
|
graphics.enable = true;
|
|
|
|
mpv.enable = true;
|
|
|
|
recording.enable = true;
|
2021-09-26 04:58:32 -07:00
|
|
|
spotify.enable = false;
|
2021-09-11 08:28:10 -07:00
|
|
|
};
|
|
|
|
term = {
|
|
|
|
default = "xst";
|
|
|
|
st.enable = true;
|
|
|
|
};
|
|
|
|
vm = {
|
2021-09-26 04:58:32 -07:00
|
|
|
qemu.enable = false;
|
2021-09-11 08:28:10 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
dev = {
|
2021-09-26 04:58:32 -07:00
|
|
|
node.enable = false;
|
|
|
|
rust.enable = false;
|
2021-09-11 08:28:10 -07:00
|
|
|
python.enable = true;
|
|
|
|
};
|
|
|
|
editors = {
|
2021-09-26 04:58:32 -07:00
|
|
|
default = "vim";
|
|
|
|
#emacs.enable = true;
|
2021-10-10 01:34:00 -07:00
|
|
|
#vim.enable = true;
|
2021-09-11 08:28:10 -07:00
|
|
|
};
|
|
|
|
shell = {
|
|
|
|
adl.enable = true;
|
2021-09-26 04:58:32 -07:00
|
|
|
vaultwarden.enable = false;
|
2021-09-11 08:28:10 -07:00
|
|
|
direnv.enable = true;
|
|
|
|
git.enable = true;
|
|
|
|
gnupg.enable = true;
|
2021-09-26 04:58:32 -07:00
|
|
|
tmux.enable = false;
|
|
|
|
zsh.enable = false;
|
2021-09-11 08:28:10 -07:00
|
|
|
};
|
|
|
|
services = {
|
|
|
|
ssh.enable = true;
|
2021-09-26 04:58:32 -07:00
|
|
|
docker.enable = false;
|
2021-09-11 08:28:10 -07:00
|
|
|
# Needed occasionally to help the parental units with PC problems
|
|
|
|
# teamviewer.enable = true;
|
|
|
|
};
|
|
|
|
theme.active = "alucard";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
## Local config
|
|
|
|
programs.ssh.startAgent = true;
|
2021-09-12 07:34:12 -07:00
|
|
|
# services.openssh.startWhenNeeded = true;
|
2021-09-11 08:28:10 -07:00
|
|
|
|
2021-09-26 04:58:32 -07:00
|
|
|
# networking.networkmanager.enable = true;
|
2021-09-11 08:28:10 -07:00
|
|
|
# The global useDHCP flag is deprecated, therefore explicitly set to false
|
|
|
|
# here. Per-interface useDHCP will be mandatory in the future, so this
|
|
|
|
# generated config replicates the default behaviour.
|
|
|
|
networking.useDHCP = false;
|
2021-09-26 04:23:46 -07:00
|
|
|
programs.neovim.enable = true;
|
2021-09-11 08:28:10 -07:00
|
|
|
|
2021-09-26 04:58:32 -07:00
|
|
|
programs.light.enable = true;
|
2021-09-11 08:28:10 -07:00
|
|
|
|
|
|
|
## Personal backups
|
|
|
|
# Syncthing is a bit heavy handed for my needs, so rsync to my NAS instead.
|
2021-09-12 07:34:12 -07:00
|
|
|
# systemd = {
|
|
|
|
# services.backups = {
|
|
|
|
# description = "Backup /usr/store to NAS";
|
|
|
|
# wants = [ "usr-drive.mount" ];
|
|
|
|
# path = [ pkgs.rsync ];
|
|
|
|
# environment = {
|
|
|
|
# SRC_DIR = "/usr/store";
|
|
|
|
# DEST_DIR = "/usr/drive";
|
|
|
|
# };
|
|
|
|
# script = ''
|
|
|
|
# rcp() {
|
|
|
|
# if [[ -d "$1" && -d "$2" ]]; then
|
|
|
|
# echo "---- BACKUPING UP $1 TO $2 ----"
|
|
|
|
# rsync -rlptPJ --chmod=go= --delete --delete-after \
|
|
|
|
# --exclude=lost+found/ \
|
|
|
|
# --exclude=@eaDir/ \
|
|
|
|
# --include=.git/ \
|
|
|
|
# --filter=':- .gitignore' \
|
|
|
|
# --filter=':- $XDG_CONFIG_HOME/git/ignore' \
|
|
|
|
# "$1" "$2"
|
|
|
|
# fi
|
|
|
|
# }
|
|
|
|
# rcp "$HOME/projects/" "$DEST_DIR/projects"
|
|
|
|
# rcp "$SRC_DIR/" "$DEST_DIR"
|
|
|
|
# '';
|
|
|
|
# serviceConfig = {
|
|
|
|
# Type = "oneshot";
|
|
|
|
# Nice = 19;
|
|
|
|
# IOSchedulingClass = "idle";
|
|
|
|
# User = config.user.name;
|
|
|
|
# Group = config.user.group;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# timers.backups = {
|
|
|
|
# wantedBy = [ "timers.target" ];
|
|
|
|
# partOf = [ "backups.service" ];
|
|
|
|
# timerConfig.OnCalendar = "*-*-* 00,12:00:00";
|
|
|
|
# timerConfig.Persistent = true;
|
|
|
|
# };
|
|
|
|
# };
|
2021-09-11 08:28:10 -07:00
|
|
|
}
|