hosts: simplify modules

This commit is contained in:
notohh 2023-05-16 21:11:48 -04:00
parent 5998192aec
commit 99efc7dfce
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -1,5 +1,9 @@
inputs: let inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
sopsModule = inputs.sops-nix.nixosModules.sops;
hmModule = inputs.home-manager.nixosModules.home-manager;
diskoModule = inputs.disko.nixosModules.disko;
hyprlandModule = inputs.hyprland.homeManagerModules.default;
inherit (inputs.nixpkgs.lib) nixosSystem; inherit (inputs.nixpkgs.lib) nixosSystem;
in { in {
tsuki = nixosSystem { tsuki = nixosSystem {
@ -7,8 +11,9 @@ in {
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [
./tsuki ./tsuki
inputs.sops-nix.nixosModules.sops sopsModule
inputs.home-manager.nixosModules.home-manager diskoModule
hmModule
{ {
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
@ -17,7 +22,7 @@ in {
users.notoh = { users.notoh = {
imports = [ imports = [
./tsuki/home.nix ./tsuki/home.nix
inputs.hyprland.homeManagerModules.default hyprlandModule
]; ];
}; };
}; };
@ -26,10 +31,12 @@ in {
}; };
sutakku = nixosSystem { sutakku = nixosSystem {
inherit system; inherit system;
specialArgs = {inherit inputs;};
modules = [ modules = [
./sutakku ./sutakku
inputs.sops-nix.nixosModules.sops sopsModule
inputs.home-manager.nixosModules.home-manager diskoModule
hmModule
{ {
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
@ -48,8 +55,9 @@ in {
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [
./sakura ./sakura
inputs.sops-nix.nixosModules.sops sopsModule
inputs.home-manager.nixosModules.home-manager diskoModule
hmModule
{ {
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;