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

61 lines
1.2 KiB
Nix
Raw Normal View History

2024-07-24 07:54:07 +00:00
{ nixpkgs, lix-module, nixos-hardware, home-manager, agenix, neovim-nightly-overlay, nifoc-overlay }:
2023-06-07 18:40:27 +00:00
let
default-system = "aarch64-linux";
nixpkgsConfig = {
overlays = [
2024-07-24 07:54:07 +00:00
neovim-nightly-overlay.overlays.default
nifoc-overlay.overlay
2023-06-07 18:40:27 +00:00
];
config = {
allowUnfree = true;
allowBroken = true;
2024-07-23 20:03:30 +00:00
permittedInsecurePackages = [ ];
2023-06-07 18:40:27 +00:00
};
};
in
2024-07-23 20:03:30 +00:00
{
arch = default-system;
2023-06-07 18:40:27 +00:00
system = nixpkgs.lib.nixosSystem {
system = default-system;
modules = [
2024-07-24 07:54:07 +00:00
{
nixpkgs = nixpkgsConfig;
nix = {
registry.nixpkgs.to = { type = "path"; path = nixpkgs.outPath; };
nixPath = nixpkgs.lib.mkForce [ "nixpkgs=flake:nixpkgs" ];
};
}
2023-06-07 18:40:27 +00:00
nixos-hardware.nixosModules.raspberry-pi-4
2024-07-24 07:54:07 +00:00
lix-module.nixosModules.default
2023-06-07 18:40:27 +00:00
2024-07-24 07:54:07 +00:00
home-manager.nixosModules.home-manager
2023-06-07 18:40:27 +00:00
{
2023-09-16 22:53:55 +00:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/argon.nix;
};
2023-06-07 18:40:27 +00:00
}
2024-07-24 07:54:07 +00:00
agenix.nixosModules.default
../hosts/argon.nix
2023-06-07 18:40:27 +00:00
];
};
2024-07-23 20:03:30 +00:00
deployment = {
hostname = "argon";
sshUser = "root";
remoteBuild = true;
autoRollback = false;
magicRollback = false;
2023-06-07 18:40:27 +00:00
};
}