nix-configs/flake.nix

41 lines
906 B
Nix
Raw Permalink Normal View History

2023-11-16 21:34:57 +00:00
{
2023-11-25 14:37:36 +00:00
description = "First main nixos flake";
inputs = {
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 = {
2024-01-22 02:30:43 +00:00
lena = 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
2024-01-22 02:30:43 +00:00
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.forestcat = import ./home.nix;
}
2023-12-02 17:30:41 +00:00
];
};
};
2023-11-16 21:34:57 +00:00
};
2023-12-02 17:30:41 +00:00
}