about summary refs log tree commit diff
path: root/modules/darwin/common
diff options
context:
space:
mode:
Diffstat (limited to 'modules/darwin/common')
-rw-r--r--modules/darwin/common/default.nix13
-rw-r--r--modules/darwin/common/home-manager.nix4
-rw-r--r--modules/darwin/common/locale.nix8
-rw-r--r--modules/darwin/common/networking.nix11
-rw-r--r--modules/darwin/common/nix.nix17
-rw-r--r--modules/darwin/common/secrets.nix4
-rw-r--r--modules/darwin/common/shell.nix4
-rw-r--r--modules/darwin/common/stylix.nix12
-rw-r--r--modules/darwin/common/users.nix12
-rw-r--r--modules/darwin/common/xdg.nix24
10 files changed, 0 insertions, 109 deletions
diff --git a/modules/darwin/common/default.nix b/modules/darwin/common/default.nix
deleted file mode 100644
index 04f7b29..0000000
--- a/modules/darwin/common/default.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-_: {
-  imports = [
-    ./home-manager.nix
-    ./locale.nix
-    ./networking.nix
-    ./nix.nix
-    ./secrets.nix
-    ./shell.nix
-    ./stylix.nix
-    ./users.nix
-    ./xdg.nix
-  ];
-}
diff --git a/modules/darwin/common/home-manager.nix b/modules/darwin/common/home-manager.nix
deleted file mode 100644
index 487c64b..0000000
--- a/modules/darwin/common/home-manager.nix
+++ /dev/null
@@ -1,4 +0,0 @@
-{ inputs, ... }:
-{
-  imports = [ inputs.home-manager.darwinModule ];
-}
diff --git a/modules/darwin/common/locale.nix b/modules/darwin/common/locale.nix
deleted file mode 100644
index 19770a3..0000000
--- a/modules/darwin/common/locale.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ lib, ... }:
-with lib;
-{
-  environment.variables.LANG = "en_GB.UTF-8";
-
-  # TODO https://daiderd.com/nix-darwin/manual/index.html#opt-system.keyboard.enableKeyMapping
-  system.keyboard = { };
-}
diff --git a/modules/darwin/common/networking.nix b/modules/darwin/common/networking.nix
deleted file mode 100644
index eae7c2f..0000000
--- a/modules/darwin/common/networking.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-{
-  localHostname ? this.hostname,
-  this,
-  ...
-}:
-{
-  networking = {
-    computerName = localHostname;
-    hostName = localHostname;
-  };
-}
diff --git a/modules/darwin/common/nix.nix b/modules/darwin/common/nix.nix
deleted file mode 100644
index 63b0d90..0000000
--- a/modules/darwin/common/nix.nix
+++ /dev/null
@@ -1,17 +0,0 @@
-{ lib, this, ... }:
-with lib;
-{
-  nix = {
-    daemonIOLowPriority = false;
-    daemonProcessType = "Standard";
-
-    settings.extra-platforms = optionalString (this.system == "aarch64-darwin") ''
-      x86_64-darwin aarch64-darwin
-    '';
-  };
-
-  services.nix-daemon.enable = true;
-
-  # https://github.com/LnL7/nix-darwin/blob/master/CHANGELOG
-  system.stateVersion = 4;
-}
diff --git a/modules/darwin/common/secrets.nix b/modules/darwin/common/secrets.nix
deleted file mode 100644
index 681c5c2..0000000
--- a/modules/darwin/common/secrets.nix
+++ /dev/null
@@ -1,4 +0,0 @@
-{ inputs, ... }:
-{
-  imports = [ inputs.agenix.darwinModules.default ];
-}
diff --git a/modules/darwin/common/shell.nix b/modules/darwin/common/shell.nix
deleted file mode 100644
index 2139f2f..0000000
--- a/modules/darwin/common/shell.nix
+++ /dev/null
@@ -1,4 +0,0 @@
-{ pkgs, ... }:
-{
-  environment.shells = with pkgs; [ bashInteractive ];
-}
diff --git a/modules/darwin/common/stylix.nix b/modules/darwin/common/stylix.nix
deleted file mode 100644
index 8712172..0000000
--- a/modules/darwin/common/stylix.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{
-  config,
-  inputs,
-  lib,
-  ...
-}:
-with lib;
-{
-  imports = [ inputs.stylix.darwinModules.stylix ];
-
-  fonts.fonts = mkAfter config.nixfiles.modules.common.stylix.fonts.extraPackages;
-}
diff --git a/modules/darwin/common/users.nix b/modules/darwin/common/users.nix
deleted file mode 100644
index 9043f51..0000000
--- a/modules/darwin/common/users.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{
-  lib,
-  localUsername ? lib.my.username,
-  ...
-}:
-with lib;
-{
-  # The only MacOS machine I'm currently using has a pre-configured domain user
-  # account that I have to login as. I may accidentally break something if I
-  # change options here so this section is left practically untouched.
-  users.users.${localUsername}.home = "/Users/${localUsername}";
-}
diff --git a/modules/darwin/common/xdg.nix b/modules/darwin/common/xdg.nix
deleted file mode 100644
index 526dc0b..0000000
--- a/modules/darwin/common/xdg.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{ config, lib, ... }:
-with lib;
-let
-  cfg = config.nixfiles.modules.common.xdg;
-in
-{
-  hm.home.sessionVariables =
-    with cfg;
-    {
-      XDG_CACHE_HOME = cacheHome;
-      XDG_CONFIG_HOME = configHome;
-      XDG_DATA_HOME = dataHome;
-      XDG_STATE_HOME = stateHome;
-    }
-    // (with userDirs; {
-      XDG_DOCUMENTS_DIR = documents;
-      XDG_DOWNLOAD_DIR = download;
-      XDG_MUSIC_DIR = music;
-      XDG_PICTURES_DIR = pictures;
-      XDG_PUBLICSHARE_DIR = publicShare;
-      XDG_TEMPLATES_DIR = templates;
-      XDG_VIDEOS_DIR = videos;
-    });
-}

Consider giving Nix/NixOS a try! <3