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-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-08 20:00:13 +04:00
|
|
|
|
bspwm.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 02:04:06 +04:00
|
|
|
|
apps = {
|
|
|
|
|
keepassxc.enable = true;
|
|
|
|
|
};
|
2023-07-08 18:39:19 +04:00
|
|
|
|
};
|
2023-07-08 20:23:36 +04:00
|
|
|
|
hardware = {
|
|
|
|
|
nvidia.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-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-08 20:04:15 +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;
|
|
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
tree
|
|
|
|
|
steam
|
|
|
|
|
winetricks
|
|
|
|
|
wineWowPackages.staging
|
|
|
|
|
lutris
|
|
|
|
|
discord
|
|
|
|
|
networkmanagerapplet
|
|
|
|
|
gcc
|
|
|
|
|
python3
|
|
|
|
|
python310Packages.pip
|
|
|
|
|
rustup
|
|
|
|
|
cargo
|
|
|
|
|
nodejs
|
|
|
|
|
yarn
|
|
|
|
|
newsboat
|
|
|
|
|
ncmpcpp
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-08 00:08:26 +04:00
|
|
|
|
# mpd
|
|
|
|
|
services.mpd = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# pipewire fix
|
|
|
|
|
user = "sako";
|
|
|
|
|
musicDirectory = "/home/sako/music";
|
|
|
|
|
extraConfig = builtins.readFile ../../config/mpd/mpd.conf;
|
|
|
|
|
startWhenNeeded = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# systemd fix pipewire
|
|
|
|
|
systemd.services.mpd.environment = {
|
|
|
|
|
XDG_RUNTIME_DIR = "/run/user/1000";
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-08 00:00:31 +04:00
|
|
|
|
# garbage collection
|
|
|
|
|
nix.gc = {
|
|
|
|
|
automatic = true;
|
|
|
|
|
dates = "weekly";
|
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-08 18:39:19 +04:00
|
|
|
|
|
2023-07-08 00:00:31 +04:00
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
|
home-manager.users.sako = { pkgs, ...}: {
|
2023-07-09 02:04:06 +04:00
|
|
|
|
xdg.configFile = {
|
2023-07-08 00:00:31 +04:00
|
|
|
|
ncmpcpp = {
|
|
|
|
|
source = ../../config/ncmpcpp;
|
|
|
|
|
recursive = true;
|
2023-07-06 02:15:58 +04:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2023-07-08 00:00:31 +04:00
|
|
|
|
|
|
|
|
|
# List services that you want to enable:
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
|