summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-10-01 18:16:03 +0200
committerLinnnus <[email protected]>2023-10-01 18:16:03 +0200
commit7451c6a93b42ad1ae4a1a95664c2d8a6bdb11f72 (patch)
tree73357ed8a6ac266339392b11639714b1aa60a261
parentd7fc02342227fbd442f47e27fa12a42ff7998cd5 (diff)
Remove special 'self' argument
This can be accessed through flakeInputs anyways.
-rw-r--r--flake.nix1
-rw-r--r--home/default.nix6
-rw-r--r--hosts/common.nix4
-rw-r--r--hosts/muhammed/configuration.nix2
4 files changed, 6 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 808b47e..244abfe 100644
--- a/flake.nix
+++ b/flake.nix
@@ -24,7 +24,6 @@
outputs = { self, nixpkgs, home-manager, nix-darwin, agenix, ... }@inputs:
let
args = {
- inherit self;
flakeInputs = inputs;
metadata = nixpkgs.lib.importTOML ./metadata.toml;
};
diff --git a/home/default.nix b/home/default.nix
index b9e0b72..6e87b53 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -1,4 +1,4 @@
-{ self, flakeInputs, metadata, ... }:
+{ flakeInputs, metadata, ... }:
{
# Use the flake input pkgs so Home Manager configuration can share overlays
@@ -7,12 +7,12 @@
# Pass special arguments from flake.nix further down the chain. I really hate
# this split module system.
- home-manager.extraSpecialArgs = { inherit self flakeInputs metadata; };
+ home-manager.extraSpecialArgs = { inherit flakeInputs metadata; };
# OKAY FUCK THIS SHIT. THERE IS ONE USER. IT IS ME. LINUS. I WILL ADD
# MULTIUSER SUPPORT IF IT EVER BECOMES A REQUIREMENT.
home-manager.users.linus = {
- imports =
+ imports =
[
./neovim
./zsh
diff --git a/hosts/common.nix b/hosts/common.nix
index 32baeb5..5a9bc52 100644
--- a/hosts/common.nix
+++ b/hosts/common.nix
@@ -1,6 +1,6 @@
# Shared configuraion regardless of hosts.
-{ pkgs, options, self, flakeInputs, ... }:
+{ pkgs, options, flakeInputs, ... }:
{
# Enable de facto stable features.
@@ -11,7 +11,7 @@
#
# See: https://nixos.wiki/wiki/Overlays#Using_nixpkgs.overlays_from_configuration.nix_as_.3Cnixpkgs-overlays.3E_in_your_NIX_PATH
nixpkgs.overlays = (import ../pkgs/overlays.nix);
- nix.nixPath = options.nix.nixPath.default ++ [ "nixpkgs-overlays=${self}/pkgs/overlays.nix" ];
+ nix.nixPath = options.nix.nixPath.default ++ [ "nixpkgs-overlays=${flakeInputs.self}/pkgs/overlays.nix" ];
# Set ZSH as the shell.
# https://nixos.wiki/wiki/Command_Shell#Changing_default_shelltrue
diff --git a/hosts/muhammed/configuration.nix b/hosts/muhammed/configuration.nix
index f338cdd..db54aff 100644
--- a/hosts/muhammed/configuration.nix
+++ b/hosts/muhammed/configuration.nix
@@ -1,6 +1,6 @@
# This file contains the configuration for my Macbook Pro.
-{ pkgs, flakeInputs, lib, ... }:
+{ flakeInputs, ... }:
{
# Specify the location of this configuration file. Very meta.