2022-10-08 15:40:33 -07:00
|
|
|
{
|
|
|
|
description = "Nick's Nix Flake";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
|
|
url = github:nix-community/home-manager;
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-10-08 18:52:26 -07:00
|
|
|
|
|
|
|
kmonad.url = "github:kmonad/kmonad?dir=nix";
|
2022-10-08 15:40:33 -07:00
|
|
|
};
|
|
|
|
|
2022-10-08 18:52:26 -07:00
|
|
|
outputs = { self, nixpkgs, home-manager, kmonad }:
|
2022-10-08 15:40:33 -07:00
|
|
|
let
|
|
|
|
user = "nixolas";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
|
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
|
|
|
laptop = lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
specialArgs = { inherit user; };
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
2022-10-08 18:52:26 -07:00
|
|
|
kmonad.nixosModules.default
|
2022-10-08 15:40:33 -07:00
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.${user} = {
|
|
|
|
imports = [
|
|
|
|
./home.nix
|
2022-10-09 15:15:30 -07:00
|
|
|
./modules/zsh.nix
|
|
|
|
./modules/urxvt.nix
|
2022-10-09 21:31:30 -07:00
|
|
|
./modules/vim.nix
|
2022-10-08 15:40:33 -07:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|