Skip to content

Commit

Permalink
Simplify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeley committed Jan 1, 2024
1 parent 66c0c5a commit 97230f7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 19 deletions.
4 changes: 1 addition & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
self,
nixpkgs,
home-manager,
hyprland,
nixvim,
...
}: let
system = "x86_64-linux";
Expand All @@ -53,7 +51,7 @@
in {
nixosConfigurations = (
import ./hosts {
inherit lib inputs pkgs user system home-manager hyprland nixvim;
inherit lib inputs pkgs user system home-manager;
}
);
};
Expand Down
10 changes: 4 additions & 6 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
system,
home-manager,
user,
hyprland,
nixvim,
...
}: {
t470s = lib.nixosSystem {
Expand All @@ -27,7 +25,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit user inputs system hyprland nixvim;};
extraSpecialArgs = {inherit user inputs system;};
users.${user} = {
imports = [(import ./t470s/home.nix)];
};
Expand Down Expand Up @@ -56,7 +54,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit user inputs system hyprland nixvim;};
extraSpecialArgs = {inherit user inputs system;};
users.${user} = {
imports = [(import ./x13/home.nix)];
};
Expand All @@ -82,7 +80,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit user inputs system nixvim;};
extraSpecialArgs = {inherit user inputs system;};
users.${user} = {
imports = [(import ./sg13/home.nix)];
};
Expand All @@ -109,7 +107,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit user inputs system hyprland nixvim;};
extraSpecialArgs = {inherit user inputs system;};
users.${user} = {
imports = [(import ./x61s/home.nix)];
};
Expand Down
4 changes: 2 additions & 2 deletions hosts/sg13/home.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
pkgs,
user,
nixvim,
inputs,
...
}: {
imports = [
nixvim.homeManagerModules.nixvim
inputs.nixvim.homeManagerModules.nixvim

../../apps/git/git.nix
../../apps/fish/fish.nix
Expand Down
7 changes: 3 additions & 4 deletions hosts/t470s/home.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
pkgs,
user,
hyprland,
nixvim,
inputs,
...
}: {
imports = [
hyprland.homeManagerModules.default
nixvim.homeManagerModules.nixvim
inputs.hyprland.homeManagerModules.default
inputs.nixvim.homeManagerModules.nixvim
../../apps/hyprland/hyprland.nix
../../apps/waybar/waybar.nix
../../apps/tofi/tofi.nix
Expand Down
7 changes: 3 additions & 4 deletions hosts/x13/home.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
pkgs,
user,
hyprland,
nixvim,
inputs,
...
}: {
imports = [
hyprland.homeManagerModules.default
nixvim.homeManagerModules.nixvim
inputs.hyprland.homeManagerModules.default
inputs.nixvim.homeManagerModules.nixvim
../../apps/hyprland/hyprland.nix
../../apps/waybar/waybar.nix
../../apps/tofi/tofi.nix
Expand Down
2 changes: 2 additions & 0 deletions hosts/x61s/home.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
pkgs,
user,
inputs,
...
}: {
imports = [
inputs.nixvim.homeManagerModules.nixvim
../../apps/sway/sway.nix
../../apps/waybar/waybar.nix
../../apps/tofi/tofi.nix
Expand Down

0 comments on commit 97230f7

Please sign in to comment.