summaryrefslogtreecommitdiff
path: root/vali.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-03 21:30:14 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-03 21:30:14 +0200
commit4445bddfb210a29eced70c5225b11d682b0e7e9f (patch)
tree2757e404b42e18325ee8fc79eb9eda1f64acc607 /vali.nix
parentf5c9e1edf27a9bb5b08cdb00b54df9a0ac282e47 (diff)
downloadnixos-4445bddfb210a29eced70c5225b11d682b0e7e9f.tar
nixos-4445bddfb210a29eced70c5225b11d682b0e7e9f.tar.gz
nixos-4445bddfb210a29eced70c5225b11d682b0e7e9f.tar.bz2
nixos-4445bddfb210a29eced70c5225b11d682b0e7e9f.tar.xz
nixos-4445bddfb210a29eced70c5225b11d682b0e7e9f.zip
seperated dotfiles
Diffstat (limited to 'vali.nix')
-rw-r--r--vali.nix18
1 files changed, 2 insertions, 16 deletions
diff --git a/vali.nix b/vali.nix
index 0d866949..659980f8 100644
--- a/vali.nix
+++ b/vali.nix
@@ -74,20 +74,6 @@ rec {
74 }; 74 };
75 75
76 system.activationScripts = let 76 system.activationScripts = let
77 dotfiles = pkgs.fetchgit (rec { 77 setupUsers = pkgs.callPackage custom/dotfiles.nix {};
78 name = "dotfiles-${rev}"; 78 in setupUsers [ "/home/gkleen" ];
79 url = git://git.yggdrasil.li/dotfiles;
80 rev = "377401ceefea6772915071267625cd02c066f86e";
81 sha256 = "258e15ff69afaa663541b1691e1385d43b74d086891e4a0009d3507ab6cfbbe8";
82 });
83 setupUsers = names : pkgs.lib.listToAttrs (builtins.map setupUser names);
84 setupUser = name : {
85 inherit name;
86 value = ''
87 cd ${dotfiles}
88 ${pkgs.findutils}/bin/find . -type d -print0 | ${pkgs.findutils}/bin/xargs -0 -I '{}' -- mkdir -p "/home/${name}/{}"
89 ${pkgs.findutils}/bin/find . -type f -print0 | ${pkgs.findutils}/bin/xargs -0 -I '{}' -- ln -s -f "${dotfiles}/{}" "/home/${name}/{}"
90 '';
91 };
92 in setupUsers [ "gkleen" ];
93} 79}