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

64 lines
1.3 KiB
Nix
Raw Normal View History

2024-10-15 20:54:50 +00:00
{ nixpkgs, disko, home-manager, agenix, 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;
2024-08-18 23:02:12 +00:00
permittedInsecurePackages = [
"olm-3.2.16"
];
2023-04-04 12:35:49 +00:00
};
};
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
../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
}