Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
z0al committed Aug 4, 2024
1 parent a7ec632 commit 01f7b91
Show file tree
Hide file tree
Showing 22 changed files with 15 additions and 35 deletions.
4 changes: 2 additions & 2 deletions flake/pkgs.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ self, lib, inputs, ... }:
{ self, inputs, ... }:

let
config = {
Expand All @@ -14,7 +14,7 @@ in
inherit system config;

overlays = overlays ++ [
(final: prev: {
(_final: _prev: {
unstable = import inputs.nixpkgs-unstable {
inherit system config overlays;
};
Expand Down
2 changes: 1 addition & 1 deletion hosts/nixos/desktop.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, inputs, ... }:
{ inputs, ... }:

{
imports = with inputs.hardware.nixosModules; [
Expand Down
2 changes: 1 addition & 1 deletion modules/config.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:

let
cfg = config.d;
Expand Down
6 changes: 1 addition & 5 deletions modules/programs/chrome/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{ config, pkgs, lib, ... }:

let
cfg = config.d.programs.chrome;
in
{ lib, ... }:

{
options.d.programs.chrome = with lib; {
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/direnv/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:

let
cfg = config.d.programs.direnv;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/docker/_darwin.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:

let
cfg = config.d.programs.docker;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/docker/_nixos.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:

let
cfg = config.d.programs.docker;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/helix/settings.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, theme, ... }:
{ config, lib, theme, ... }:

let
cfg = config.d.programs.helix;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/vscode/support/theme.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, lib, theme, ... }:
{ pkgs, theme, ... }:

let
themeMapping = {
Expand Down
2 changes: 1 addition & 1 deletion modules/system/activation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in
config = {
my.user = { lib, ... }: {
home.activation = lib.mapAttrs
(name: script: lib.hm.dag.entryAfter [ "writeBoundary" ] script)
(_name: script: lib.hm.dag.entryAfter [ "writeBoundary" ] script)
cfg;
};
};
Expand Down
2 changes: 0 additions & 2 deletions modules/system/homebrew/_darwin.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, lib, ... }:

let
prefix = "/opt/homebrew";
in
Expand Down
2 changes: 1 addition & 1 deletion modules/system/users/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, theme, ... }:
{ config, pkgs, lib, ... }:

let
cfg = config.d.user;
Expand Down
2 changes: 0 additions & 2 deletions system/darwin/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ pkgs, ... }:

{
imports = [
../.
Expand Down
2 changes: 0 additions & 2 deletions system/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ pkgs, ... }:

{
imports = [
./pkgs.nix
Expand Down
2 changes: 0 additions & 2 deletions system/nixos/boot.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ lib, ... }:

{
boot = {
loader = {
Expand Down
2 changes: 1 addition & 1 deletion system/nixos/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:

{
imports = [
Expand Down
2 changes: 0 additions & 2 deletions system/nixos/gnome/settings/wallpaper.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ pkgs, ... }:

let
wallpaper = "${../../assets/wallpaper.jpg}";
avatar = "${../../assets/avatar.png}";
Expand Down
2 changes: 0 additions & 2 deletions system/nixos/network.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, ... }:

{
my.osUser.extraGroups = [ "networkmanager" ];

Expand Down
2 changes: 1 addition & 1 deletion system/nixos/pkgs.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:

{
nixpkgs.hostPlatform = "x86_64-linux";
Expand Down
2 changes: 0 additions & 2 deletions system/nixos/sound.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ config, pkgs, ... }:

{
sound.enable = true;
xdg.portal.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion system/nixos/tmpfs.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:

with lib;

Expand Down
2 changes: 0 additions & 2 deletions system/shells.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{ pkgs, ... }:

{
programs = {
bash.enableCompletion = true;
Expand Down

0 comments on commit 01f7b91

Please sign in to comment.