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