Misterio77 / nix-config

Personal nixos and home-manager configurations.
https://m7.rs/git/nix-config/
MIT License
719 stars 42 forks source link

less hardcored homefolders #6

Closed luxus closed 1 year ago

luxus commented 1 year ago

i imagine its possible to get rid of all the misterio and replace it with something like $username https://github.com/Misterio77/nix-config/blob/e90d1153a439dae0b986308f2211f08012e32b6d/home/misterio/desktop/common/discord.nix#L8

could you give me a hint how to do it?

luxus commented 1 year ago
{ pkgs, username, lib, persistence, ... }:{
  home.packages = with pkgs; [ zoom-us ];
    home = {
    persistence = lib.mkIf persistence {
      "/persist/home/${username}".directories = [
        ".zoom"
      ];
    };
  };
}

okay i got it myself :D