Refactor: import modules in flake.nix

This commit is contained in:
Alexander Bantyev 2023-01-27 22:51:09 +04:00
parent c5307cae01
commit 2d410ba894
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 3 additions and 17 deletions

View File

@ -138,7 +138,7 @@
pkgs = pkgsFor system;
in nixosSystem {
inherit system;
modules = [
modules = __attrValues self.nixosModules ++ [
(import (./machines + "/${name}"))
{ nixpkgs.pkgs = pkgs; }
{ device = name; }

View File

@ -1,21 +1,12 @@
{ inputs, ... }: {
imports = with inputs.self.nixosModules; with inputs.self.nixosProfiles; [
imports = with inputs.self.nixosProfiles; [
inputs.home-manager.nixosModules.home-manager
# MODULES
applications
secrets
secrets-envsubst
persist
bt-agent
# PROFILES
autoRun
xdg
boot
devices
git
gpg
locale

View File

@ -1,12 +1,7 @@
{ inputs, ... }: {
imports = with inputs.self.nixosModules; with inputs.self.nixosProfiles; [
imports = with inputs.self.nixosProfiles; [
./base.nix
# MODULES
themes
ezwg
# PROFILES
applications-setup
bluetooth