More cleanup
This commit is contained in:
parent
992f8b23ac
commit
4c0ad5c3f0
5 changed files with 35 additions and 52 deletions
|
@ -1,24 +0,0 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
programs.bash = {
|
|
||||||
enable = true;
|
|
||||||
profileExtra = ''
|
|
||||||
export EDITOR="vim"
|
|
||||||
alias gst="git status"
|
|
||||||
alias gco="git commit";
|
|
||||||
alias glo="git log";
|
|
||||||
alias gad="git add";
|
|
||||||
alias ls="exa";
|
|
||||||
alias ll="exa -l";
|
|
||||||
alias la="exa -la";
|
|
||||||
alias mv="mv -i";
|
|
||||||
alias cp="cp -i";
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = [
|
|
||||||
pkgs.exa
|
|
||||||
pkgs.fzf
|
|
||||||
];
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,6 +1,11 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
userEnv = {
|
unstable = import <nixpkgs-unstable> {};
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
(import ../session.nix {
|
||||||
|
inherit config;
|
||||||
|
sessionVars = {
|
||||||
EDITOR = "vim";
|
EDITOR = "vim";
|
||||||
PAGER = "less";
|
PAGER = "less";
|
||||||
MAILDIR = "\$HOME/.var/mail";
|
MAILDIR = "\$HOME/.var/mail";
|
||||||
|
@ -8,10 +13,7 @@ let
|
||||||
NOTMUCH_CONFIG = "\$HOME/.config/notmuch/config";
|
NOTMUCH_CONFIG = "\$HOME/.config/notmuch/config";
|
||||||
MOZ_ENABLE_WAYLAND= "1";
|
MOZ_ENABLE_WAYLAND= "1";
|
||||||
};
|
};
|
||||||
unstable = import <nixpkgs-unstable> {};
|
})
|
||||||
in {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
../direnv.nix
|
../direnv.nix
|
||||||
../vim
|
../vim
|
||||||
../tmux.nix
|
../tmux.nix
|
||||||
|
@ -29,9 +31,6 @@ in {
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
home.sessionVariables = userEnv;
|
|
||||||
systemd.user.sessionVariables = userEnv;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
anki
|
anki
|
||||||
aspell
|
aspell
|
|
@ -1,32 +1,34 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
|
||||||
userEnv = {
|
|
||||||
EDITOR = "vim";
|
|
||||||
PAGER = "less";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./common.nix
|
(import ../session.nix {
|
||||||
#./private/work
|
inherit config;
|
||||||
|
sessionVars = {
|
||||||
|
EDITOR = "vim";
|
||||||
|
PAGER = "less";
|
||||||
|
MOZ_ENABLE_WAYLAND= "1";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
../vim
|
||||||
|
../direnv.nix
|
||||||
|
../git.nix
|
||||||
|
../gpg.nix
|
||||||
|
../gtk.nix
|
||||||
|
../keyring.nix
|
||||||
|
../kitty.nix
|
||||||
|
../ssh.nix
|
||||||
|
../tmux.nix
|
||||||
|
../zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
home.sessionVariables = userEnv;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
firefox-bin
|
|
||||||
chromium
|
|
||||||
android-studio
|
|
||||||
file
|
file
|
||||||
fzf
|
|
||||||
gnupg
|
gnupg
|
||||||
libreoffice
|
libreoffice
|
||||||
pinentry
|
|
||||||
python3
|
python3
|
||||||
spotify
|
|
||||||
sshfs-fuse
|
sshfs-fuse
|
||||||
unzip
|
unzip
|
||||||
];
|
];
|
||||||
|
|
5
modules/session.nix
Normal file
5
modules/session.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ config, sessionVars }:
|
||||||
|
{
|
||||||
|
home.sessionVariables = sessionVars;
|
||||||
|
systemd.user.sessionVariables = sessionVars;
|
||||||
|
}
|
|
@ -45,6 +45,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
|
pkgs.fzf
|
||||||
pkgs.exa
|
pkgs.exa
|
||||||
pkgs.zsh-git-prompt
|
pkgs.zsh-git-prompt
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue