dotfiles/system/flakes/neon.nix

61 lines
1.2 KiB
Nix
Raw Normal View History

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