1
0
Fork 0
dotfiles/system/flakes/tanker.nix

62 lines
1.3 KiB
Nix
Raw Normal View History

{ nixpkgs, disko, home-manager, agenix, attic, inputs, ... }:
2023-04-04 12:35:49 +00:00
let
default-system = "x86_64-linux";
2024-02-17 15:20:34 +00:00
# overlay-master = _: _: { pkgs-master = import inputs.nixpkgs-master { system = default-system; }; };
2023-04-04 12:35:49 +00:00
nixpkgsConfig = {
overlays = [
2024-02-17 15:20:34 +00:00
# overlay-master
2024-06-12 16:00:48 +00:00
inputs.neovim-nightly-overlay.overlays.default
inputs.nifoc-overlay.overlay
2023-04-04 12:35:49 +00:00
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
2024-07-23 20:03:30 +00:00
{
arch = default-system;
2023-04-04 12:35:49 +00:00
system = nixpkgs.lib.nixosSystem {
system = default-system;
2023-04-04 12:35:49 +00:00
modules = [
2024-07-14 21:05:41 +00:00
{
nixpkgs = nixpkgsConfig;
nix = {
registry.nixpkgs.to = { type = "path"; path = nixpkgs.outPath; };
nixPath = nixpkgs.lib.mkForce [ "nixpkgs=flake:nixpkgs" ];
};
}
2024-07-14 21:05:41 +00:00
disko.nixosModules.disko
2023-04-04 12:35:49 +00:00
home-manager.nixosModules.home-manager
{
2023-09-16 22:53:55 +00:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/tanker.nix;
};
2023-04-04 12:35:49 +00:00
}
2024-07-14 21:05:41 +00:00
agenix.nixosModules.default
attic.nixosModules.atticd
../hosts/tanker.nix
2023-04-04 12:35:49 +00:00
];
};
2023-05-12 15:39:09 +00:00
2024-07-23 20:03:30 +00:00
deployment = {
hostname = "tanker";
sshUser = "root";
remoteBuild = true;
autoRollback = false;
magicRollback = false;
2023-05-12 15:39:09 +00:00
};
2023-04-04 12:35:49 +00:00
}