nixos-config/flake.nix

48 lines
1.5 KiB
Nix
Raw Normal View History

2023-06-16 23:08:03 +00:00
{
2023-06-16 23:14:12 +00:00
description = "Alex's super mega awesome nixos config";
2023-06-16 23:08:03 +00:00
2023-06-16 23:46:10 +00:00
inputs = {
2024-01-20 00:24:06 +00:00
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
# unstable.url = "nixpkgs/nixos-unstable";
2023-06-19 00:06:52 +00:00
2023-06-25 14:54:22 +00:00
atau-nixpkgs.url = "git+https://git.atauno.com/atau/atau-nixpkgs?ref=main&rev=1e72f4b1e9b7a2991e3ccdebbe75d312f016da3b";
2023-06-19 00:06:52 +00:00
atau-nixpkgs.inputs.nixpkgs.follows = "nixpkgs";
2024-01-20 00:24:06 +00:00
home-manager.url = "github:nix-community/home-manager";
2023-06-17 17:01:57 +00:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-06-16 23:46:10 +00:00
};
2023-06-16 23:14:12 +00:00
2024-01-20 00:24:06 +00:00
outputs = { self, nixpkgs, home-manager, ... }@attrs:
# let
# # system = "x86_64-linux";
# # pkgs = import nixpkgs {
# # # inherit system;
# # config.allowUnfree = true;
# # overlays = [ atau-nixpkgs.overlays.default ];
# # };
# in
2023-06-19 00:06:52 +00:00
{
nixosConfigurations.nixos76 = nixpkgs.lib.nixosSystem {
2024-01-20 00:24:06 +00:00
system = "x86_64-linux";
2023-06-19 00:06:52 +00:00
modules = [
2024-01-20 21:11:34 +00:00
./nixos76/system/configuration.nix
2023-06-19 00:06:52 +00:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2024-01-20 21:11:34 +00:00
home-manager.users.alex = import ./nixos76/alex/home.nix;
2023-06-19 00:06:52 +00:00
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
nixosConfigurations.ursa-minor = nixpkgs.lib.nixosSystem
{
2024-01-20 00:24:06 +00:00
system = "aarch64-linux";
modules = [
./ursa-minor/configuration.nix
];
};
2023-06-16 23:08:03 +00:00
};
}