diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-26 11:07:33 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-26 11:07:33 +0200 |
commit | 43f903a3334d0bfd50e9cfa64dd5d95faa739d0d (patch) | |
tree | 09b90d6f24eec6c7d1376d08028d5a81a1036fb7 /home.nix | |
parent | 9bc4874f0aff1ebc58b28879ee21df44e3a01fc7 (diff) | |
download | dots-43f903a3334d0bfd50e9cfa64dd5d95faa739d0d.tar.gz dots-43f903a3334d0bfd50e9cfa64dd5d95faa739d0d.zip |
Add more basic config
Diffstat (limited to 'home.nix')
-rw-r--r-- | home.nix | 19 |
1 files changed, 18 insertions, 1 deletions
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 |