all repos — dotfiles @ 719aefb1520cf2f645862d0a60521cb7399ab03c

my *nix dotfiles

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  security.pam.enableSudoTouchIdAuth = true;
17
18  system.activationScripts.applications.text = pkgs.lib.mkForce (
19    ''
20      echo "setting up ~/Applications..." >&2
21      rm -rf ~/Applications/Nix\ Apps
22      mkdir -p ~/Applications/Nix\ Apps
23      for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
24        src="$(/usr/bin/stat -f%Y "$app")"
25        cp -r "$src" ~/Applications/Nix\ Apps
26      done
27    ''
28  );
29}