From e1bbf4856e17488ac291e69cc77b0718b6dde663 Mon Sep 17 00:00:00 2001
From: Jo <jo@thevoid.cafe>
Date: Tue, 3 Dec 2024 18:38:19 +0100
Subject: [PATCH] refactor: clean up unused imports refactor: remove some
 comments feat: set VSCodium color scheme to Catppuccin Macchiato

---
 flake.nix                                     |  5 +---
 .../cyn@absolutesolver/default.nix            |  1 -
 .../jo@puzzlevision/apps/gnome.nix            |  3 ---
 .../jo@puzzlevision/apps/vscodium.nix         |  4 +--
 .../x86_64-linux/jo@puzzlevision/default.nix  | 20 ++------------
 .../apps/development/zed-editor/default.nix   | 26 -------------------
 modules/home/common/ssh/default.nix           |  4 ---
 modules/nixos/archetypes/server/default.nix   |  1 -
 .../nixos/archetypes/workstation/default.nix  |  1 -
 modules/nixos/common/audio/default.nix        |  1 -
 modules/nixos/common/fonts/default.nix        |  1 -
 modules/nixos/common/grub/default.nix         | 11 +-------
 modules/nixos/common/hardware/default.nix     |  1 -
 modules/nixos/common/locale/default.nix       |  1 -
 modules/nixos/common/networking/default.nix   | 10 +------
 modules/nixos/common/nix/default.nix          |  1 -
 modules/nixos/common/shell/default.nix        | 11 +-------
 modules/nixos/desktop/gnome/default.nix       | 10 +------
 modules/nixos/desktop/plasma/default.nix      | 11 +-------
 .../x86_64-linux/absolutesolver/default.nix   |  1 -
 20 files changed, 9 insertions(+), 115 deletions(-)
 delete mode 100644 modules/home/apps/development/zed-editor/default.nix

diff --git a/flake.nix b/flake.nix
index ee6e423..dba152e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -45,9 +45,6 @@
       src = ./.; # "src" must point to the root of the flake.
 
       snowfall = {
-        # "root" can be used, to tell Snowfall Lib where to look for Nix files.
-        # root = ./nix;
-
         # Namespace for this flake's packages, library and overlays.
         namespace = "puzzlevision";
 
@@ -58,7 +55,7 @@
       };
 
       channels-config = {
-        allowUnfree = true; # Allow unfree packages.
+        allowUnfree = true;
       };
 
       # Apply some NixOS modules globally.
diff --git a/homes/x86_64-linux/cyn@absolutesolver/default.nix b/homes/x86_64-linux/cyn@absolutesolver/default.nix
index 6ecc69f..cb1d7d7 100644
--- a/homes/x86_64-linux/cyn@absolutesolver/default.nix
+++ b/homes/x86_64-linux/cyn@absolutesolver/default.nix
@@ -1,7 +1,6 @@
 {
   lib,
   pkgs,
-  inputs,
   namespace,
   ...
 }: with lib; with lib.${namespace};
diff --git a/homes/x86_64-linux/jo@puzzlevision/apps/gnome.nix b/homes/x86_64-linux/jo@puzzlevision/apps/gnome.nix
index 420599a..fa86efc 100644
--- a/homes/x86_64-linux/jo@puzzlevision/apps/gnome.nix
+++ b/homes/x86_64-linux/jo@puzzlevision/apps/gnome.nix
@@ -1,8 +1,5 @@
 {
-  lib,
   pkgs,
-  inputs,
-  config,
   ...
 }: {
   home.packages = with pkgs.gnomeExtensions; [
diff --git a/homes/x86_64-linux/jo@puzzlevision/apps/vscodium.nix b/homes/x86_64-linux/jo@puzzlevision/apps/vscodium.nix
index 162d682..3d984e6 100644
--- a/homes/x86_64-linux/jo@puzzlevision/apps/vscodium.nix
+++ b/homes/x86_64-linux/jo@puzzlevision/apps/vscodium.nix
@@ -1,8 +1,5 @@
 {
-  lib,
   pkgs,
-  inputs,
-  config,
   ...
 }: {
   programs.vscode = {
@@ -23,6 +20,7 @@
     userSettings = {
       "nix.enableLanguageServer" = true;
       "nix.serverPath" = "nil";
+      "workbench.colorTheme" = "Catppuccin Macchiato";
     };
   };
 }
\ No newline at end of file
diff --git a/homes/x86_64-linux/jo@puzzlevision/default.nix b/homes/x86_64-linux/jo@puzzlevision/default.nix
index 962af4d..a707122 100644
--- a/homes/x86_64-linux/jo@puzzlevision/default.nix
+++ b/homes/x86_64-linux/jo@puzzlevision/default.nix
@@ -1,22 +1,7 @@
 {
-  # Snowfall Lib provides a customized `lib` instance with access to your flake's library
-  # as well as the libraries available from your flake's inputs.
   lib,
-  # Instance of `pkgs` with overlays and custom packages applied.
   pkgs,
-  # All flake inputs.
-  inputs,
-
-  # Additional metadata, provided by Snowfall Lib.
-  namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
-  home, # The home architecture for this host (eg. `x86_64-linux`).
-  target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
-  format, # A normalized name for the home target (eg. `home`).
-  virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
-  host, # The host name for this home.
-
-  # All other arguments come from the home home.
-  config,
+  namespace,
   ...
 }: with lib; with lib.${namespace};
 {
@@ -58,6 +43,7 @@
     devenv
     python39
     nil
+    zed-editor
 
     ### Rust development specific
     rustup
@@ -74,7 +60,5 @@
     sidequest
   ];
 
-  #puzzlevision.apps.zed-editor.enable = true;
-
   home.stateVersion = "24.05";
 }
diff --git a/modules/home/apps/development/zed-editor/default.nix b/modules/home/apps/development/zed-editor/default.nix
deleted file mode 100644
index 1c565c3..0000000
--- a/modules/home/apps/development/zed-editor/default.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{
-  lib,
-  pkgs,
-  inputs,
-  namespace,
-  config,
-  ...
-}: with lib; with lib.${namespace};
-let
-  cfg = config.apps.zed-editor;
-
-  zed-fhs = pkgs.buildFHSUserEnv {
-    name = "zed";
-    targetPkgs = pkgs:
-    with pkgs; [
-      zed-editor
-    ];
-    runScript = "zed";
-  };
-in {
-  options.apps.zed-editor = { enable = mkEnableOption "zed-editor"; };
-
-  config = mkIf cfg.enable {
-    home.packages = [zed-fhs];
-  };
-}
diff --git a/modules/home/common/ssh/default.nix b/modules/home/common/ssh/default.nix
index 308e074..e19c755 100644
--- a/modules/home/common/ssh/default.nix
+++ b/modules/home/common/ssh/default.nix
@@ -1,9 +1,5 @@
 {
-  lib,
   pkgs,
-  inputs,
-  namespace,
-  config,
   ...
 }: {
   home.packages = with pkgs; [
diff --git a/modules/nixos/archetypes/server/default.nix b/modules/nixos/archetypes/server/default.nix
index 7a82fa2..6d44abb 100644
--- a/modules/nixos/archetypes/server/default.nix
+++ b/modules/nixos/archetypes/server/default.nix
@@ -1,6 +1,5 @@
 {
   lib,
-  pkgs,
   namespace,
   config,
   ...
diff --git a/modules/nixos/archetypes/workstation/default.nix b/modules/nixos/archetypes/workstation/default.nix
index 2dad545..8bf0eac 100644
--- a/modules/nixos/archetypes/workstation/default.nix
+++ b/modules/nixos/archetypes/workstation/default.nix
@@ -1,6 +1,5 @@
 {
   lib,
-  pkgs,
   namespace,
   config,
   ...
diff --git a/modules/nixos/common/audio/default.nix b/modules/nixos/common/audio/default.nix
index d9c4298..3528bb8 100644
--- a/modules/nixos/common/audio/default.nix
+++ b/modules/nixos/common/audio/default.nix
@@ -1,6 +1,5 @@
 {
   lib,
-  inputs,
   namespace,
   config,
   ...
diff --git a/modules/nixos/common/fonts/default.nix b/modules/nixos/common/fonts/default.nix
index 99e272e..c60ad49 100644
--- a/modules/nixos/common/fonts/default.nix
+++ b/modules/nixos/common/fonts/default.nix
@@ -3,7 +3,6 @@
   pkgs,
   namespace,
   config,
-  options,
   ...
 }: with lib; with lib.${namespace};
 let
diff --git a/modules/nixos/common/grub/default.nix b/modules/nixos/common/grub/default.nix
index 6b24e01..5031ed2 100644
--- a/modules/nixos/common/grub/default.nix
+++ b/modules/nixos/common/grub/default.nix
@@ -1,15 +1,6 @@
 {
   lib,
-  pkgs,
-  inputs,
-
-  namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
-  system, # The system architecture for this host (eg. `x86_64-linux`).
-  target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
-  format, # A normalized name for the system target (eg. `iso`).
-  virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
-  systems, # An attribute map of your defined hosts.
-
+  namespace,
   config,
   ...
 }: with lib; with lib.${namespace};
diff --git a/modules/nixos/common/hardware/default.nix b/modules/nixos/common/hardware/default.nix
index bf98b51..23106e8 100644
--- a/modules/nixos/common/hardware/default.nix
+++ b/modules/nixos/common/hardware/default.nix
@@ -1,6 +1,5 @@
 {
   lib,
-  inputs,
   namespace,
   config,
   ...
diff --git a/modules/nixos/common/locale/default.nix b/modules/nixos/common/locale/default.nix
index 55e3a13..7ac250a 100644
--- a/modules/nixos/common/locale/default.nix
+++ b/modules/nixos/common/locale/default.nix
@@ -1,6 +1,5 @@
 {
   lib,
-  inputs,
   namespace,
   config,
   ...
diff --git a/modules/nixos/common/networking/default.nix b/modules/nixos/common/networking/default.nix
index 2c00fb8..8ee7cc5 100644
--- a/modules/nixos/common/networking/default.nix
+++ b/modules/nixos/common/networking/default.nix
@@ -1,14 +1,6 @@
 {
   lib,
-  pkgs,
-  inputs,
-
-  namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
-  system, # The system architecture for this host (eg. `x86_64-linux`).
-  target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
-  format, # A normalized name for the system target (eg. `iso`).
-  virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
-  systems, # An attribute map of your defined hosts.
+  namespace,
 
   config,
   ...
diff --git a/modules/nixos/common/nix/default.nix b/modules/nixos/common/nix/default.nix
index af572d0..2d95834 100644
--- a/modules/nixos/common/nix/default.nix
+++ b/modules/nixos/common/nix/default.nix
@@ -1,7 +1,6 @@
 {
   lib,
   pkgs,
-  inputs,
   namespace,
   config,
   ...
diff --git a/modules/nixos/common/shell/default.nix b/modules/nixos/common/shell/default.nix
index 183718e..fb80618 100644
--- a/modules/nixos/common/shell/default.nix
+++ b/modules/nixos/common/shell/default.nix
@@ -1,15 +1,6 @@
 {
   lib,
-  pkgs,
-  inputs,
-
-  namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
-  system, # The system architecture for this host (eg. `x86_64-linux`).
-  target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
-  format, # A normalized name for the system target (eg. `iso`).
-  virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
-  systems, # An attribute map of your defined hosts.
-
+  namespace,
   config,
   ...
 }: with lib; with lib.${namespace};
diff --git a/modules/nixos/desktop/gnome/default.nix b/modules/nixos/desktop/gnome/default.nix
index 64c1e20..ddbcb30 100644
--- a/modules/nixos/desktop/gnome/default.nix
+++ b/modules/nixos/desktop/gnome/default.nix
@@ -1,15 +1,7 @@
 {
   lib,
   pkgs,
-  inputs,
-
-  namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
-  system, # The system architecture for this host (eg. `x86_64-linux`).
-  target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
-  format, # A normalized name for the system target (eg. `iso`).
-  virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
-  systems, # An attribute map of your defined hosts.
-
+  namespace,
   config,
   ...
 }: with lib; with lib.${namespace};
diff --git a/modules/nixos/desktop/plasma/default.nix b/modules/nixos/desktop/plasma/default.nix
index 886f7de..628f118 100644
--- a/modules/nixos/desktop/plasma/default.nix
+++ b/modules/nixos/desktop/plasma/default.nix
@@ -1,15 +1,6 @@
 {
   lib,
-  pkgs,
-  inputs,
-
-  namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
-  system, # The system architecture for this host (eg. `x86_64-linux`).
-  target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
-  format, # A normalized name for the system target (eg. `iso`).
-  virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
-  systems, # An attribute map of your defined hosts.
-
+  namespace,
   config,
   ...
 }: with lib; with lib.${namespace};
diff --git a/systems/x86_64-linux/absolutesolver/default.nix b/systems/x86_64-linux/absolutesolver/default.nix
index fc6a6e9..e9572d8 100644
--- a/systems/x86_64-linux/absolutesolver/default.nix
+++ b/systems/x86_64-linux/absolutesolver/default.nix
@@ -3,7 +3,6 @@
   pkgs,
   inputs,
   namespace,
-  config,
   ...
 }: with lib; with lib.${namespace};
 {