From 147c1e40ffe218b892ad0b507fab6e5ca225cea2 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Mon, 2 Aug 2021 15:04:24 -0400 Subject: [PATCH] Add nixOS/ home-manager-related files --- .config/nixpkgs/home.nix | 29 +++++++++++++++++++++++++++++ .nix-channels | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 .config/nixpkgs/home.nix create mode 100644 .nix-channels diff --git a/.config/nixpkgs/home.nix b/.config/nixpkgs/home.nix new file mode 100644 index 0000000..2d1414d --- /dev/null +++ b/.config/nixpkgs/home.nix @@ -0,0 +1,29 @@ +{ config, pkgs, ... }: + +let + # Be able to use unstable packages + pkgsUnstable = import {}; + +in +{ # Required + programs.home-manager.enable = true; + home.username = "earne"; + home.homeDirectory = "/home/earne"; + + home.packages = with pkgs; [ + gitFull + pkgsUnstable.neovim + tmux + yadm + ]; + + # This value determines the Home Manager release that your + # configuration is compatible with. This helps avoid breakage + # when a new Home Manager release introduces backwards + # incompatible changes. + # + # You can update Home Manager without changing this value. See + # the Home Manager release notes for a list of state version + # changes in each release. + home.stateVersion = "21.05"; +} diff --git a/.nix-channels b/.nix-channels new file mode 100644 index 0000000..6092d28 --- /dev/null +++ b/.nix-channels @@ -0,0 +1,2 @@ +https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manager +https://nixos.org/channels/nixos-unstable nixpkgs-unstable