36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ nixpkgs, home-manager, nixpkgs-unstable, sops-nix, doom-emacs-nix }:
|
|
let nixosSystem = nixpkgs.lib.nixosSystem;
|
|
in {
|
|
|
|
sterni = nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./configs/sterni/configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.users.mainUser = {
|
|
imports = [ doom-emacs-nix.hmModule ];
|
|
};
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
}
|
|
sops-nix.nixosModules.sops
|
|
{ sops.defaultSopsFile = ./secrets/sterni.yaml; }
|
|
({ 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};
|
|
})
|
|
];
|
|
|
|
# overlay included (todo?)
|
|
# nixpkgs.overlays = [ (import <mozilla-overlay/rust-overlay.nix>) ];
|
|
|
|
# imports of modules
|
|
# imports = [ <backup-module> <krops-lib> <cluster-module> <modules> ];
|
|
})
|
|
];
|
|
};
|
|
}
|