diff options
| author | Fuwn <[email protected]> | 2024-10-27 15:52:29 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-27 15:52:29 -0700 |
| commit | 1124ccd4ccf26f887b26f4504d4a03ec46c3d637 (patch) | |
| tree | 1946ee3d1e9ec8b8126fdbeee427151bcde635d8 /hosts/kioku | |
| parent | hosts: initialise simple kioku configuration (diff) | |
| download | nixos-config-1124ccd4ccf26f887b26f4504d4a03ec46c3d637.tar.xz nixos-config-1124ccd4ccf26f887b26f4504d4a03ec46c3d637.zip | |
lock: tsutsumi
Diffstat (limited to 'hosts/kioku')
| -rw-r--r-- | hosts/kioku/configuration.nix | 12 | ||||
| -rw-r--r-- | hosts/kioku/default.nix | 42 | ||||
| -rw-r--r-- | hosts/kioku/hardware-configuration.nix | 13 |
3 files changed, 40 insertions, 27 deletions
diff --git a/hosts/kioku/configuration.nix b/hosts/kioku/configuration.nix index 31f18eb..38e3640 100644 --- a/hosts/kioku/configuration.nix +++ b/hosts/kioku/configuration.nix @@ -1,8 +1,18 @@ -{ pkgs, secrets, ... }: +{ + pkgs, + secrets, + ... +}: { time.timeZone = secrets.i18n.timezone; environment.systemPackages = [ pkgs.fastfetch ]; system.stateVersion = "24.05"; + raspberry-pi-nix.kernel-version = "v6_10_12"; + + boot.kernelModules = [ + "i2c-dev" + "dwc2" + ]; users.users.root = { initialHashedPassword = secrets.initial_hashed_password; diff --git a/hosts/kioku/default.nix b/hosts/kioku/default.nix index 88cacb9..1e37f68 100644 --- a/hosts/kioku/default.nix +++ b/hosts/kioku/default.nix @@ -7,30 +7,26 @@ lib, }: { - flake.nixosConfigurations.kioku = - let - pkgs = - (kansaiPkgs - { - } - )."aarch64-linux"; - in - lib.nixosSystem { - inherit pkgs; + flake.nixosConfigurations.kioku = lib.nixosSystem { + pkgs = + (kansaiPkgs + { + } + )."aarch64-linux"; - modules = [ - inputs.raspberry-pi-nix.nixosModules.raspberry-pi - ./configuration.nix - ./hardware-configuration.nix - ]; + modules = [ + inputs.raspberry-pi-nix.nixosModules.raspberry-pi + ./configuration.nix + ./hardware-configuration.nix + ]; - specialArgs = { - inherit - inputs - outputs - secrets - self - ; - }; + specialArgs = { + inherit + inputs + outputs + secrets + self + ; }; + }; } diff --git a/hosts/kioku/hardware-configuration.nix b/hosts/kioku/hardware-configuration.nix index 95154e1..796cee0 100644 --- a/hosts/kioku/hardware-configuration.nix +++ b/hosts/kioku/hardware-configuration.nix @@ -14,9 +14,16 @@ }; }; - dt-overlays.disable-bt = { - enable = true; - params = { }; + dt-overlays = { + disable-bt = { + enable = true; + params = { }; + }; + + dwc2 = { + enable = true; + params = { }; + }; }; }; } |