Compare commits

..

No commits in common. "8ffa090603415473cf8eb5182d1624c768bf8947" and "febc1dbc54aadd9a76d493192034a6205daec32a" have entirely different histories.

3 changed files with 65 additions and 26 deletions

View File

@ -3,35 +3,74 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
neovim-overlay = { url = "github:nix-community/neovim-nightly-overlay"; inputs.nixpkgs.follows = "nixpkgs"; };
home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; };
sops-nix = { url = "github:mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; };
dunst-theme = { url = "github:d2718nis/rose-pine-dunst"; flake = false; };
neovim-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
fish_theme = {
url = "git+https://git.zynh.me/Zynh0722/omf-theme";
flake = false;
};
backgrounds = {
url = "git+https://git.zynh.me/Zynh0722/backgrounds";
inputs.nixpkgs.follows = "nixpkgs";
};
dunst-theme = {
url = "github:d2718nis/rose-pine-dunst";
flake = false;
};
repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone";
fish_theme = { url = "git+https://git.zynh.me/Zynh0722/omf-theme"; flake = false; };
backgrounds = { url = "git+https://git.zynh.me/Zynh0722/backgrounds"; inputs.nixpkgs.follows = "nixpkgs"; };
};
outputs =
{ self, nixpkgs, ... }@inputs:
let
builders = import ./builders.nix inputs;
builders = import ./lib/builders.nix inputs;
in
{
nixosConfigurations = builders.compileSystems [
{ hostname = "snowhawk"; }
];
nixosConfigurations =
builders.compileSystems
[
{
hostname = "snowhawk";
system = "x86_64-linux";
}
];
homeConfigurations = builders.compileHomes [
{ user = "zynh"; hostname = "msiserver"; }
{ user = "val"; hostname = "caveserver"; }
{
user = "zynh";
hostname = "little-lightning";
system = "aarch64-darwin";
}
];
homeConfigurations =
builders.compileHomes
[
{
user = "zynh";
hostname = "msiserver";
system = "x86_64-linux";
}
{
user = "val";
hostname = "caveserver";
system = "x86_64-linux";
}
{
user = "zynh";
hostname = "little-lightning";
system = "aarch64-darwin";
}
];
overlays.default = import ./pkgs;
};

View File

@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, self, ... }:
let
getModules = path:

View File

@ -8,7 +8,7 @@ let
overlays = [ self.overlays.default ];
});
lib = nixpkgs.lib.extend (import ./lib);
lib = nixpkgs.lib.extend (import ../lib);
inherit (inputs.home-manager.lib) homeManagerConfiguration;
inherit (lib) nixosSystem;
@ -17,7 +17,7 @@ let
in
rec {
toPartialNixosConfig =
{ hostname, system ? "x86_64-linux" }:
{ hostname, system }:
nameValuePair
hostname
(nixosSystem rec {
@ -25,8 +25,8 @@ rec {
specialArgs = { inherit inputs self; };
modules = [
./hosts/${hostname}/hardware-configuration.nix
./hosts/${hostname}/configuration.nix
../hosts/${hostname}/hardware-configuration.nix
../hosts/${hostname}/configuration.nix
inputs.home-manager.nixosModules.default
{
home-manager.extraSpecialArgs = {
@ -44,7 +44,7 @@ rec {
systems;
toPartialHomeManagerConfig =
{ user, system ? "x86_64-linux", hostname ? "", configHostname ? "" }:
{ user, system, hostname ? "", configHostname ? "" }:
let
configHost = if builtins.stringLength configHostname > 0 then configHostname else hostname;
hostStr = optionalString (builtins.stringLength hostname > 0) "@${hostname}";
@ -57,7 +57,7 @@ rec {
extraSpecialArgs = { inherit inputs self; };
modules = [
./hosts/${configHost}/home.nix
../hosts/${configHost}/home.nix
];
});
compileHomes =