nixos-config/flake.nix

43 lines
1.1 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
};
2024-07-31 20:24:10 +02:00
outputs = { self,nixpkgs,nixpkgs-stable, home-manager, jovian, ...}:
2024-07-30 22:56:44 +02:00
let
lib = nixpkgs.lib;
system = "x86_64-linux";
2024-08-01 10:47:06 +02:00
pkgs = import nixpkgs {inherit system; config.allowUnfree = true; };
pkgs-stable = import nixpkgs-stable {inherit system; config.allowUnfree = true; };
2024-07-30 22:56:44 +02:00
in {
nixosConfigurations = {
computer-mo = nixpkgs.lib.nixosSystem {
inherit system;
2024-07-31 20:22:31 +02:00
modules = [
./configuration.nix
jovian.nixosModules.default
];
2024-07-30 22:56:44 +02:00
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
};
};
};
};
}