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-07-07 03:16:34 +04:00
|
|
|
|
{ config, pkgs, lib, inputs, outputs, ... }:
|
2023-07-06 02:15:58 +04:00
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
2023-07-08 17:08:50 +04:00
|
|
|
|
../../default.nix
|
2023-07-06 02:15:58 +04:00
|
|
|
|
];
|
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 = {
|
|
|
|
|
kitty.enable = true;
|
2023-07-12 16:42:51 +04:00
|
|
|
|
bspwm = {
|
2023-07-21 23:10:33 +04:00
|
|
|
|
enable = false;
|
|
|
|
|
polybar.enable = false;
|
2023-07-12 16:42:51 +04:00
|
|
|
|
};
|
2023-07-22 03:38:19 +04:00
|
|
|
|
dwm = {
|
2023-07-22 18:26:32 +04:00
|
|
|
|
enable = false;
|
|
|
|
|
dwmblocks.enable = false;
|
2023-07-22 03:38:19 +04:00
|
|
|
|
};
|
2023-07-22 18:26:32 +04:00
|
|
|
|
hyprland.enable = true;
|
2023-07-20 02:19:35 +04:00
|
|
|
|
kde.enable = false;
|
2023-07-12 07:06:18 +04:00
|
|
|
|
dunst.enable = true;
|
2023-07-09 02:04:06 +04:00
|
|
|
|
browsers = {
|
2023-07-08 21:18:57 +04:00
|
|
|
|
qutebrowser.enable = true;
|
2023-07-09 16:19:20 +04:00
|
|
|
|
# for those quick thinsg where i dont know how to do it on qutebrowser
|
|
|
|
|
firefox.enable = true;
|
2023-07-08 21:18:57 +04:00
|
|
|
|
};
|
2023-07-09 02:04:06 +04:00
|
|
|
|
apps = {
|
2023-07-15 18:17:31 +04:00
|
|
|
|
nemo.enable = true;
|
2023-07-09 02:04:06 +04:00
|
|
|
|
keepassxc.enable = true;
|
2023-07-09 17:51:13 +04:00
|
|
|
|
nicotineplus.enable = true;
|
2023-07-19 01:59:19 +04:00
|
|
|
|
transmission.enable = true;
|
2023-07-09 02:04:06 +04:00
|
|
|
|
};
|
2023-07-09 02:25:39 +04:00
|
|
|
|
chat = {
|
|
|
|
|
discord.enable = true;
|
|
|
|
|
};
|
|
|
|
|
game = {
|
|
|
|
|
wine.enable = true;
|
|
|
|
|
lutris.enable = true;
|
|
|
|
|
steam.enable = true;
|
|
|
|
|
};
|
2023-07-09 21:52:40 +04:00
|
|
|
|
media = {
|
|
|
|
|
gimp.enable = true;
|
2023-07-16 21:57:34 +04:00
|
|
|
|
# fixed via local package
|
2023-07-15 21:21:26 +04:00
|
|
|
|
resolve.enable = true;
|
2023-07-11 22:04:25 +04:00
|
|
|
|
blender.enable = true;
|
|
|
|
|
kdenlive.enable = true;
|
2023-07-11 23:55:34 +04:00
|
|
|
|
lmms.enable = true;
|
2023-07-18 18:09:46 +04:00
|
|
|
|
mpv.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 = {
|
|
|
|
|
nvidia.enable = true;
|
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;
|
|
|
|
|
};
|
2023-07-09 15:44:29 +04:00
|
|
|
|
cc.enable = true;
|
|
|
|
|
javascript.enable = true;
|
|
|
|
|
python.enable = true;
|
|
|
|
|
rust.enable = true;
|
2023-07-16 21:57:34 +04:00
|
|
|
|
# too heavy
|
|
|
|
|
unity.enable = false;
|
2023-07-09 16:19:20 +04:00
|
|
|
|
projects = {
|
|
|
|
|
sakoEngine.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-07-08 23:27:08 +04:00
|
|
|
|
zsh.enable = true;
|
2023-07-21 21:48:10 +04:00
|
|
|
|
newsboat.enable = true;
|
2023-07-08 20:04:15 +04:00
|
|
|
|
};
|
2023-07-09 02:36:33 +04:00
|
|
|
|
media = {
|
|
|
|
|
mpd.enable = true;
|
|
|
|
|
ncmpcpp.enable = true;
|
|
|
|
|
};
|
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;
|
|
|
|
|
|
|
|
|
|
# TODO(sako):: put this in different files
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.sako= {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-17 18:36:26 +04:00
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
2023-07-14 13:35:43 +04:00
|
|
|
|
|
2023-07-08 00:00:31 +04:00
|
|
|
|
# garbage collection
|
|
|
|
|
nix.gc = {
|
|
|
|
|
automatic = true;
|
|
|
|
|
dates = "weekly";
|
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# 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-07-06 02:15:58 +04:00
|
|
|
|
}
|
|
|
|
|
|