nixos-config/flake.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

2024-07-30 22:56:44 +02:00
{
description = "Moe.OS";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/release-24.05";
home-manager.url = "github:nix-community/home-manager/master";
2024-07-30 22:56:44 +02:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-07-31 19:37:38 +02:00
jovian.url = "github:Jovian-Experiments/Jovian-NixOS/development";
2024-07-30 22:56:44 +02:00
};
outputs = { self,nixpkgs,nixpkgs-stable, home-manager, ...}:
2024-07-30 22:56:44 +02:00
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
2024-07-30 22:56:44 +02:00
in {
nixosConfigurations = {
computer-mo = nixpkgs.lib.nixosSystem {
inherit system;
modules = [./configuration.nix];
specialArgs = {
inherit pkgs-stable;
2024-07-30 22:56:44 +02:00
};
};
};
homeConfigurations = {
mo = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [./home.nix];
extraSpecialArgs = {
inherit pkgs-stable;
2024-07-30 22:56:44 +02:00
};
2024-07-31 20:11:15 +02:00
jovianConfigurations = {
};
2024-07-30 22:56:44 +02:00
};
};
};
}