Nix things

This commit is contained in:
Daniel Flanagan 2020-10-27 17:10:54 -05:00
parent 5d28b53778
commit 0b697cae2a
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
6 changed files with 33 additions and 5 deletions

View File

@ -2,7 +2,7 @@ max-visible=5
default-timeout=30000
background-color=#111111
border-color=#666666
font=iosevka-lyte 11
font=Iosevka 11
progress-color=source #33333388
# format="<b>%s</b>
default-timeout=15000

View File

@ -57,3 +57,7 @@ if has_command tmux && string match -v -q '*tmux*' $TERM && string match -v -q '
tmux start-server
tmux attach -t default || tmux new -s default
end
if set -q $__HM_SESS_VARS_SOURCED
exec bash -c "source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh; exec fish"
end

View File

@ -48,3 +48,8 @@ set -Ux TMUX_PLUGIN_MANAGER_PATH $XDG_CONFIG_HOME/tmux/plugins/
set -Ux NOTES_PATH $XDG_DOCUMENTS_DIR/notes
set -Ux USER_LOGS_PATH $XDG_DOCUMENTS_DIR/logs
set -Ux SCROTS_PATH $XDG_PICTURES_DIR/scrots
if test -n "$NIX_PATH"
set NIX_PATH :
end
set -Ux NIX_PATH $HOME/.nix-defexpr/channels:$NIX_PATH

View File

@ -4,13 +4,16 @@ let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in {
imports = [ ./graphics.nix ];
fonts.fonts = with pkgs; [
noto-fonts-emoji font-awesome
];
programs = {
sway = {
enable = true;
extraPackages = with pkgs; [
swaylock
swayidle
unstable.mako
unstable.mako unstable.libnotify
waybar
wl-clipboard
slurp

View File

@ -1,4 +1,7 @@
{ config, pkgs, ... }: {
fonts.fonts = with pkgs; [
# helvetica # needed by zoom
];
users.users.daniel = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
@ -24,15 +27,22 @@
elixir
postgresql # database
htop # almost as good as bottom (btm)
google-cloud-sdk # gcloud
kubectl # kubernetes cli
awscli # aws cli
unzip # needed by a handful of other utilities
autoconf automake # autotools
weechat # irc
python39Full # python 3.9
jq # awk for json
xfce.thunar xfce.thunar-archive-plugin xfce.thunar-volman # gui file manager
mpd # music player daemon
ncmpcpp # ncurses music player client
vlc # video player
# TODO: work module?
google-cloud-sdk # gcloud
kubectl # kubernetes cli
awscli # aws cli
zoom # video conferencing
lastpass-cli
# TODO: move this one to just laptop?
brightnessctl # laptop screen brightness

View File

@ -45,6 +45,12 @@ fix_dotfiles_origin() {
git remote set-url origin "ssh://git@git.lyte.dev:2222/lytedev/dotfiles.git"
}
setup_home_manager() {
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install
}
init_for_root() {
clone_dotfiles "$root_home$dotfiles"
symlink_nixos "$root_home$dotfiles/env/nix/"