all repos — dotfiles @ 3e5310b97fbff6540545635654397c1aef286a97

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}