2024-03-04 05:59:41 +00:00
|
|
|
{
|
|
|
|
description = "NixOS configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-03-05 09:16:28 +00:00
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
2024-03-06 06:41:50 +00:00
|
|
|
nixpkgs-23-11.url = "github:nixos/nixpkgs/nixos-23.11";
|
2024-03-04 05:59:41 +00:00
|
|
|
};
|
|
|
|
|
2024-03-06 06:41:50 +00:00
|
|
|
outputs = inputs@{ nixpkgs, nixpkgs-23-11, home-manager, sops-nix, arion, ... }: {
|
2024-03-04 05:59:41 +00:00
|
|
|
nixosConfigurations = {
|
2024-03-05 09:16:28 +00:00
|
|
|
rackserver = nixpkgs.lib.nixosSystem {
|
2024-03-04 05:59:41 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
2024-03-05 09:16:28 +00:00
|
|
|
sops-nix.nixosModules.sops
|
2024-03-06 06:41:50 +00:00
|
|
|
|
|
|
|
# https://github.com/hercules-ci/arion/issues/230
|
|
|
|
({pkgs, ...}:
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [ (final: prev: { arion = nixpkgs-23-11.legacyPackages.x86_64-linux.arion; }) ];
|
|
|
|
})
|
|
|
|
|
2024-03-04 05:59:41 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-03-05 09:16:28 +00:00
|
|
|
home-manager.users.ku = import ./users/ku.nix;
|
|
|
|
home-manager.users.nub = import ./users/nub.nix;
|
|
|
|
home-manager.users.jas = import ./users/jas.nix;
|
|
|
|
home-manager.users.sky = import ./users/sky.nix;
|
2024-03-06 02:48:24 +00:00
|
|
|
home-manager.users.podman = import ./users/podman.nix;
|
2024-03-04 05:59:41 +00:00
|
|
|
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass
|
|
|
|
# arguments to home.nix
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|