nixos/flake.nix
Greg Leyda beaf5202ca flakes
2022-07-09 11:27:58 -04:00

46 lines
1.1 KiB
Nix

{
description = "testing";
inputs = {
nixpkgs.url = "nixpkgs/master";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixkpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
packageOverrides = super: let self = super.pkgs; in {
nerdfonts-overpass = self.nerdfonts.override {
fonts = [ "Overpass" ];
};
};
};
};
lib = nixpkgs.lib;
in {
homeManagerConfiguration = {
gerg = home-manager.lib.homeManagerConfiguration {
inherit system pkgs;
username = "gerg";
homeDirectory = "/home/gerg";
configuration = {
imports = [
./home-manager.nix
];
};
};
};
nixosConfigurations = {
gerg-laptop = lib.nixosSystem {
inherit system pkgs;
modules = [
./configuration.nix
];
};
};
};
}