Skip to content

Commit

Permalink
use sharedModules wherever possible3
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Sep 28, 2024
1 parent f9b8ca5 commit 4d6da0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions nix-darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
darwinModules = {
default.imports = [
{
home-manager.users.${config.people.myself} = {
imports = [
self.homeModules.default
self.homeModules.darwin-only
];
};
home-manager.users.${config.people.myself} = { };
home-manager.sharedModules = [
self.homeModules.default
self.homeModules.darwin-only
];
}
self.nixosModules.common
inputs.ragenix.darwinModules.default
Expand Down
11 changes: 5 additions & 6 deletions nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
default.imports = [
{
users.users.${config.people.myself}.isNormalUser = true;
home-manager.users.${config.people.myself} = {
imports = [
self.homeModules.default
self.homeModules.linux-only
];
};
home-manager.users.${config.people.myself} = { };
home-manager.sharedModules = [
self.homeModules.default
self.homeModules.linux-only
];
}
self.nixosModules.common
inputs.ragenix.nixosModules.default # Used in github-runner.nix & hedgedoc.nix
Expand Down

0 comments on commit 4d6da0d

Please sign in to comment.