add bonfire
This commit is contained in:
parent
3d8c771d32
commit
5ab8041353
34
flake.nix
34
flake.nix
|
@ -5,19 +5,12 @@
|
||||||
# Nixpkgs
|
# Nixpkgs
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
hardware.url = "github:nixos/nixos-hardware";
|
hardware.url = "github:nixos/nixos-hardware";
|
||||||
|
bonfire.url = "github:bonfire-networks/bonfire-app";
|
||||||
|
bonfire.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
# Home manager
|
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
|
|
||||||
# TODO: Add any other flake you might need
|
|
||||||
|
|
||||||
# Shameless plug: looking for a way to nixify your themes and make
|
|
||||||
# everything match nicely? Try nix-colors!
|
|
||||||
# nix-colors.url = "github:misterio77/nix-colors";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@inputs:
|
outputs = { nixpkgs, bonfire, ... }@inputs:
|
||||||
let
|
let
|
||||||
forAllSystems = nixpkgs.lib.genAttrs [
|
forAllSystems = nixpkgs.lib.genAttrs [
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
|
@ -26,7 +19,8 @@
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
];
|
];
|
||||||
in rec {
|
in
|
||||||
|
rec {
|
||||||
# Your custom packages and modifications
|
# Your custom packages and modifications
|
||||||
overlays = {
|
overlays = {
|
||||||
default = import ./overlay { inherit inputs; };
|
default = import ./overlay { inherit inputs; };
|
||||||
|
@ -35,9 +29,6 @@
|
||||||
# Reusable nixos modules you might want to export
|
# Reusable nixos modules you might want to export
|
||||||
# These are usually stuff you would upstream into nixpkgs
|
# These are usually stuff you would upstream into nixpkgs
|
||||||
nixosModules = import ./modules/nixos;
|
nixosModules = import ./modules/nixos;
|
||||||
# Reusable home-manager modules you might want to export
|
|
||||||
# These are usually stuff you would upstream into home-manager
|
|
||||||
homeManagerModules = import ./modules/home-manager;
|
|
||||||
|
|
||||||
# Devshell for bootstrapping
|
# Devshell for bootstrapping
|
||||||
# Acessible through 'nix develop' or 'nix-shell' (legacy)
|
# Acessible through 'nix develop' or 'nix-shell' (legacy)
|
||||||
|
@ -64,7 +55,7 @@
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# FIXME replace with your hostname
|
# FIXME replace with your hostname
|
||||||
your-hostname = nixpkgs.lib.nixosSystem {
|
sincerity = nixpkgs.lib.nixosSystem {
|
||||||
pkgs = legacyPackages.x86_64-linux;
|
pkgs = legacyPackages.x86_64-linux;
|
||||||
specialArgs = { inherit inputs; }; # Pass flake inputs to our config
|
specialArgs = { inherit inputs; }; # Pass flake inputs to our config
|
||||||
modules = (builtins.attrValues nixosModules) ++ [
|
modules = (builtins.attrValues nixosModules) ++ [
|
||||||
|
@ -73,18 +64,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
homeConfigurations = {
|
|
||||||
# FIXME replace with your username@hostname
|
|
||||||
"your-username@your-hostname" =
|
|
||||||
home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = legacyPackages.x86_64-linux;
|
|
||||||
extraSpecialArgs = { inherit inputs; }; # Pass flake inputs to our config
|
|
||||||
modules = (builtins.attrValues homeManagerModules) ++ [
|
|
||||||
# > Our main home-manager configuration file <
|
|
||||||
./home-manager/home.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue