From 43f903a3334d0bfd50e9cfa64dd5d95faa739d0d Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 26 Sep 2020 11:07:33 +0200 Subject: Add more basic config --- home.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'home.nix') diff --git a/home.nix b/home.nix index 9e75f36..00f035a 100644 --- a/home.nix +++ b/home.nix @@ -1,6 +1,9 @@ { config, pkgs, ... }: let pnvim = import ./programs/nvim.nix pkgs; + isDarwin = builtins.currentSystem == "x86_64-darwin"; + platformSetup = + if isDarwin then ./platforms/darwin else ./platforms/linux; in { # Let Home Manager install and manage itself. @@ -9,16 +12,30 @@ in # Home Manager needs a bit of information about you and the # paths it should manage. home.username = "pn"; - home.homeDirectory = "/Users/pn"; + home.homeDirectory = + if isDarwin then "/Users/pn" else "/home/pn"; imports = [ + # Platform specific config + platformSetup + ./programs/zsh ./programs/git.nix ]; home.packages = with pkgs; [ + # Basic gnupg pnvim nur.repos.pn.larbs-mail + + # Misc + spotifyd + spotify-tui + # gimp + slack-dark + pandoc + texlive.combined.scheme-basic + zathura ]; # This value determines the Home Manager release that your -- cgit 1.4.1