mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Sort inputs
This commit is contained in:
parent
0f43327044
commit
ad890e53fe
1 changed files with 28 additions and 27 deletions
55
flake.nix
55
flake.nix
|
|
@ -6,6 +6,23 @@
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/release-23.11";
|
nixpkgs.url = "github:nixos/nixpkgs/release-23.11";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
|
|
||||||
|
compose2nix = {
|
||||||
|
url = "github:aksiksi/compose2nix";
|
||||||
|
inputs.nixpkgs.follows ="nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Format disks with nix-config
|
||||||
|
disko = {
|
||||||
|
url = "github:nix-community/disko";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
# My oh-my-posh theme
|
||||||
|
genebean-omp-themes = {
|
||||||
|
url = "github:genebean/my-oh-my-posh-themes";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Manages things in home directory
|
# Manages things in home directory
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-23.11";
|
url = "github:nix-community/home-manager/release-23.11";
|
||||||
|
|
@ -18,16 +35,16 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Manage Homebrew itself
|
|
||||||
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
|
|
||||||
|
|
||||||
# Manage flatpaks
|
# Manage flatpaks
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak"; # unstable branch. Use github:gmodena/nix-flatpak/?ref=<tag> to pin releases.
|
nix-flatpak.url = "github:gmodena/nix-flatpak"; # unstable branch. Use github:gmodena/nix-flatpak/?ref=<tag> to pin releases.
|
||||||
|
|
||||||
# Format disks with nix-config
|
# Manage Homebrew itself
|
||||||
disko = {
|
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
|
||||||
url = "github:nix-community/disko";
|
|
||||||
|
nixpkgs-terraform = {
|
||||||
|
url = "github:stackbuilders/nixpkgs-terraform";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.nixpkgs-unstable.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Secrets managemnt
|
# Secrets managemnt
|
||||||
|
|
@ -36,26 +53,10 @@
|
||||||
inputs.nixpkgs.follows ="nixpkgs";
|
inputs.nixpkgs.follows ="nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs-terraform = {
|
|
||||||
url = "github:stackbuilders/nixpkgs-terraform";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.nixpkgs-unstable.follows = "nixpkgs-unstable";
|
|
||||||
};
|
|
||||||
|
|
||||||
compose2nix = {
|
|
||||||
url = "github:aksiksi/compose2nix";
|
|
||||||
inputs.nixpkgs.follows ="nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# My oh-my-posh theme
|
|
||||||
genebean-omp-themes = {
|
|
||||||
url = "github:genebean/my-oh-my-posh-themes";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
}; # end inputs
|
}; # end inputs
|
||||||
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nix-darwin, home-manager, nix-homebrew, nix-flatpak, disko, sops-nix, nixpkgs-terraform, compose2nix, genebean-omp-themes, ... }: let
|
outputs = inputs@{
|
||||||
|
self, nixpkgs, nixpkgs-unstable, compose2nix, disko, genebean-omp-themes,
|
||||||
|
home-manager, nix-darwin, nix-flatpak, nix-homebrew, nixpkgs-terraform, sops-nix, ... }: let
|
||||||
|
|
||||||
# creates a macOS system config
|
# creates a macOS system config
|
||||||
darwinHostConfig = system: hostname: username: nix-darwin.lib.darwinSystem {
|
darwinHostConfig = system: hostname: username: nix-darwin.lib.darwinSystem {
|
||||||
|
|
@ -67,7 +68,7 @@
|
||||||
};
|
};
|
||||||
overlays = [ nixpkgs-terraform.overlays.default ];
|
overlays = [ nixpkgs-terraform.overlays.default ];
|
||||||
};
|
};
|
||||||
specialArgs = { inherit inputs username hostname; };
|
specialArgs = { inherit inputs hostname username; };
|
||||||
modules = [
|
modules = [
|
||||||
nix-homebrew.darwinModules.nix-homebrew {
|
nix-homebrew.darwinModules.nix-homebrew {
|
||||||
nix-homebrew = {
|
nix-homebrew = {
|
||||||
|
|
@ -96,7 +97,7 @@
|
||||||
|
|
||||||
# creates a nixos system config
|
# creates a nixos system config
|
||||||
nixosHostConfig = system: hostname: username: nixpkgs.lib.nixosSystem {
|
nixosHostConfig = system: hostname: username: nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs username hostname compose2nix;
|
specialArgs = { inherit inputs compose2nix hostname username;
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config = {
|
config = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue