summaryrefslogtreecommitdiff
path: root/nixpkgs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-17 12:45:46 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-17 12:45:46 +0100
commitd47dd5aa3882aea1a8eff4fb9faa4881274559dc (patch)
treeb438c8fb8953b84614c170a5278ae72ece90bb68 /nixpkgs
parenteaf6d5b07bcdd9a3eb9bfdac93566b7432e46c37 (diff)
downloaduser-config-d47dd5aa3882aea1a8eff4fb9faa4881274559dc.tar.gz
user-config-d47dd5aa3882aea1a8eff4fb9faa4881274559dc.zip
Unify things and rename things
Diffstat (limited to 'nixpkgs')
-rw-r--r--nixpkgs/Makefile3
-rw-r--r--nixpkgs/home.nix49
2 files changed, 52 insertions, 0 deletions
diff --git a/nixpkgs/Makefile b/nixpkgs/Makefile
new file mode 100644
index 0000000..e99f6c2
--- /dev/null
+++ b/nixpkgs/Makefile
@@ -0,0 +1,3 @@
+all:
+ nixfmt home.nix
+ home-manager switch -f home.nix
diff --git a/nixpkgs/home.nix b/nixpkgs/home.nix
new file mode 100644
index 0000000..ae8bc5d
--- /dev/null
+++ b/nixpkgs/home.nix
@@ -0,0 +1,49 @@
+{ pkgs, ... }: {
+ home.username = "lx";
+ home.homeDirectory = "/home/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 = [ "/home/lx/.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 = {
+ download = "/home/lx/Downloads";
+ 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";
+}
+