nixos-config/flake.nix

49 lines
1.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 = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;
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";
2023-06-17 00:30:33 +00:00
home-manager.url = "github:nix-community/home-manager/release-23.05";
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
2023-06-25 14:54:22 +00:00
outputs = inputs@{ self, nixpkgs, atau-nixpkgs, home-manager, ... }:
2023-06-19 00:06:52 +00:00
let
2023-06-16 23:08:03 +00:00
system = "x86_64-linux";
2023-06-19 00:06:52 +00:00
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
2023-06-25 14:54:22 +00:00
overlays = [ atau-nixpkgs.overlays.default ];
2023-06-19 00:06:52 +00:00
};
in
{
nixosConfigurations.nixos76 = nixpkgs.lib.nixosSystem {
inherit pkgs;
inherit system;
modules = [
./system/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alex = import ./alex/home.nix;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
nixosConfigurations.ursa-minor = nixpkgs.lib.nixosSystem
{
inherit pkgs;
inherit system;
modules = [
./ursa-minor/configuration.nix
];
};
2023-06-16 23:08:03 +00:00
};
}