2024-03-02 07:51:45 +01:00
|
|
|
{
|
2024-06-23 12:28:28 +02:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home = {
|
|
|
|
url = "git+https://git.sondell.org/glennwso/home.git";
|
2024-10-07 10:36:53 +02:00
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
2024-06-23 12:28:28 +02:00
|
|
|
};
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixos-mailserver = {
|
|
|
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-25 10:20:17 +02:00
|
|
|
};
|
2024-03-02 07:51:45 +01:00
|
|
|
|
2024-07-25 10:20:17 +02:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
home,
|
|
|
|
nixos-mailserver,
|
|
|
|
home-manager,
|
|
|
|
} @ attrs: let
|
2024-03-27 13:08:02 +01:00
|
|
|
system = "x86_64-linux";
|
|
|
|
homepage = home.packages.${system}.default;
|
2024-04-04 15:05:25 +02:00
|
|
|
mailserver = nixos-mailserver.nixosModules.default;
|
2024-06-23 12:28:28 +02:00
|
|
|
|
|
|
|
homeSettings = {
|
2024-06-23 15:39:08 +02:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.sondell = import ./home/sondell.nix;
|
2024-11-26 12:39:03 +01:00
|
|
|
users.root = import ./home/root.nix;
|
2024-06-23 15:39:08 +02:00
|
|
|
};
|
2024-06-23 12:28:28 +02:00
|
|
|
};
|
|
|
|
homeModules = [
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
homeSettings
|
|
|
|
];
|
2024-07-25 10:20:17 +02:00
|
|
|
in {
|
2024-03-02 07:51:45 +01:00
|
|
|
# replace 'joes-desktop' with your hostname here.
|
2024-07-25 10:20:17 +02:00
|
|
|
nixosConfigurations.nixos =
|
|
|
|
nixpkgs.lib.nixosSystem
|
|
|
|
{
|
|
|
|
inherit system;
|
|
|
|
specialArgs = attrs;
|
|
|
|
modules =
|
|
|
|
[
|
|
|
|
./configuration.nix
|
|
|
|
./audiobooks.nix
|
|
|
|
./tunnel.nix
|
|
|
|
./forgejo.nix
|
|
|
|
./nextcloud.nix
|
|
|
|
./jellyfin.nix
|
|
|
|
./filebrowser.nix
|
|
|
|
./tail.nix
|
2024-10-15 12:34:28 +02:00
|
|
|
# ./ai.nix
|
|
|
|
./ebooks.nix
|
2024-10-06 21:25:59 +02:00
|
|
|
# ./matrix.nix TODO does not work atm, fixit
|
|
|
|
# ./coturn.nix
|
2024-07-25 10:20:17 +02:00
|
|
|
./vaultwarden.nix
|
2024-10-06 21:25:59 +02:00
|
|
|
./dufs.nix
|
2024-07-25 10:20:17 +02:00
|
|
|
(import ./mail.nix {inherit mailserver;})
|
|
|
|
(import ./homepage.nix {inherit homepage;})
|
|
|
|
]
|
|
|
|
++ homeModules;
|
|
|
|
};
|
2024-03-02 07:51:45 +01:00
|
|
|
};
|
|
|
|
}
|