36 lines
949 B
Nix
36 lines
949 B
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.11";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {...} @ inputs: let
|
|
# basic boilerplate-reducing lib with a bunch of functions
|
|
helperLib = import ./helperLib/default.nix {inherit inputs;};
|
|
stablepkgs = inputs.nixpkgs-stable;
|
|
in
|
|
with helperLib; {
|
|
nixosConfigurations = {
|
|
remus = mkSystem ./hosts/remus/configuration.nix;
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"prunebutt@remus" = mkHome "x86_64-linux" ./hosts/remus/home.nix;
|
|
};
|
|
|
|
homeManagerModules.default = ./modules/home;
|
|
nixosModules.default = ./modules/nixOS;
|
|
};
|
|
}
|