all repos — dotfiles @ 3e5310b97fbff6540545635654397c1aef286a97

my *nix dotfiles

nix/hosts/syl/configuration.nix (view raw)

 1{ self, config, pkgs, lib, ... }:
 2
 3{
 4  programs.bash.enable = true;
 5  environment.shells = [ pkgs.bash ];
 6
 7  services.nix-daemon.enable = true;
 8  nixpkgs.overlays = with self.overlays; [
 9    nvim-nightly
10    prompt
11  ];
12
13  homebrew = {
14    enable = true;
15    casks = [ "iterm2" "qtpass" ];
16    masApps = {
17      Tailscale = 1475387142;
18    };
19  };
20
21  system.activationScripts.applications.text = pkgs.lib.mkForce (
22    ''
23      echo "setting up ~/Applications..." >&2
24      rm -rf ~/Applications/Nix\ Apps
25      mkdir -p ~/Applications/Nix\ Apps
26      for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
27        src="$(/usr/bin/stat -f%Y "$app")"
28        cp -r "$src" ~/Applications/Nix\ Apps
29      done
30    ''
31  );
32}