2021-09-25 15:17:07 +02:00
|
|
|
{ nixpkgs, home-manager, nixpkgs-unstable, sops-nix, doom-emacs-nix }:
|
|
|
|
let nixosSystem = nixpkgs.lib.nixosSystem;
|
|
|
|
in {
|
2021-09-25 11:07:09 +02:00
|
|
|
|
2021-09-24 06:09:20 +02:00
|
|
|
sterni = nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./configs/sterni/configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2021-09-25 15:17:07 +02:00
|
|
|
home-manager.users.mainUser = {
|
|
|
|
imports = [ doom-emacs-nix.hmModule ];
|
|
|
|
};
|
2021-09-24 06:09:20 +02:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
}
|
2021-09-25 15:17:07 +02:00
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
{ sops.defaultSopsFile = ./secrets/sterni.yaml; }
|
2021-09-24 06:09:20 +02:00
|
|
|
({ pkgs, ... }: {
|
|
|
|
# defined overlays injected by the nixflake
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(_self: _super: {
|
|
|
|
# we assign the overlay created before to the overlays of nixpkgs.
|
|
|
|
unstable = nixpkgs-unstable.legacyPackages.${pkgs.system};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-09-25 11:07:09 +02:00
|
|
|
# overlay included (todo?)
|
|
|
|
# nixpkgs.overlays = [ (import <mozilla-overlay/rust-overlay.nix>) ];
|
|
|
|
|
2021-09-24 06:09:20 +02:00
|
|
|
# imports of modules
|
2021-09-25 11:07:09 +02:00
|
|
|
# imports = [ <backup-module> <krops-lib> <cluster-module> <modules> ];
|
2021-09-24 06:09:20 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|