first phase of flake conversion
This commit is contained in:
parent
1b47e24cb0
commit
2ea78bdd47
53 changed files with 491 additions and 50 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "master home systems config";
|
||||
description = "nixos config";
|
||||
|
||||
inputs = {
|
||||
|
||||
|
@ -10,11 +10,17 @@
|
|||
inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
eww = {
|
||||
url = "github:elkowar/eww";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.rust-overlay.follows = "rust-overlay";
|
||||
};
|
||||
# eww = {
|
||||
# url = "github:elkowar/eww";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# inputs.rust-overlay.follows = "rust-overlay";
|
||||
# };
|
||||
|
||||
# rust-overlay = {
|
||||
# url = "github:oxalica/rust-overlay";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# inputs.flake-utils.follows = "flake-utils";
|
||||
# };
|
||||
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
|
@ -31,27 +37,77 @@
|
|||
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.flake-utils.follows = "flake-utils";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs = inputs@{ flake-parts, ... }:
|
||||
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
outputs = { self, nixpkgs, home-manager, eww, helix, hyprland, ... }@inputs:
|
||||
let
|
||||
|
||||
systems = ["x86_64-linux"];
|
||||
|
||||
imports = [
|
||||
|
||||
inherit (self) outputs:
|
||||
forAllSystems = nixpkgs.lib.genAttrs [
|
||||
"x86_64-linux"
|
||||
];
|
||||
|
||||
perSystem = {config, self', inputs', pkgs, system, ...}: {
|
||||
|
||||
in
|
||||
rec {
|
||||
|
||||
# custom packages
|
||||
syspkgs = forAllSystems (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
in import ./syspkgs { inherit pkgs; }
|
||||
);
|
||||
|
||||
homepkgs = forAllSystems (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
in import ./homepkgs { inherit pkgs; }
|
||||
);
|
||||
|
||||
# any overlays or modules we use
|
||||
# overlays = import ./overlays { inherit inputs; };
|
||||
# nixosModules = import ./modules/nixos;
|
||||
# homeModules = import ./modules/home;
|
||||
|
||||
nixosConfigurations = {
|
||||
|
||||
"quiver" = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
./system/configuration.nix
|
||||
./system/quiver.nix
|
||||
];
|
||||
};
|
||||
|
||||
"adrift" = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
./system/configuration.nix
|
||||
./system/adrift.nix
|
||||
]
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
|
||||
"bolt@quiver" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
./home/home.nix
|
||||
./home/bolt.nix
|
||||
];
|
||||
};
|
||||
|
||||
"plank@adrift" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
./home/home.nix
|
||||
./home/plank.nix
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue