2023-11-16 21:34:57 +00:00
|
|
|
{
|
2023-11-25 14:37:36 +00:00
|
|
|
description = "First main nixos flake";
|
|
|
|
|
|
|
|
inputs = {
|
2023-12-04 18:10:34 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
2023-12-04 20:50:16 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2023-11-25 14:37:36 +00:00
|
|
|
};
|
|
|
|
|
2023-12-02 17:30:41 +00:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2023-12-04 20:50:16 +00:00
|
|
|
home-manager,
|
2023-12-02 17:30:41 +00:00
|
|
|
}: let
|
2023-11-25 14:37:36 +00:00
|
|
|
system = "x86_64-linux";
|
2023-12-04 20:50:16 +00:00
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2023-11-25 14:37:36 +00:00
|
|
|
|
2023-12-04 20:50:16 +00:00
|
|
|
npkgs = import nixpkgs {
|
2023-11-25 14:37:36 +00:00
|
|
|
inherit system;
|
|
|
|
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
2023-11-16 21:34:57 +00:00
|
|
|
};
|
2023-12-02 17:30:41 +00:00
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2023-12-07 20:16:49 +00:00
|
|
|
myNixos = nixpkgs.lib.nixosSystem {
|
2023-12-04 20:50:16 +00:00
|
|
|
inherit system;
|
2023-12-02 17:30:41 +00:00
|
|
|
modules = [
|
|
|
|
./nixos/configuration.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-12-04 20:50:16 +00:00
|
|
|
homeConfigurations = {
|
|
|
|
forestcat = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
modules = [
|
|
|
|
./home.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2023-11-16 21:34:57 +00:00
|
|
|
};
|
2023-12-02 17:30:41 +00:00
|
|
|
}
|