diff options
author | Alex Auvolat <alex@adnab.me> | 2023-01-17 15:49:32 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-01-17 15:49:32 +0100 |
commit | 0df93e912e8644f2a93be0119296dbcb5ae06093 (patch) | |
tree | 89971a0a23d4bc183764b780fb464b5456d8040b /nixpkgs/common.nix | |
parent | d47dd5aa3882aea1a8eff4fb9faa4881274559dc (diff) | |
download | user-config-0df93e912e8644f2a93be0119296dbcb5ae06093.tar.gz user-config-0df93e912e8644f2a93be0119296dbcb5ae06093.zip |
Add zfs, unify home manager
Diffstat (limited to 'nixpkgs/common.nix')
-rw-r--r-- | nixpkgs/common.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/nixpkgs/common.nix b/nixpkgs/common.nix new file mode 100644 index 0000000..7ecdb89 --- /dev/null +++ b/nixpkgs/common.nix @@ -0,0 +1,46 @@ +{ pkgs, ... }: { + home.username = "lx"; + + programs.bash = { + enable = true; + shellAliases = { + ll = "ls -lah"; + irc = "ssh -t adnab.me /usr/local/bin/irc"; + }; + }; + programs.keychain = { + enable = true; + enableBashIntegration = true; + keys = [ "~/.ssh/id_ed25519" ]; + }; + programs.vim = { + enable = true; + extraConfig = (builtins.readFile ../vim/vimrc); + plugins = with pkgs.vimPlugins; [ vim-nix fzf-vim nerdtree ]; + }; + + programs.git.enable = true; + programs.git.userName = "Alex Auvolat"; + programs.git.userEmail = "alex@adnab.me"; + + home.file = { ".config/tmux/tmux.conf".source = ../tmux/tmux.conf; }; + + xsession.enable = true; + + xdg.enable = true; + xdg.userDirs = { + desktop = null; + documents = null; + pictures = null; + music = null; + publicShare = null; + templates = null; + videos = null; + }; + + services.syncthing.enable = true; + + nixpkgs.config.allowUnfree = true; + + home.stateVersion = "22.11"; +} |