nixos-config/flake.nix

76 lines
2.4 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-07-20 14:00:02 +00:00
home-manager.backupFileExtension = "backup";
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
}
];
};
2024-07-18 00:24:32 +00:00
nixosConfigurations.thelio76 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./thelio76/configuration.nix
2024-07-19 15:03:21 +00:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2024-07-21 13:23:47 +00:00
home-manager.backupFileExtension = "backup";
2024-07-19 15:03:21 +00:00
home-manager.users.alex = import ./nixos76/alex/home.nix;
}
2024-07-18 00:24:32 +00:00
];
};
nixosConfigurations.ursa-minor = nixpkgs.lib.nixosSystem
{
2024-01-20 00:24:06 +00:00
system = "aarch64-linux";
modules = [
./ursa-minor/configuration.nix
];
};
2024-01-26 19:55:55 +00:00
nixosConfigurations.ursa-major = nixpkgs.lib.nixosSystem
{
system = "aarch64-linux";
modules = [
./ursa-major/configuration.nix
];
};
2024-02-04 19:17:33 +00:00
nixosConfigurations.atauno = nixpkgs.lib.nixosSystem
{
system = "aarch64-linux";
modules = [
./atauno/configuration.nix
];
};
2023-06-16 23:08:03 +00:00
};
}