dotfiles/system/flakes/neon.nix
Daniel Kempkens 2b55805176
All checks were successful
Build / build-amd64-linux (push) Successful in 28s
Build / build-arm64-linux (push) Successful in 57s
all: switch back to deploy-rs
2024-07-23 22:03:30 +02:00

60 lines
1.2 KiB
Nix

{ nixpkgs, lix-module, nixos-hardware, home-manager, agenix, neovim-nightly-overlay, nifoc-overlay }:
let
default-system = "aarch64-linux";
nixpkgsConfig = {
overlays = [
neovim-nightly-overlay.overlays.default
nifoc-overlay.overlay
];
config = {
allowUnfree = true;
allowBroken = true;
permittedInsecurePackages = [ ];
};
};
in
{
arch = default-system;
system = nixpkgs.lib.nixosSystem {
system = default-system;
modules = [
{
nixpkgs = nixpkgsConfig;
nix = {
registry.nixpkgs.to = { type = "path"; path = nixpkgs.outPath; };
nixPath = nixpkgs.lib.mkForce [ "nixpkgs=flake:nixpkgs" ];
};
}
nixos-hardware.nixosModules.raspberry-pi-4
lix-module.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/neon.nix;
};
}
agenix.nixosModules.default
../hosts/neon.nix
];
};
deployment = {
hostname = "neon";
sshUser = "root";
remoteBuild = true;
autoRollback = false;
magicRollback = false;
};
}