Nix things
This commit is contained in:
parent
5d28b53778
commit
0b697cae2a
6 changed files with 33 additions and 5 deletions
|
@ -2,7 +2,7 @@ max-visible=5
|
||||||
default-timeout=30000
|
default-timeout=30000
|
||||||
background-color=#111111
|
background-color=#111111
|
||||||
border-color=#666666
|
border-color=#666666
|
||||||
font=iosevka-lyte 11
|
font=Iosevka 11
|
||||||
progress-color=source #33333388
|
progress-color=source #33333388
|
||||||
# format="<b>%s</b>
|
# format="<b>%s</b>
|
||||||
default-timeout=15000
|
default-timeout=15000
|
||||||
|
|
|
@ -57,3 +57,7 @@ if has_command tmux && string match -v -q '*tmux*' $TERM && string match -v -q '
|
||||||
tmux start-server
|
tmux start-server
|
||||||
tmux attach -t default || tmux new -s default
|
tmux attach -t default || tmux new -s default
|
||||||
end
|
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
|
||||||
|
|
|
@ -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 NOTES_PATH $XDG_DOCUMENTS_DIR/notes
|
||||||
set -Ux USER_LOGS_PATH $XDG_DOCUMENTS_DIR/logs
|
set -Ux USER_LOGS_PATH $XDG_DOCUMENTS_DIR/logs
|
||||||
set -Ux SCROTS_PATH $XDG_PICTURES_DIR/scrots
|
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
|
||||||
|
|
5
env/nix/modules/de/sway.nix
vendored
5
env/nix/modules/de/sway.nix
vendored
|
@ -4,13 +4,16 @@ let
|
||||||
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
|
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
|
||||||
in {
|
in {
|
||||||
imports = [ ./graphics.nix ];
|
imports = [ ./graphics.nix ];
|
||||||
|
fonts.fonts = with pkgs; [
|
||||||
|
noto-fonts-emoji font-awesome
|
||||||
|
];
|
||||||
programs = {
|
programs = {
|
||||||
sway = {
|
sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
swaylock
|
swaylock
|
||||||
swayidle
|
swayidle
|
||||||
unstable.mako
|
unstable.mako unstable.libnotify
|
||||||
waybar
|
waybar
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
slurp
|
slurp
|
||||||
|
|
16
env/nix/modules/users/daniel.nix
vendored
16
env/nix/modules/users/daniel.nix
vendored
|
@ -1,4 +1,7 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
|
fonts.fonts = with pkgs; [
|
||||||
|
# helvetica # needed by zoom
|
||||||
|
];
|
||||||
users.users.daniel = {
|
users.users.daniel = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "docker" ];
|
extraGroups = [ "wheel" "docker" ];
|
||||||
|
@ -24,15 +27,22 @@
|
||||||
elixir
|
elixir
|
||||||
postgresql # database
|
postgresql # database
|
||||||
htop # almost as good as bottom (btm)
|
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
|
unzip # needed by a handful of other utilities
|
||||||
autoconf automake # autotools
|
autoconf automake # autotools
|
||||||
weechat # irc
|
weechat # irc
|
||||||
python39Full # python 3.9
|
python39Full # python 3.9
|
||||||
jq # awk for json
|
jq # awk for json
|
||||||
xfce.thunar xfce.thunar-archive-plugin xfce.thunar-volman # gui file manager
|
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?
|
# TODO: move this one to just laptop?
|
||||||
brightnessctl # laptop screen brightness
|
brightnessctl # laptop screen brightness
|
||||||
|
|
6
init.sh
6
init.sh
|
@ -45,6 +45,12 @@ fix_dotfiles_origin() {
|
||||||
git remote set-url origin "ssh://git@git.lyte.dev:2222/lytedev/dotfiles.git"
|
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() {
|
init_for_root() {
|
||||||
clone_dotfiles "$root_home$dotfiles"
|
clone_dotfiles "$root_home$dotfiles"
|
||||||
symlink_nixos "$root_home$dotfiles/env/nix/"
|
symlink_nixos "$root_home$dotfiles/env/nix/"
|
||||||
|
|
Reference in a new issue