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

54 lines
1.2 KiB
Nix
Raw Normal View History

2023-05-12 15:39:09 +00:00
{ nixpkgs, deploy-rs, home-manager, agenix, inputs, ... }:
2022-07-30 16:19:49 +00:00
2022-07-30 19:38:01 +00:00
let
default-system = "x86_64-linux";
2023-04-05 11:16:47 +00:00
overlay-attic = inputs.attic.overlays.default;
2023-05-12 15:39:09 +00:00
overlay-deploy-rs = _: _: { inherit (deploy-rs.packages.${default-system}) deploy-rs; };
2022-07-31 18:48:49 +00:00
overlay-nifoc = inputs.nifoc-overlay.overlay;
2022-07-30 19:38:01 +00:00
nixpkgsConfig = {
overlays = [
2023-04-05 11:16:47 +00:00
overlay-attic
2023-05-12 15:39:09 +00:00
overlay-deploy-rs
2022-07-31 18:48:49 +00:00
overlay-nifoc
2022-07-30 19:38:01 +00:00
];
config = {
allowUnfree = true;
allowBroken = true;
};
};
in
2023-05-12 15:39:09 +00:00
rec {
2022-08-01 20:39:14 +00:00
system = nixpkgs.lib.nixosSystem {
system = default-system;
2022-07-30 16:19:49 +00:00
modules = [
../hosts/sail.nix
2022-07-31 18:48:49 +00:00
2022-07-31 18:55:17 +00:00
home-manager.nixosModules.home-manager
2023-01-01 23:30:54 +00:00
2023-04-14 08:23:54 +00:00
agenix.nixosModules.default
2023-02-05 16:51:04 +00:00
2022-07-31 18:48:49 +00:00
{
nixpkgs = nixpkgsConfig;
2022-07-31 19:01:10 +00:00
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
2023-04-22 23:21:04 +00:00
nix.registry.nixpkgs.flake = nixpkgs;
2022-07-31 18:48:49 +00:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.daniel = import ../../home/hosts/sail.nix;
}
2022-07-30 16:19:49 +00:00
];
};
2023-05-12 15:39:09 +00:00
deployment = {
2023-05-14 10:55:56 +00:00
hostname = "sail";
2023-05-12 15:39:09 +00:00
sshUser = "root";
remoteBuild = true;
profiles.system = {
path = deploy-rs.lib.${default-system}.activate.nixos system;
};
};
2022-07-30 16:19:49 +00:00
}