nicks-nix-config/flake.nix
2023-02-16 11:28:00 -08:00

44 lines
1 KiB
Nix

{
description = "Nick's NixOS Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
kmonad.url = "github:kmonad/kmonad?dir=nix";
};
outputs = inputs@{ self, nixpkgs, home-manager, kmonad }:
let
user = "nixolas";
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
nixosConfigurations = {
inherit (nixpkgs) lib;
inherit inputs nixpkgs home-manager user kmonad ;
NicksNixLaptop = {
inherit system;
specialArgs = inputs;
modules = [
{
networking.hostName = "NicksNixLaptop";
}
kmonad.nixosModules.default
./hosts/laptop
./hosts/configuration.nix
./modules/kmonad.nix
./hosts/laptop/home.nix
];
}
};
};
}