2023-07-06 02:15:58 +04:00
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page and in the NixOS manual (accessible by running `nixos-help`).
|
|
|
|
{
|
2023-08-06 19:03:24 +04:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
2023-07-09 15:44:29 +04:00
|
|
|
|
2023-07-08 17:08:50 +04:00
|
|
|
# required for hostname specific configurations
|
2023-07-08 00:00:31 +04:00
|
|
|
networking.hostName = "sakotop"; # Define your hostname.
|
|
|
|
|
2023-07-08 18:39:19 +04:00
|
|
|
modules = {
|
|
|
|
desktop = {
|
2023-09-19 13:41:16 +04:00
|
|
|
wireguard.enable = true;
|
2023-07-08 18:39:19 +04:00
|
|
|
kitty.enable = true;
|
2024-01-29 11:30:09 +04:00
|
|
|
xmonad.enable = false;
|
|
|
|
bspwm = {
|
2024-03-02 22:36:03 +04:00
|
|
|
enable = true;
|
2024-02-06 22:13:08 +04:00
|
|
|
polybar.enable = true;
|
2024-01-29 11:30:09 +04:00
|
|
|
};
|
2024-03-02 22:36:03 +04:00
|
|
|
exwm.enable = false;
|
2023-09-10 21:25:11 +04:00
|
|
|
picom.enable = true;
|
2023-08-03 16:18:56 +04:00
|
|
|
dunst.enable = true;
|
2023-07-09 02:04:06 +04:00
|
|
|
browsers = {
|
2023-07-31 18:29:03 +04:00
|
|
|
firefox.enable = true;
|
2023-08-30 07:43:55 +04:00
|
|
|
qutebrowser.enable = false;
|
2023-09-04 14:18:20 +04:00
|
|
|
chromium.enable = true;
|
2023-07-08 21:18:57 +04:00
|
|
|
};
|
2023-09-04 14:13:12 +04:00
|
|
|
chat = {
|
2023-09-11 11:30:41 +04:00
|
|
|
whatsapp.enable = true;
|
2023-09-11 11:37:35 +04:00
|
|
|
zoom.enable = true;
|
2023-10-08 14:32:12 +04:00
|
|
|
discord.enable = true;
|
|
|
|
teams.enable = true;
|
2024-01-29 19:21:26 +04:00
|
|
|
telegram.enable = true;
|
2023-09-04 14:13:12 +04:00
|
|
|
};
|
2023-07-09 02:04:06 +04:00
|
|
|
apps = {
|
2023-07-15 18:17:31 +04:00
|
|
|
nemo.enable = true;
|
2023-08-10 19:11:03 +04:00
|
|
|
pass.enable = true;
|
2023-07-09 02:04:06 +04:00
|
|
|
keepassxc.enable = true;
|
2024-01-28 17:12:12 +04:00
|
|
|
bitwarden.enable = true;
|
2023-08-31 17:33:18 +04:00
|
|
|
rssguard.enable = true;
|
2023-07-09 17:51:13 +04:00
|
|
|
nicotineplus.enable = true;
|
2023-07-30 03:44:27 +04:00
|
|
|
transmission.enable = true;
|
2023-08-01 00:14:30 +04:00
|
|
|
calibre.enable = true;
|
2023-08-02 22:41:26 +04:00
|
|
|
kindle-comic-converter.enable = true;
|
|
|
|
mangal.enable = true;
|
2023-08-06 21:19:35 +04:00
|
|
|
obs.enable = true;
|
2023-08-29 21:58:59 +04:00
|
|
|
nextcloud.enable = true;
|
2023-07-09 02:04:06 +04:00
|
|
|
};
|
2023-07-09 02:25:39 +04:00
|
|
|
game = {
|
|
|
|
wine.enable = true;
|
|
|
|
lutris.enable = true;
|
|
|
|
steam.enable = true;
|
2023-09-10 21:37:19 +04:00
|
|
|
grapejuice.enable = true;
|
2024-02-07 07:57:34 +04:00
|
|
|
tetrio.enable = false;
|
2023-07-09 02:25:39 +04:00
|
|
|
};
|
2023-07-09 21:52:40 +04:00
|
|
|
media = {
|
|
|
|
gimp.enable = true;
|
2023-07-11 22:04:25 +04:00
|
|
|
blender.enable = true;
|
2023-08-10 23:39:41 +04:00
|
|
|
kdenlive.enable = true;
|
2023-07-18 18:09:46 +04:00
|
|
|
mpv.enable = true;
|
2024-02-08 13:04:25 +04:00
|
|
|
jellyfin.enable = true;
|
2023-07-09 21:52:40 +04:00
|
|
|
};
|
2023-07-08 18:39:19 +04:00
|
|
|
};
|
2023-07-08 20:23:36 +04:00
|
|
|
hardware = {
|
2024-02-06 08:54:08 +04:00
|
|
|
nvidia = {
|
|
|
|
enable = true;
|
|
|
|
prime = {
|
|
|
|
enable = true;
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
2023-07-17 18:40:53 +04:00
|
|
|
intelgputools.enable = true;
|
2023-07-08 20:53:43 +04:00
|
|
|
pipewire.enable = true;
|
2023-07-08 21:18:57 +04:00
|
|
|
bluetooth.enable = true;
|
2023-07-08 20:23:36 +04:00
|
|
|
};
|
2023-07-09 02:17:43 +04:00
|
|
|
dev = {
|
|
|
|
editors = {
|
|
|
|
nvim.enable = true;
|
2024-01-28 13:56:30 +04:00
|
|
|
emacs = {
|
|
|
|
enable = true;
|
|
|
|
daemon = true;
|
|
|
|
};
|
2023-07-09 02:17:43 +04:00
|
|
|
};
|
2023-08-07 17:28:33 +04:00
|
|
|
nil.enable = true;
|
2023-07-09 15:44:29 +04:00
|
|
|
cc.enable = true;
|
|
|
|
javascript.enable = true;
|
|
|
|
python.enable = true;
|
|
|
|
rust.enable = true;
|
2023-08-07 00:07:33 +04:00
|
|
|
lua.enable = true;
|
2023-07-09 02:17:43 +04:00
|
|
|
};
|
2023-07-08 20:04:15 +04:00
|
|
|
shell = {
|
|
|
|
nix = {
|
|
|
|
# makes nix search nixpkgs <example>
|
|
|
|
# ALOT faster
|
|
|
|
search.enable = true;
|
2023-08-06 19:03:24 +04:00
|
|
|
# optimize store
|
2023-07-27 19:36:55 +04:00
|
|
|
optimize.enable = true;
|
2023-07-08 20:04:15 +04:00
|
|
|
};
|
2023-07-08 23:27:08 +04:00
|
|
|
zsh.enable = true;
|
2023-08-02 16:30:57 +04:00
|
|
|
tmux.enable = true;
|
2023-07-21 21:48:10 +04:00
|
|
|
newsboat.enable = true;
|
2023-07-29 16:57:41 +04:00
|
|
|
ranger.enable = true;
|
2024-02-09 07:47:36 +04:00
|
|
|
aria.enable = true;
|
2023-07-08 20:04:15 +04:00
|
|
|
};
|
2023-07-09 02:36:33 +04:00
|
|
|
media = {
|
2023-10-10 09:27:09 +04:00
|
|
|
mpd.enable = false;
|
2024-02-06 12:56:45 +04:00
|
|
|
mopidy.enable = false;
|
2023-07-09 02:36:33 +04:00
|
|
|
ncmpcpp.enable = true;
|
|
|
|
};
|
2023-09-05 09:14:31 +04:00
|
|
|
work = {
|
|
|
|
libreoffice.enable = true;
|
2023-09-05 09:24:39 +04:00
|
|
|
onlyoffice.enable = true;
|
2023-09-05 09:14:31 +04:00
|
|
|
};
|
2023-08-31 13:35:36 +04:00
|
|
|
security = {
|
|
|
|
age.enable = true;
|
2023-10-06 10:12:16 +04:00
|
|
|
sops.enable = true;
|
2023-10-08 14:46:05 +04:00
|
|
|
certs.enable = true;
|
2023-08-31 13:35:36 +04:00
|
|
|
};
|
2023-07-08 18:39:19 +04:00
|
|
|
};
|
|
|
|
|
2023-07-08 00:00:31 +04:00
|
|
|
# Enable CUPS to print documents.
|
|
|
|
# services.printing.enable = true;
|
|
|
|
|
2023-08-06 19:03:24 +04:00
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
2023-07-14 13:35:43 +04:00
|
|
|
|
2023-10-04 18:36:50 +04:00
|
|
|
# homelab
|
2023-10-05 14:29:33 +04:00
|
|
|
sops = {
|
2023-10-06 08:05:54 +04:00
|
|
|
# we need to setup wireguard with this soon
|
2023-10-05 14:34:55 +04:00
|
|
|
age.sshKeyPaths = ["/home/sako/.ssh/id_ed25519"];
|
2023-10-05 14:29:33 +04:00
|
|
|
};
|
2023-10-04 18:36:50 +04:00
|
|
|
|
2023-10-06 10:12:16 +04:00
|
|
|
networking.wireguard.interfaces = {
|
|
|
|
};
|
|
|
|
|
2023-07-08 00:00:31 +04:00
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
# services.openssh.enable = true;
|
|
|
|
|
|
|
|
# Open ports in the firewall.
|
|
|
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
# Or disable the firewall altogether.
|
|
|
|
# networking.firewall.enable = false;
|
2023-12-03 14:16:32 +04:00
|
|
|
|
|
|
|
# DO NOT CHANGE THIS!!!!
|
|
|
|
# ONLY CHANGE WHEN FULLY REINSTALLING
|
|
|
|
# OR USING NEW SYSTEMS
|
2023-12-03 14:24:20 +04:00
|
|
|
home-manager.users.sako.home.stateVersion = "23.05";
|
|
|
|
|
2023-12-03 14:16:32 +04:00
|
|
|
system.stateVersion = "23.05";
|
2023-07-06 02:15:58 +04:00
|
|
|
}
|