all repos — dotfiles @ b89d34d2b82e22c328282cf0e3c26acbaf25321c

my *nix dotfiles

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

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