nord: desktop apps

This commit is contained in:
2023-03-11 03:39:06 +01:00
parent 1abe47b0c2
commit cf52f57012
11 changed files with 111 additions and 36 deletions

View File

@@ -1,10 +0,0 @@
{ config, pkgs, lib, ... }:
let
to-import = name: value: ./. + ("/" + name);
filter-users = key: val: val == "directory" && lib.pathExists "${./.}${key}/default.nix";
imports = lib.mapAttrsToList to-import (lib.filterAttrs filter-users (builtins.readDir ./.));
in
{
# TODO: does not work?
inherit imports;
}

View File

@@ -1,20 +1,19 @@
# https://nix-community.github.io/home-manager/options.html
{ pkgs, config, ... }:
{
nixpkgs.config.allowUnfree = true;
home.stateVersion = "22.11";
imports = [
./profiles/bat.nix
./profiles/git.nix
./profiles/gtk.nix
./profiles/micro.nix
./profiles/mpv.nix
./profiles/shell.nix
./profiles/ssh.nix
./profiles/tmate.nix
];
nixpkgs.config.allowUnfree = true;
home.stateVersion = "22.11";
programs.bash.initExtra = ''
if [ "$COLORTERM" = "truecolor" ] || [ "$TERM" == "xterm" ]; then
export TERM=xterm-256color
@@ -81,16 +80,18 @@
comma
(python3.withPackages (python-packages: with python-packages; [
requests
numpy
scipy
ptpython
poetry
rich
matplotlib
more-itertools
toml
numpy
#objexplore # TODO: package this, used in python interactive shell
poetry
ptpython
python-lsp-server
pyyaml
requests
rich
scipy
toml
virtualenv
]))
];
@@ -103,12 +104,9 @@
tmux = "systemd-run --scope --user tmux"; # detach from ssh scope, surviving logout
# TODO: wayland detection
# TODO: wayland
clip = "xclip -sel clip -t text/plain -rmlastnl -i";
python = "ptpython"; # this has too many problems...
cpython = "python";
# TODO: ps1?
pwd-fqdn = ''echo "$(whoami)@$(hostname -f):$(printf "%q" "$(realpath .)/")"'';

View File

@@ -16,7 +16,7 @@ import functools
import typing
from functools import reduce
from pathlib import Path
from objexplore import explore
#from objexplore import explore # to be added in nixpkgs
p = pprint

View File

@@ -4,9 +4,12 @@
imports = [
./default.nix
./profiles/gnome
./profiles/mpv.nix
./profiles/desktop.nix
];
home.packages = with pkgs; [
gnome.eog
];
}

View File

@@ -0,0 +1,35 @@
{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
atom # TODO: config
discord
element-desktop#-wayland
f3d
firefox
gnome-connections
scrcpy
slack
#spotify
transmission-remote-gtk
];
# flatpak
home.activation.addFlathubRemote = lib.hm.dag.entryAfter ["writeBoundary"] ''
if command -v flatpak >/dev/null; then
$DRY_RUN_CMD \
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
fi
'';
# TODO: automatic flatpak updates
/** /
# fix spotify facebook login (i instead opt for flatpack, as it how fails with some libcurl stuff)
nixpkgs.overlays = [(final: prev: {
spotify = prev.spotify.override {
nss = prev.nss_latest;
};
})];
/**/
}

View File

@@ -6,7 +6,7 @@ with lib.hm.gvariant;
{
dconf.settings = {
"org/gnome/shell/extensions/user-theme" = {
name = "vimix-dark-laptop-ruby";
name = "vimix-dark-doder";
};
"org/gnome/desktop/interface" = {

View File

@@ -52,20 +52,22 @@
curl
wget
sshuttle
#tldr
entr
axel aria
xe # xargs alternative
sd # sed alternative
fd # find alternative
silver-searcher # `ag`
ripgrep
silver-searcher # 'ag'
ripgrep # 'rg'
gron
jq
yq
fq
yq # includes xmlq and tomlq
fq # binary jq
htmlq
just
just # justfile
sysz
du-dust # du alternative
ncdu # Disk usage analyzer with an ncurses interface