about summary refs log tree commit diff
path: root/darwin
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-16 19:01:53 +0900
committersefidel <contact@sefidel.net>2023-09-16 19:01:53 +0900
commit4188df087c133fe1899641d43b20b326253cab98 (patch)
treec24338f47c2578ef7d6b6c9f94727d0956e79776 /darwin
parent203deb6b381aa98af908a50d7081d4a24aeaae7a (diff)
downloadnixrc-4188df087c133fe1899641d43b20b326253cab98.tar.gz
nixrc-4188df087c133fe1899641d43b20b326253cab98.zip
feat(darwin)!: remove darwin
Diffstat (limited to 'darwin')
-rw-r--r--darwin/default.nix12
-rw-r--r--darwin/kompakt-darwin/configuration.nix59
2 files changed, 0 insertions, 71 deletions
diff --git a/darwin/default.nix b/darwin/default.nix
deleted file mode 100644
index acc1fcb..0000000
--- a/darwin/default.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{ self, darwin, unstable, ... } @ inputs:
-
-{
-  kompakt-darwin = self.lib.mkDarwin {
-    name = "kompakt-darwin";
-    system = "aarch64-darwin";
-    nixpkgs = unstable;
-    extraModules = [
-      ../modules/cachix
-    ];
-  };
-}
diff --git a/darwin/kompakt-darwin/configuration.nix b/darwin/kompakt-darwin/configuration.nix
deleted file mode 100644
index 514cef2..0000000
--- a/darwin/kompakt-darwin/configuration.nix
+++ /dev/null
@@ -1,59 +0,0 @@
-{ config, pkgs, lib, ... }:
-
-{
-  nix = {
-    settings.trusted-users = [
-      "@admin"
-    ];
-
-    settings.auto-optimise-store = lib.mkDefault true;
-    configureBuildUsers = true;
-    gc.automatic = lib.mkDefault true;
-    gc.options = lib.mkDefault "--delete-older-than 10d";
-    extraOptions = ''
-      experimental-features = nix-command flakes
-      extra-platforms = x86_64-darwin aarch64-darwin
-    '';
-  };
-
-  # List packages installed in system profile. To search by name, run:
-  # $ nix-env -qaP | grep wget
-  environment.systemPackages =
-    [
-      pkgs.vim
-    ];
-
-  # Use a custom configuration.nix location.
-  # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
-  # environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
-
-  # Auto upgrade nix package and the daemon service.
-  services.nix-daemon.enable = true;
-  # nix.package = pkgs.nix;
-
-  users.users.sefidel = {
-    name = "sefidel";
-    home = "/Users/sefidel";
-  };
-
-  # Create /etc/zshrc that loads the nix-darwin environment.
-  programs.zsh.enable = true; # default shell on catalina
-  # programs.fish.enable = true;
-
-  # Make applications pop up in finder/spotlight
-  system.activationScripts.applications.text = pkgs.lib.mkForce (
-    ''
-      echo "setting up ~/Applications..." >&2
-      rm -rf ~/Applications/Nix\ Apps
-      mkdir -p ~/Applications/Nix\ Apps
-      for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
-        src="$(/usr/bin/stat -f%Y "$app")"
-        cp -r "$src" ~/Applications/Nix\ Apps
-      done
-    ''
-  );
-
-  # Used for backwards compatibility, please read the changelog before changing.
-  # $ darwin-rebuild changelog
-  system.stateVersion = 4;
-}