add bonfire
This commit is contained in:
parent
3d8c771d32
commit
5ab8041353
34
flake.nix
34
flake.nix
|
@ -5,19 +5,12 @@
|
|||
# Nixpkgs
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
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
|
||||
forAllSystems = nixpkgs.lib.genAttrs [
|
||||
"aarch64-linux"
|
||||
|
@ -26,7 +19,8 @@
|
|||
"aarch64-darwin"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
in rec {
|
||||
in
|
||||
rec {
|
||||
# Your custom packages and modifications
|
||||
overlays = {
|
||||
default = import ./overlay { inherit inputs; };
|
||||
|
@ -35,9 +29,6 @@
|
|||
# Reusable nixos modules you might want to export
|
||||
# These are usually stuff you would upstream into nixpkgs
|
||||
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
|
||||
# Acessible through 'nix develop' or 'nix-shell' (legacy)
|
||||
|
@ -64,7 +55,7 @@
|
|||
|
||||
nixosConfigurations = {
|
||||
# FIXME replace with your hostname
|
||||
your-hostname = nixpkgs.lib.nixosSystem {
|
||||
sincerity = nixpkgs.lib.nixosSystem {
|
||||
pkgs = legacyPackages.x86_64-linux;
|
||||
specialArgs = { inherit inputs; }; # Pass flake inputs to our config
|
||||
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