-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
71 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,48 @@ | ||
{ | ||
description = "Consequence of allowing autistic people on the internet. Stay mad one-proper-config-structure purists :3"; | ||
|
||
outputs = {nixpkgs, ...} @ inputs: let | ||
pkgs = nixpkgs.legacyPackages.x86_64-linux; | ||
theme = import ./theme; | ||
user = import ./user { | ||
inherit pkgs theme; | ||
}; | ||
in { | ||
nixosConfigurations = import ./hosts inputs; | ||
nixosModules = | ||
{ | ||
# This module is not meant to be imported by anyone but me | ||
# it's just so I can easily avoid ../../../../../ mess | ||
system = import ./system; | ||
outputs = inputs @ {flake-parts, ...}: | ||
flake-parts.lib.mkFlake {inherit inputs;} { | ||
flake = { | ||
nixosModules = | ||
{ | ||
# This module is not meant to be imported by anyone but me | ||
# it's just so I can easily avoid ../../../../../ mess | ||
system = import ./system; | ||
|
||
user = user.module; | ||
user = let | ||
theme = import ./theme; | ||
user = import ./user {inherit theme;}; | ||
in | ||
user.module; | ||
|
||
# place for my home brew modules | ||
} | ||
// import ./modules; | ||
# place for my home brew modules | ||
} | ||
// import ./modules; | ||
nixosConfigurations = import ./hosts inputs; | ||
}; | ||
systems = [ | ||
"x86_64-linux" | ||
"aarch64-linux" | ||
]; | ||
perSystem = {pkgs, ...}: let | ||
theme = import ./theme; | ||
user = import ./user { | ||
inherit pkgs theme; | ||
}; | ||
in { | ||
formatter = pkgs.alejandra; | ||
packages = user.packages; | ||
devShells.default = user.shell; | ||
}; | ||
}; | ||
|
||
inherit theme; | ||
packages.x86_64-linux = user.packages; | ||
formatter.x86_64-linux = pkgs.alejandra; | ||
devShells.x86_64-linux.default = user.shell; | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
apple-silicon-support = { | ||
url = "github:tpwrules/nixos-apple-silicon"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
}; | ||
|
||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
} |