all repos — dotfiles @ 0cd32a4982c6e6f43b0d1473de0c5b8c7c6f8256

my *nix dotfiles

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

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