nixos-config/flake.nix

44 lines
1.4 KiB
Nix
Raw Permalink Normal View History

{
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";
nixpkgs-23-11.url = "github:nixos/nixpkgs/nixos-23.11";
};
outputs = inputs@{ nixpkgs, nixpkgs-23-11, home-manager, sops-nix, arion, ... }: {
nixosConfigurations = {
2024-03-05 09:16:28 +00:00
rackserver = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
2024-03-05 09:16:28 +00:00
sops-nix.nixosModules.sops
# https://github.com/hercules-ci/arion/issues/230
({pkgs, ...}:
{
nixpkgs.overlays = [ (final: prev: { arion = nixpkgs-23-11.legacyPackages.x86_64-linux.arion; }) ];
})
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;
home-manager.users.podman = import ./users/podman.nix;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
};
};
}