Organise NixOS and Home Manager modules

This commit is contained in:
Oliver Davies 2024-11-05 18:55:05 +00:00
parent 501b5cd011
commit 3c7aa3f03e
31 changed files with 26 additions and 25 deletions

View file

@ -6,13 +6,13 @@
}: }:
{ {
imports = [ imports = [
./modules/alacritty.nix ../../modules/home-manager/alacritty.nix
./modules/copyq.nix ../../modules/home-manager/copyq.nix
./modules/desktop/bluetuith.nix ../../modules/home-manager/bluetuith.nix
./modules/espanso.nix ../../modules/home-manager/espanso.nix
./modules/gtk.nix ../../modules/home-manager/gtk.nix
./modules/flameshot.nix ../../modules/home-manager/flameshot.nix
./modules/gtk.nix ../../modules/home-manager/gtk.nix
./modules/mpv.nix ../../modules/home-manager/mpv.nix
]; ];
} }

View file

@ -41,7 +41,7 @@ inputs.nixpkgs.lib.nixosSystem {
}; };
} }
(import ./modules/awesome.nix { (import ../../modules/nixos/awesome.nix {
inherit inherit
inputs inputs
pkgs pkgs
@ -49,8 +49,8 @@ inputs.nixpkgs.lib.nixosSystem {
username username
; ;
}) })
(import ./modules/autorandr.nix) (import ../../modules/nixos/autorandr.nix)
(import ./modules/gnome.nix) (import ../../modules/nixos/gnome.nix)
configuration configuration
hardwareConfiguration hardwareConfiguration

View file

@ -16,19 +16,19 @@
programs.home-manager.enable = true; programs.home-manager.enable = true;
imports = [ imports = [
(import ./modules/git.nix { inherit inputs pkgs; }) (import ../../modules/home-manager/git.nix { inherit inputs pkgs; })
(import ./modules/neovim.nix { inherit inputs pkgs; }) (import ../../modules/home-manager/neovim.nix { inherit inputs pkgs; })
./modules/bat.nix ../../modules/home-manager/bat.nix
./modules/bin.nix ../../modules/home-manager/bin.nix
./modules/direnv.nix ../../modules/home-manager/direnv.nix
./modules/fzf.nix ../../modules/home-manager/fzf.nix
./modules/lsd.nix ../../modules/home-manager/lsd.nix
./modules/pet.nix ../../modules/home-manager/pet.nix
./modules/phpactor.nix ../../modules/home-manager/phpactor.nix
./modules/ripgrep.nix ../../modules/home-manager/ripgrep.nix
./modules/syncthing.nix ../../modules/home-manager/syncthing.nix
./modules/tmux.nix ../../modules/home-manager/tmux.nix
./modules/zellij.nix ../../modules/home-manager/zellij.nix
./modules/zsh.nix ../../modules/home-manager/zsh.nix
]; ];
} }

View file

@ -1,3 +1,4 @@
Use nixosModules and homeManagerModules outputs in flake.nix to simplify importing modules
Add immich for photo hosting Add immich for photo hosting
Use nginx for jellyfin, immich and gitea Use nginx for jellyfin, immich and gitea
Add gitea for local Git hosting Add gitea for local Git hosting