60 lines
1.6 KiB
Nix
60 lines
1.6 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# simple mailserver
|
|
snm = {
|
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-22.11";
|
|
inputs.nixpkgs-22_11.follows = "nixpkgs";
|
|
};
|
|
|
|
emacs = {
|
|
url = "github:nix-community/emacs-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# simplex-chat = {
|
|
# url = "github:simplex-chat/simplex-chat";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
# };
|
|
|
|
# age for nix to store encrypted passwords conveniently
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { home-manager, nixpkgs, agenix, snm, ... }@inputs: {
|
|
nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
({
|
|
nixpkgs = {
|
|
config.allowUnfree = true;
|
|
overlays = with inputs; [ emacs.overlay ];
|
|
};
|
|
})
|
|
snm.nixosModule
|
|
./modules/security.nix
|
|
./hosts/thrall
|
|
agenix.nixosModules.age
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.alex = import ./home/cli.nix;
|
|
}
|
|
];
|
|
};
|
|
|
|
nixosConfigurations."dregil" = import ./hosts/dregil { inherit inputs; };
|
|
homeConfigurations = import ./outputs/homeConfigurations inputs;
|
|
};
|
|
}
|