{ 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"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; }; outputs = inputs@{ self, nixpkgs, home-manager, ... }: let systemSettings = { system = "x86_64-linux"; hostname = "kenryu-nixos"; host = "syushiki"; timezone = "Asia/Tokyo"; locale = "ja_JP.UTF-8"; bootConf = { mode = "uefi"; mountPath = "/boot"; grubDev = ""; }; gpuType = "nvidia"; }; userSettings = { username = "kenryus"; name = "Kenryu Shibata"; email-dev = "kenryudev5894@gmail.com"; dotfilesDir = "/etc/nixos"; editor = "nvim"; editor-pkg = pkgs.neovim; }; pkgs = import inputs.nixpkgs { system = systemSettings.system; }; lib = inputs.nixpkgs.lib; in { #nixosModules = { # home-mngr = 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; # }; # }; #}; #nixosConfigurations = import ./hosts inputs { inherit systemSettings; inherit userSettings; }; nixosConfigurations.syushiki = lib.nixosSystem { system = systemSettings.system; modules = [ ./hosts/syushiki 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; }; }; }; }