Compare commits
5 Commits
febc1dbc54
...
8ffa090603
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | 8ffa090603 | |
Zynh Ludwig | a705681094 | |
Zynh Ludwig | b0572534d9 | |
Zynh Ludwig | 19423844ad | |
Zynh Ludwig | 7dc7823cff |
|
@ -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 }:
|
||||
{ hostname, system ? "x86_64-linux" }:
|
||||
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, hostname ? "", configHostname ? "" }:
|
||||
{ user, system ? "x86_64-linux", 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 =
|
63
flake.nix
63
flake.nix
|
@ -3,68 +3,29 @@
|
|||
|
||||
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";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
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; };
|
||||
|
||||
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 ./lib/builders.nix inputs;
|
||||
builders = import ./builders.nix inputs;
|
||||
in
|
||||
{
|
||||
nixosConfigurations =
|
||||
builders.compileSystems
|
||||
[
|
||||
{
|
||||
hostname = "snowhawk";
|
||||
system = "x86_64-linux";
|
||||
}
|
||||
nixosConfigurations = builders.compileSystems [
|
||||
{ hostname = "snowhawk"; }
|
||||
];
|
||||
|
||||
homeConfigurations =
|
||||
builders.compileHomes
|
||||
[
|
||||
{
|
||||
user = "zynh";
|
||||
hostname = "msiserver";
|
||||
system = "x86_64-linux";
|
||||
}
|
||||
{
|
||||
user = "val";
|
||||
hostname = "caveserver";
|
||||
system = "x86_64-linux";
|
||||
}
|
||||
homeConfigurations = builders.compileHomes [
|
||||
{ user = "zynh"; hostname = "msiserver"; }
|
||||
{ user = "val"; hostname = "caveserver"; }
|
||||
{
|
||||
user = "zynh";
|
||||
hostname = "little-lightning";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, self, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
getModules = path:
|
||||
|
|
Loading…
Reference in New Issue