summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/turing.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/hosts/turing.nix b/hosts/turing.nix
new file mode 100755
index 0000000..d03bd22
--- /dev/null
+++ b/hosts/turing.nix
@@ -0,0 +1,28 @@
+{ config, ... }:
+
+let
+ home-manager = builtins.fetchTarball
+ "https://github.com/nix-community/home-manager/archive/master.tar.gz";
+in
+{
+ nix.settings.experimental-features = [
+ "nix-command"
+ "flakes"
+ ];
+
+ imports = [
+ ./darwin.nix
+ "${home-manager}/nix-darwin"
+ ];
+
+ home-manager = {
+ useGlobalPkgs = true;
+ useUserPackages = true;
+ backupFileExtension = "backup";
+ users.${config.system.primaryUser} = {
+ imports = [ ./home.nix ];
+ home.username = config.system.primaryUser;
+ home.homeDirectory = "/Users/${config.system.primaryUser}";
+ };
+ };
+}