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 | |
| parent | hosts: initialise simple kioku configuration (diff) | |
| download | nixos-config-1124ccd4ccf26f887b26f4504d4a03ec46c3d637.tar.xz nixos-config-1124ccd4ccf26f887b26f4504d4a03ec46c3d637.zip | |
lock: tsutsumi
| -rw-r--r-- | flake.lock | 6 | ||||
| -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 | ||||
| -rw-r--r-- | modules/core/nix/default.nix | 5 |
5 files changed, 45 insertions, 33 deletions
@@ -1909,11 +1909,11 @@ ] }, "locked": { - "lastModified": 1729664438, - "narHash": "sha256-xg5YCQ/V6x8AYKc/DW4D+fN+oz+ib5LEujTd1PqMLoM=", + "lastModified": 1730053074, + "narHash": "sha256-1MmJaKXR9lywjw1/BLsx8nOrB+zRHAWlvKmXxXg5AP4=", "owner": "Fuwn", "repo": "tsutsumi", - "rev": "689c0873b41b1140c3ee5270ababdd2e5a34093c", + "rev": "41589b4e22807d28867138e59d8ae783abec5987", "type": "github" }, "original": { 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 = { }; + }; }; }; } diff --git a/modules/core/nix/default.nix b/modules/core/nix/default.nix index aac1b84..f1919f0 100644 --- a/modules/core/nix/default.nix +++ b/modules/core/nix/default.nix @@ -47,8 +47,7 @@ "@wheel" ]; - substituters = [ - "https://cache.nixos.org/" + extra-substituters = [ "https://nix-community.cachix.org" "https://hyprland.cachix.org" "https://nyx.chaotic.cx/" @@ -63,7 +62,7 @@ "https://devenv.cachix.org" ]; - trusted-public-keys = [ + extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8=" |