dotfiles/system/flakes/tanker.nix
Daniel Kempkens ce835fe00b
All checks were successful
Build / build-amd64-linux (push) Successful in 36s
Build / build-arm64-linux (push) Successful in 17m42s
atticd: use new nixos module
2024-10-15 22:54:50 +02:00

63 lines
1.3 KiB
Nix

{ nixpkgs, disko, home-manager, agenix, inputs, ... }:
let
default-system = "x86_64-linux";
# overlay-master = _: _: { pkgs-master = import inputs.nixpkgs-master { system = default-system; }; };
nixpkgsConfig = {
overlays = [
# overlay-master
inputs.neovim-nightly-overlay.overlays.default
inputs.nifoc-overlay.overlay
];
config = {
allowUnfree = true;
allowBroken = true;
permittedInsecurePackages = [
"olm-3.2.16"
];
};
};
in
{
arch = default-system;
system = nixpkgs.lib.nixosSystem {
system = default-system;
modules = [
{
nixpkgs = nixpkgsConfig;
nix = {
registry.nixpkgs.to = { type = "path"; path = nixpkgs.outPath; };
nixPath = nixpkgs.lib.mkForce [ "nixpkgs=flake:nixpkgs" ];
};
}
disko.nixosModules.disko
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/tanker.nix;
};
}
agenix.nixosModules.default
../hosts/tanker.nix
];
};
deployment = {
hostname = "tanker";
sshUser = "root";
remoteBuild = true;
autoRollback = false;
magicRollback = false;
};
}