This commit is contained in:
2023-02-28 03:34:52 +00:00
parent ce1eb1d0e0
commit 06da209722
9 changed files with 254 additions and 32 deletions

View File

@@ -29,21 +29,34 @@
# homeage = {url = "github:jordanisaacs/homeage"; inputs.nixpkgs.follows = "nixpkgs";};
# Nix Library Functions
# library = {
# type = "github";
# owner = "nix-community";
# repo = "nixpkgs.lib";
# ref = "master";
# rev = "af5239f892ae6e1c8bb560b11ed874cebbd10696";
# };
library = {
type = "github";
owner = "nix-community";
repo = "nixpkgs.lib";
ref = "master";
rev = "af5239f892ae6e1c8bb560b11ed874cebbd10696";
};
# Source Filter Functions
filter.url = "github:numtide/nix-filter";
ignore = {
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Flake Utility Functions
utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
outputs = { self, nixpkgs, home-manager,library, ignore, filter,... }@inputs:
let
inherit (self) outputs;
forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
platforms = ["x86_64-linux"];
forEachPkgs = f: forEachSystem (sys: f nixpkgs.legacyPackages.${sys});
in
rec {
packages = forEachPkgs (pkgs: import ./pkgs { inherit pkgs; });
@@ -51,7 +64,8 @@
overlays = import ./overlays { inherit inputs; };
nixosModules = import ./modules/nixos;
homeManagerModules = import ./modules/home-manager;
# util = import ./lib/map.nix;
util = import ./lib/map.nix;
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
@@ -77,7 +91,7 @@
# FIXME replace with your username@hostname
"sstent@Go3" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs; };
extraSpecialArgs = { inherit inputs outputs; hostName = "Go3"; };
modules = [
# > Our main home-manager configuration file <
./home-manager/users/sstent