195 lines
4.6 KiB
Nix
195 lines
4.6 KiB
Nix
{ pkgs, lib, ... }:
|
|
|
|
let
|
|
nixpkgs = import <nixpkgs> {};
|
|
callPackage = pkgs.lib.callPackageWith pkgs;
|
|
nord = import ./themes/nord.nix;
|
|
onedark = import ./themes/onedark.nix;
|
|
in
|
|
{
|
|
fonts.fontconfig = {
|
|
enable = true;
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(final: prev: { extra = (prev.lib.callPackageWith prev) ./extra/default.nix {}; }) # Custom library
|
|
(final: prev: (prev.lib.callPackageWith prev) ./custom/default.nix {}) # Custom packges
|
|
(
|
|
final: prev: rec {
|
|
extra = prev.extra // {
|
|
colorPalette = with pkgs.extra; palette.palette {
|
|
black = color.hexToRgba nord.n0;
|
|
red = color.hexToRgba nord.n11;
|
|
green = color.hexToRgba nord.n14;
|
|
yellow = color.hexToRgba nord.n13;
|
|
blue = color.hexToRgba nord.n10;
|
|
magenta = color.hexToRgba nord.n15;
|
|
cyan = color.hexToRgba nord.n8;
|
|
white = color.hexToRgba nord.n4;
|
|
|
|
bright-white = color.hexToRgba nord.n6;
|
|
bright-red = color.hexToRgba nord.n12;
|
|
cursor-cursor = color.hexToRgba nord.n4;
|
|
};
|
|
font = {
|
|
normal = { package = pkgs.cantarell-fonts; name = "Cantarell"; };
|
|
monospace = { package = pkgs.nerdfonts; name = "FuraCode Nerd Font Mono"; };
|
|
};
|
|
};
|
|
}
|
|
)
|
|
(
|
|
final: prev: {
|
|
lockscreen = prev.lockscreen.override {
|
|
palette = prev.extra.colorPalette;
|
|
font = prev.extra.font.normal;
|
|
};
|
|
}
|
|
)
|
|
];
|
|
|
|
home = {
|
|
language.base = "it_IT.UTF-8";
|
|
keyboard.layout = "it";
|
|
keyboard.options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" ];
|
|
packages = with pkgs; [
|
|
audacity
|
|
authy
|
|
blender
|
|
discord
|
|
evolution
|
|
firefox
|
|
gallery-dl
|
|
gallery-tagger
|
|
gnome.dconf-editor
|
|
gnome.easytag
|
|
gnome.eog
|
|
gnome.evince
|
|
gnomeExtensions.appindicator
|
|
gnomeExtensions.dash-to-dock
|
|
gnome.file-roller
|
|
gnome.ghex
|
|
gnome.gitg
|
|
gnome.gnome-screenshot
|
|
gnome.gnome-system-monitor
|
|
gnome.gnome-tweaks
|
|
gnome.nautilus
|
|
gnome.seahorse
|
|
gnome.sushi
|
|
google-chrome
|
|
gucharmap
|
|
htop
|
|
jetbrains.datagrip
|
|
keepassxc
|
|
krita
|
|
libreoffice-fresh
|
|
lutris
|
|
megasync
|
|
mpv
|
|
neofetch
|
|
nerdfonts
|
|
nix-prefetch-git
|
|
obsidian
|
|
openvpn
|
|
pavucontrol
|
|
pcmanfm
|
|
pentablet-driver
|
|
procps-ng
|
|
ripgrep
|
|
shotwell
|
|
skypeforlinux
|
|
slack
|
|
spotify
|
|
tdesktop
|
|
teams
|
|
transmission-gtk
|
|
wineFull
|
|
wireguard
|
|
xclip
|
|
zoom-us
|
|
zotero
|
|
|
|
] ++ [
|
|
(
|
|
pkgs.dwarf-fortress-packages.dwarf-fortress-full.override {
|
|
enableLegendsBrowser = false;
|
|
enableTextMode = true;
|
|
theme = "cla";
|
|
}
|
|
)
|
|
];
|
|
};
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
imports = [
|
|
./modules/configurations.nix
|
|
|
|
./modules/alacritty.nix
|
|
./modules/bash.nix
|
|
./modules/bat.nix
|
|
./modules/bottom.nix
|
|
./modules/broot.nix
|
|
./modules/bspwm.nix
|
|
./modules/dircolors.nix
|
|
./modules/direnv.nix
|
|
./modules/dunst.nix
|
|
# ./modules/fzf.nix
|
|
./modules/git.nix
|
|
./modules/go.nix
|
|
./modules/gpg.nix
|
|
./modules/grobi.nix
|
|
./modules/info.nix
|
|
./modules/joystickwake.nix
|
|
./modules/jq.nix
|
|
./modules/kakoune.nix
|
|
./modules/keepassxc.nix
|
|
./modules/keychain.nix
|
|
# ./modules/kitty.nix
|
|
./modules/lf.nix
|
|
./modules/lorri.nix
|
|
./modules/man.nix
|
|
# ./modules/nix-index.nix
|
|
./modules/noti.nix
|
|
./modules/obs-studio.nix
|
|
# ./modules/pazi.nix
|
|
./modules/picom.nix
|
|
./modules/polybar.nix
|
|
./modules/qogir_theme.nix
|
|
./modules/rofi.nix
|
|
./modules/screen_locker.nix
|
|
./modules/ssh.nix
|
|
./modules/sxhkd.nix
|
|
./modules/syncthing.nix
|
|
./modules/terminator.nix
|
|
./modules/tmux.nix
|
|
./modules/update_background.nix
|
|
# ./modules/xidelhook.nix
|
|
./modules/zoxide.nix
|
|
./modules/zsh.nix
|
|
|
|
];
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
services = {
|
|
blueman-applet.enable = true;
|
|
caffeine.enable = true;
|
|
cbatticon.enable = true;
|
|
gnome-keyring.enable = true;
|
|
network-manager-applet.enable = true;
|
|
playerctld.enable = true;
|
|
# poweralertd.enable = true;
|
|
};
|
|
|
|
xsession = {
|
|
enable = true;
|
|
numlock.enable = true;
|
|
initExtra = ''
|
|
## Touchpad
|
|
${pkgs.xorg.xinput}/bin/xinput set-prop 'DELL0824:00 06CB:7E92 Touchpad' 'libinput Natural Scrolling Enabled' 1
|
|
${pkgs.xorg.xinput}/bin/xinput set-prop 'DELL0824:00 06CB:7E92 Touchpad' 'libinput Tapping Enabled' 1
|
|
'';
|
|
};
|
|
|
|
}
|