65 lines
1.6 KiB
Nix
65 lines
1.6 KiB
Nix
{
|
|
description = "Ray's Nix Config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
disko.url = "github:nix-community/disko";
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
|
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
|
|
ghostty.url = "github:ghostty-org/ghostty";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
} @ inputs: let
|
|
inherit (self) outputs;
|
|
system = "x86_64-linux";
|
|
dots = "/home/rayandrew/dotfiles";
|
|
user = "rayandrew";
|
|
pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
lib = nixpkgs.lib;
|
|
createCommonArgs = system: {
|
|
inherit
|
|
self
|
|
inputs
|
|
nixpkgs
|
|
lib
|
|
pkgs
|
|
system
|
|
dots
|
|
;
|
|
specialArgs = {
|
|
inherit self inputs;
|
|
};
|
|
};
|
|
commonArgs = createCommonArgs system;
|
|
in {
|
|
nixosConfigurations = import ./hosts commonArgs;
|
|
# nixosConfigurations = {
|
|
# pickwick = nixpkgs.lib.nixosSystem {
|
|
# specialArgs = {inherit inputs outputs system dots user;};
|
|
# modules = [
|
|
# ./nixos
|
|
# # ./nixos/configuration.nix
|
|
# ./hosts/pickwick
|
|
# inputs.disko.nixosModules.default
|
|
# inputs.home-manager.nixosModules.home-manager
|
|
# (nixpkgs.lib.mkAliasOptionModule [ "hm" ] [
|
|
# "home-manager"
|
|
# "users"
|
|
# user
|
|
# ])
|
|
# ];
|
|
# };
|
|
# };
|
|
};
|
|
}
|