nixos-config/flake.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

{
description = "NixOS configuration";
inputs = {
2024-03-05 09:16:28 +00:00
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-05 09:16:28 +00:00
outputs = inputs@{ nixpkgs, home-manager, sops-nix, ... }: {
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
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;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
};
};
}