nixos-config/flake.nix

41 lines
952 B
Nix
Raw Normal View History

2024-04-17 05:52:14 +05:00
{
description = "My system configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-05-01 15:39:14 +03:00
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
2024-04-17 05:52:14 +05:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixpkgs-stable, home-manager, ... }@inputs:
let
system = "x86_64-linux";
in {
# nixos - system hostname
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
specialArgs = {
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
inherit inputs system;
};
modules = [
./nixos/configuration.nix
];
};
2024-04-22 10:20:35 +03:00
homeConfigurations.sweetbread = home-manager.lib.homeManagerConfiguration {
2024-04-17 05:52:14 +05:00
pkgs = nixpkgs.legacyPackages.${system};
modules = [ ./home-manager/home.nix ];
};
};
}