config/oldflake.nix

47 lines
1.1 KiB
Nix

{
description = "My first flake!";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=<0.2.0>";
# hyprland.url = "github:hyprwm/Hyprland";
# hyprland-plugins = {
# url = "github:hyprwm/hyprland-plugins";
# inputs.hyprland.follows = "hyprland";
# };
# use the following for unstable:
# nixpkgs.url = "nixpkgs/nixos-unstable";
# or any branch you want:
# nixpkgs.url = "nixpkgs/{BRANCH-NAME}"
};
outputs = {
self,
home-manager,
nixpkgs,
...
}: let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
nmarks = lib.nixosSystem {
inherit system;
modules = [./configuration.nix];
};
};
homeConfigurations = {
nmarks = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [./home.nix];
};
};
};
}