59 lines
1.7 KiB
Nix
59 lines
1.7 KiB
Nix
{
|
|
description = "kenryuS nixos configurations/dotfiles";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
homix.url = "github:sioodmy/homix/main";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, homix, ... }:
|
|
let
|
|
systemSettings = {
|
|
system = "x86_64-linux";
|
|
hostname = "kenryu-nixos";
|
|
host = "syushiki";
|
|
timezone = "Asia/Tokyo";
|
|
locale = "ja_JP.UTF-8";
|
|
};
|
|
|
|
userSettings = {
|
|
username = "kenryus";
|
|
name = "Kenryu Shibata";
|
|
email-dev = "kenryudev5894@gmail.com";
|
|
dotfilesDir = "/etc/nixos";
|
|
};
|
|
|
|
pkgs = import inputs.nixpkgs {
|
|
system = systemSettings.system;
|
|
};
|
|
|
|
lib = inputs.nixpkgs.lib;
|
|
in {
|
|
nixosModules = {
|
|
homix = homix.nixosModules.default;
|
|
};
|
|
nixosConfigurations = import ./hosts inputs;
|
|
#nixosConfigurations.syushiki = lib.nixosSystem {
|
|
# system = systemSettings.system;
|
|
# modules = [
|
|
# ./hosts/syushiki
|
|
# ./overlays
|
|
# home-manager.nixosModules.home-manager {
|
|
# home-manager.useGlobalPkgs = true;
|
|
# home-manager.useUserPackages = true;
|
|
# home-manager.users.${userSettings.username} = import (./. + "/hosts/${systemSettings.host}/home.nix");
|
|
# home-manager.extraSpecialArgs = {
|
|
# inherit userSettings;
|
|
# };
|
|
# }
|
|
# ];
|
|
# specialArgs = {
|
|
# inherit inputs systemSettings userSettings;
|
|
# };
|
|
#};
|
|
};
|
|
}
|