flake migration (again)
This commit is contained in:
44
flake.nix
Normal file
44
flake.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
lib = nixpkgs.lib // home-manager.lib;
|
||||
system = "x86_64-linux";
|
||||
makePkgs = repo:
|
||||
import repo {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
pkgs = makePkgs nixpkgs;
|
||||
pkgsU = makePkgs nixpkgs-unstable;
|
||||
in {
|
||||
inherit lib pkgs;
|
||||
formatter = pkgs.alejandra;
|
||||
nixosConfigurations = {
|
||||
workstation = lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./hosts/workstation/configuration.nix
|
||||
({ pkgs, ... }: {
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
planify = pkgsU.planify;
|
||||
gdtoolkit = pkgsU.gdtoolkit;
|
||||
})
|
||||
];
|
||||
})
|
||||
];
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user