176 lines
3.2 KiB
Nix
176 lines
3.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
name = "Niten";
|
|
email = "niten@fudo.org";
|
|
|
|
hostname = config.instance.hostname;
|
|
host-config = config.fudo.hosts.${hostname};
|
|
|
|
enable-gui = host-config.enable-gui;
|
|
|
|
doom-emacs-minus-deps = pkgs.callPackage (pkgs.fetchgit {
|
|
url = "https://github.com/vlaci/nix-doom-emacs.git";
|
|
rev = "3893c50877a9d2d5d4aeee524ba1539f22115f1f";
|
|
sha256 = "1jz8mxh143a4470mq303ng6dh3bxi6mcppqli4z0m13qhqssh4fx";
|
|
}) { doomPrivateDir = "${pkgs.doom-emacs-config}/"; };
|
|
|
|
doom-emacs = doom-emacs-minus-deps.overrideAttrs (old:
|
|
{
|
|
#buildInputs = old.buildInputs ++ [ pkgs.clang pkgs.cmake pkgs.libclang ];
|
|
});
|
|
|
|
gui-packages = with pkgs;
|
|
let
|
|
steam-with-pipewire =
|
|
(steam.override { extraLibraries = pkgs: [ pkgs.pipewire ]; });
|
|
in [
|
|
exodus
|
|
firefox
|
|
jq
|
|
nyxt
|
|
openttd
|
|
redshift
|
|
signal-desktop
|
|
spotify
|
|
steam-with-pipewire
|
|
steam-with-pipewire.run
|
|
xclip
|
|
];
|
|
|
|
common-packages = with pkgs; [
|
|
ant
|
|
asdf
|
|
atop
|
|
binutils
|
|
btrfs-progs
|
|
bundix
|
|
byobu
|
|
cdrtools
|
|
cargo
|
|
clojure
|
|
cmake
|
|
curl
|
|
# doom-emacs-minus-deps
|
|
doom-emacs-config
|
|
doomEmacsInit
|
|
enca
|
|
file
|
|
fortune
|
|
git
|
|
gnome.gnome-tweaks
|
|
gnutls
|
|
gnupg
|
|
google-chrome
|
|
guile
|
|
imagemagick
|
|
ipfs
|
|
iptables
|
|
jdk
|
|
leiningen
|
|
libisofs
|
|
lispPackages.quicklisp
|
|
lsof
|
|
lshw
|
|
minecraft
|
|
mkpasswd
|
|
mplayer
|
|
mtr
|
|
nixfmt
|
|
nix-index
|
|
nixops
|
|
nix-prefetch-git
|
|
nyxt
|
|
nmap
|
|
opencv-java
|
|
openldap
|
|
openssl
|
|
pciutils
|
|
pipewire
|
|
pv
|
|
pwgen
|
|
python
|
|
ruby
|
|
rustc
|
|
sbcl
|
|
stdenv
|
|
telnet
|
|
texlive.combined.scheme-basic
|
|
tmux
|
|
unzip
|
|
youtube-dl
|
|
yubikey-manager
|
|
yubikey-personalization
|
|
|
|
# Check and pick a favorite
|
|
molly-brown
|
|
ncgopher
|
|
amfora
|
|
asuka
|
|
kristall
|
|
castor
|
|
];
|
|
|
|
in {
|
|
programs = {
|
|
bash = { enable = true; };
|
|
|
|
git = {
|
|
enable = true;
|
|
userName = name;
|
|
userEmail = email;
|
|
ignores = [ "*~" ];
|
|
extraConfig = { pull = { rebase = false; }; };
|
|
};
|
|
};
|
|
|
|
xresources.properties = mkIf enable-gui {
|
|
"Xft.antialias" = 1;
|
|
"Xft.autohint" = 0;
|
|
"Xft.dpi" = 192;
|
|
"Xft.hinting" = 1;
|
|
"Xft.hintstyle" = "hintfull";
|
|
"Xft.lcdfilter" = "lcddefault";
|
|
};
|
|
|
|
services.gpg-agent.enable = true;
|
|
|
|
home = {
|
|
packages =
|
|
if enable-gui then common-packages ++ gui-packages else common-packages;
|
|
|
|
file = {
|
|
".local/share/openttd/baseset" =
|
|
mkIf enable-gui { source = "${pkgs.openttd-data}/data"; };
|
|
|
|
# For nixified emacs
|
|
# ".emacs.d/init.el".text = ''
|
|
# (load "default.el")
|
|
# '';
|
|
|
|
# ".xsessions" = {
|
|
# mode = "0554";
|
|
# text = ''
|
|
# # -*-bash-*-
|
|
# gdmauth=$XAUTHORITY
|
|
# unset XAUTHORITY
|
|
# export XAUTHORITY
|
|
# xauth merge "$gdmauth"
|
|
|
|
# if [ -f $HOME/.xinitrc ]; then
|
|
# bash --login -i $HOME/.xinitrc
|
|
# fi
|
|
# '';
|
|
# };
|
|
};
|
|
|
|
sessionVariables = {
|
|
EDITOR = "emacsclient -t";
|
|
ALTERNATE_EDITOR = "";
|
|
|
|
HISTCONTROL = "ignoredups:ignorespace";
|
|
};
|
|
};
|
|
}
|