2022-10-08 15:40:33 -07:00
|
|
|
{
|
2022-11-08 19:08:54 -08:00
|
|
|
description = "Nick's NixOS Configuration";
|
2022-10-08 15:40:33 -07:00
|
|
|
|
|
|
|
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";
|
2023-02-16 11:28:00 -08:00
|
|
|
|
2022-10-08 15:40:33 -07:00
|
|
|
};
|
|
|
|
|
2023-01-31 17:52:10 -08:00
|
|
|
outputs = inputs@{ self, nixpkgs, home-manager, kmonad }:
|
2022-10-08 15:40:33 -07:00
|
|
|
let
|
|
|
|
user = "nixolas";
|
2023-02-16 11:28:00 -08:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2023-02-16 11:47:00 -08:00
|
|
|
lib = nixpkgs.lib;
|
2022-10-08 15:40:33 -07:00
|
|
|
in {
|
2023-02-16 11:28:00 -08:00
|
|
|
nixosConfigurations = {
|
2022-11-08 19:08:54 -08:00
|
|
|
inherit (nixpkgs) lib;
|
2023-01-31 17:52:10 -08:00
|
|
|
inherit inputs nixpkgs home-manager user kmonad ;
|
2023-02-16 11:28:00 -08:00
|
|
|
|
2023-02-16 11:47:00 -08:00
|
|
|
NicksNixLaptop = lib.nixosSystem {
|
2023-02-16 11:28:00 -08:00
|
|
|
inherit system;
|
|
|
|
specialArgs = inputs;
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
networking.hostName = "NicksNixLaptop";
|
|
|
|
}
|
|
|
|
kmonad.nixosModules.default
|
|
|
|
./hosts/laptop
|
|
|
|
./hosts/configuration.nix
|
|
|
|
./modules/kmonad.nix
|
2023-02-16 11:47:00 -08:00
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
extraSpecialArgs = { inherit user; };
|
|
|
|
users.${user} = import ./users/${user}.nix;
|
|
|
|
users.nicholix = import ./users/nicholix.nix;
|
|
|
|
};
|
|
|
|
}
|
2023-02-16 11:28:00 -08:00
|
|
|
];
|
2023-02-16 11:47:00 -08:00
|
|
|
};
|
2022-10-08 15:40:33 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|