move modules to hosts/common

This commit is contained in:
notohh 2025-02-08 13:41:37 -05:00
parent 1a5d835d47
commit 6fe24f311f
Signed by: notohh
GPG key ID: BD47506D475EE86D
25 changed files with 32 additions and 45 deletions

View file

@ -3,9 +3,8 @@ _: {
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix ../common
../../modules ../common/fonts.nix
../../modules/fonts.nix
]; ];
programs.hyprland.enable = true; programs.hyprland.enable = true;

View file

@ -3,8 +3,7 @@
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix ../common
../../modules
]; ];
users = { users = {

View file

@ -1,8 +0,0 @@
{inputs, ...}: {
imports = [
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
inputs.nur.modules.nixos.default
# inputs.attic.nixosModules.atticd
];
}

17
hosts/common/default.nix Normal file
View file

@ -0,0 +1,17 @@
{inputs, ...}: {
imports = [
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager
inputs.nur.modules.nixos.default
inputs.nix-topology.nixosModules.default
./prometheus.nix
./security.nix
./users.nix
./nix.nix
./system.nix
./openssh.nix
./virtualisation.nix
./sops.nix
./time.nix
];
}

View file

@ -1,6 +1,6 @@
_: { _: {
sops = { sops = {
defaultSopsFile = ../secrets/secrets.yaml; defaultSopsFile = ../../secrets/secrets.yaml;
age.keyFile = "/home/notoh/.config/sops/age/keys.txt"; age.keyFile = "/home/notoh/.config/sops/age/keys.txt";
}; };
} }

View file

@ -3,8 +3,7 @@
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix ../common
../../modules
]; ];
users = { users = {

View file

@ -3,8 +3,7 @@
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix ../common
../../modules
]; ];
users = { users = {

View file

@ -3,8 +3,7 @@
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix ../common
../../modules
]; ];
users = { users = {

View file

@ -3,8 +3,7 @@ _: {
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix ../common
../../modules
]; ];
users = { users = {

View file

@ -3,8 +3,7 @@ _: {
./hardware.nix ./hardware.nix
./networking.nix ./networking.nix
./services ./services
../common.nix ../common
../../modules
]; ];
services.snowflake-proxy.enable = true; services.snowflake-proxy.enable = true;

View file

@ -10,10 +10,10 @@
./services ./services
./networking.nix ./networking.nix
./gaming.nix ./gaming.nix
../common.nix ./topology.nix
../common
../common/fonts.nix
../../home/wayland ../../home/wayland
../../modules
../../modules/fonts.nix
]; ];
virtualisation = { virtualisation = {

View file

@ -3,8 +3,7 @@
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix ../common
../../modules
]; ];
users = { users = {

View file

@ -3,8 +3,7 @@
./hardware.nix ./hardware.nix
./services ./services
./networking.nix ./networking.nix
../common.nix ../common
../../modules
]; ];
users = { users = {

View file

@ -2,7 +2,7 @@ _: {
services.home-assistant.config = { services.home-assistant.config = {
lovelace.mode = "yaml"; lovelace.mode = "yaml";
http = { http = {
server_host = "0.0.0.0"; server_host = ["0.0.0.0"];
server_port = 8123; server_port = 8123;
}; };
homeassistant = { homeassistant = {

View file

@ -1,13 +0,0 @@
_: {
imports = [
./prometheus.nix
./security.nix
./users.nix
./nix.nix
./system.nix
./openssh.nix
./virtualisation.nix
./sops.nix
./time.nix
];
}