Skip to content

Commit

Permalink
move modules to use default.nix
Browse files Browse the repository at this point in the history
this way, instead of listing out each file manually, we can just list
the directory.
  • Loading branch information
DirectXMan12 committed Dec 25, 2024
1 parent c5c75d3 commit ba47bf3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 9 deletions.
12 changes: 3 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,12 @@
inherit system;
modules = [
./modules/utils/allowedUnfree-polyfill.nix
./modules/common/boot.nix
./modules/common/base.nix
./modules/common/users.nix
./systems/${name}/configuration.nix
./systems/${name}/hardware.nix
./modules/common
./systems/${name}
] ++ modules ++ nixpkgs.lib.optionals (userFacing) [
# make pkgs.unstable available in modules
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable-with-sway ]; })
./modules/user-facing/boot.nix
./modules/user-facing/home-manager-systems.nix
./modules/user-facing/sway-and-friends.nix
./modules/user-facing/common-system-apps.nix
./modules/user-facing
];
} // extra;
in rec {
Expand Down
9 changes: 9 additions & 0 deletions modules/common/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ ... }:

{
imports = [
./boot.nix
./base.nix
./users.nix
];
}
10 changes: 10 additions & 0 deletions modules/user-facing/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ ... }:

{
imports = [
./boot.nix
./home-manager-systems.nix
./sway-and-friends.nix
./common-system-apps.nix
];
}
4 changes: 4 additions & 0 deletions systems/music/configuration.nix → systems/music/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{ config, pkgs, lib, ... }:

{
imports = [
./hardware.nix
];

networking.hostName = "music";

#### roon & plex
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{ config, pkgs, ... }:

{
imports = [
./hardware.nix
];

networking.hostName = "yasamin"; # Define your hostname.

# mimic the old 22.11 hidpi settings (fontconfig & console settings)
Expand Down

0 comments on commit ba47bf3

Please sign in to comment.