summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-27 15:52:29 -0700
committerFuwn <[email protected]>2024-10-27 15:52:29 -0700
commit1124ccd4ccf26f887b26f4504d4a03ec46c3d637 (patch)
tree1946ee3d1e9ec8b8126fdbeee427151bcde635d8
parenthosts: initialise simple kioku configuration (diff)
downloadnixos-config-1124ccd4ccf26f887b26f4504d4a03ec46c3d637.tar.xz
nixos-config-1124ccd4ccf26f887b26f4504d4a03ec46c3d637.zip
lock: tsutsumi
-rw-r--r--flake.lock6
-rw-r--r--hosts/kioku/configuration.nix12
-rw-r--r--hosts/kioku/default.nix42
-rw-r--r--hosts/kioku/hardware-configuration.nix13
-rw-r--r--modules/core/nix/default.nix5
5 files changed, 45 insertions, 33 deletions
diff --git a/flake.lock b/flake.lock
index 929d360..244e37e 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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="