summaryrefslogtreecommitdiff
path: root/hosts/himeji/default.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-03 02:14:14 -0700
committerFuwn <[email protected]>2024-10-03 02:14:14 -0700
commit6b51e66a04243bc24b0dba5030a8de121bcebca4 (patch)
tree00ab61f775abf501ffb27eba8c73fef6216443e3 /hosts/himeji/default.nix
parentakashi: configure home manager packages (diff)
downloadnixos-config-6b51e66a04243bc24b0dba5030a8de121bcebca4.tar.xz
nixos-config-6b51e66a04243bc24b0dba5030a8de121bcebca4.zip
hosts: move hosts to unique modules
Diffstat (limited to 'hosts/himeji/default.nix')
-rw-r--r--hosts/himeji/default.nix52
1 files changed, 29 insertions, 23 deletions
diff --git a/hosts/himeji/default.nix b/hosts/himeji/default.nix
index 0d5fc9e..dfdf9f0 100644
--- a/hosts/himeji/default.nix
+++ b/hosts/himeji/default.nix
@@ -1,28 +1,34 @@
-{ self, ... }:
{
- imports = [
- ./hardware-configuration.nix
- "${self}/disks/himeji.nix"
- "${self}/modules/core"
- "${self}/modules/options"
- "${self}/modules/server"
- ];
-
- config = {
- networking.hostName = "himeji";
- system.stateVersion = "24.05";
-
- modules = {
- nix.extend = false;
-
- containers = {
- engine = "podman";
+ lib,
+ inputs,
+ kansaiPkgs,
+ defaultModules,
+ self,
+ outputs,
+ secrets,
+ ...
+}:
+{
+ flake.nixosConfigurations.himeji = lib.nixosSystem {
+ pkgs =
+ (kansaiPkgs
+ {
+ }
+ )."x86_64-linux";
- extraOptions = [
- "--restart=on-failure"
- "--pull=newer"
- ];
- };
+ specialArgs = {
+ inherit
+ inputs
+ outputs
+ secrets
+ self
+ ;
};
+
+ modules = [
+ ./configuration.nix
+ ./hardware-configuration.nix
+ inputs.disko.nixosModules.disko
+ ] ++ defaultModules;
};
}