summaryrefslogtreecommitdiff
path: root/hosts/akashi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/akashi/default.nix')
-rw-r--r--hosts/akashi/default.nix54
1 files changed, 41 insertions, 13 deletions
diff --git a/hosts/akashi/default.nix b/hosts/akashi/default.nix
index caa1543..f3cd12a 100644
--- a/hosts/akashi/default.nix
+++ b/hosts/akashi/default.nix
@@ -1,20 +1,48 @@
{
+ lib,
+ inputs,
+ kansaiPkgs,
+ pcModules,
self,
+ outputs,
+ secrets,
...
}:
{
- imports = [
- ./hardware-configuration.nix
- "${self}/modules/core"
- "${self}/modules/laptop"
- "${self}/modules/options"
- "${self}/modules/pc"
- ];
+ flake.nixosConfigurations.akashi =
+ let
+ pkgs =
+ (kansaiPkgs {
+ nixpkgsAllowUnfree = true;
+ })."x86_64-linux";
+ in
+ lib.nixosSystem {
+ inherit pkgs;
- config = {
- modules.nix.extend = false;
- system.stateVersion = "24.05";
- networking.hostName = "akashi";
- services.openssh.settings.PermitRootLogin = "yes";
- };
+ modules = [
+ ./configuration.nix
+ ./hardware-configuration.nix
+ inputs.home-manager.nixosModules.home-manager
+ {
+ home-manager = {
+ useGlobalPkgs = true;
+ useUserPackages = true;
+ users.ebisu = import "${self}/home/ebisu/core";
+
+ extraSpecialArgs = {
+ inherit inputs;
+ };
+ };
+ }
+ ] ++ pcModules pkgs.system;
+
+ specialArgs = {
+ inherit
+ inputs
+ outputs
+ secrets
+ self
+ ;
+ };
+ };
}