add pochita
This commit is contained in:
parent
8de06d65c6
commit
837ce855ab
2 changed files with 221 additions and 0 deletions
13
flake.nix
13
flake.nix
|
|
@ -39,6 +39,8 @@
|
|||
agenix,
|
||||
osbm-nvim,
|
||||
home-manager,
|
||||
raspberry-pi-nix,
|
||||
nixos-hardware,
|
||||
...
|
||||
}: {
|
||||
nixosConfigurations = let
|
||||
|
|
@ -93,8 +95,19 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
pochita = nixpkgs.lib.nixosSystem rec {
|
||||
system = "aarch64-linux";
|
||||
modules = [
|
||||
./hosts/pochita/configuration.nix
|
||||
agenix.nixosModules.default
|
||||
raspberry-pi-nix.nixosModules.raspberry-pi
|
||||
nixos-hardware.nixosModules.raspberry-pi-5
|
||||
];
|
||||
};
|
||||
};
|
||||
homeConfigurations = {
|
||||
# doesnt work because my different systems have different stateVersions
|
||||
# i dont know how to get the stateVersion from the current host
|
||||
osbm = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
||||
modules = [./modules/home.nix];
|
||||
|
|
|
|||
208
hosts/pochita/configuration.nix
Normal file
208
hosts/pochita/configuration.nix
Normal file
|
|
@ -0,0 +1,208 @@
|
|||
# This is the SD image initial configuration
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
stateVersion = "25.05";
|
||||
in {
|
||||
|
||||
imports = [
|
||||
../../modules
|
||||
];
|
||||
|
||||
enableKDE = false;
|
||||
|
||||
blockYoutube = false;
|
||||
blockTwitter = false;
|
||||
|
||||
# Comment this line if you want a recent kernel, but
|
||||
# if it's not in the community cache the builder will compile it
|
||||
# boot.kernelPackages = lib.mkForce pkgs.linuxKernel.packages.linux_rpi4;
|
||||
# console = {
|
||||
# font = "Lat2-Terminus16";
|
||||
# keyMap = lib.mkForce "fr";
|
||||
# useXkbConfig = true; # use xkb.options in tty.
|
||||
# };
|
||||
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
# # Initial network configuration
|
||||
# networking = {
|
||||
# hostName = "pixos";
|
||||
# useDHCP = false;
|
||||
# interfaces = {
|
||||
# wlan0.useDHCP = false;
|
||||
# eth0.useDHCP = true;
|
||||
# };
|
||||
# };
|
||||
networking.networkmanager.ensureProfiles = {
|
||||
environmentFiles = [
|
||||
config.age.secrets.nm-secrets.path
|
||||
];
|
||||
|
||||
profiles = {
|
||||
House_Bayram = {
|
||||
connection = {
|
||||
id = "House_Bayram";
|
||||
type = "wifi";
|
||||
};
|
||||
ipv4 = {
|
||||
method = "auto";
|
||||
};
|
||||
ipv6 = {
|
||||
addr-gen-mode = "stable-privacy";
|
||||
method = "auto";
|
||||
};
|
||||
wifi = {
|
||||
mode = "infrastructure";
|
||||
ssid = "House_Bayram";
|
||||
};
|
||||
wifi-security = {
|
||||
key-mgmt = "wpa-psk";
|
||||
psk = "$HOME_WIFI";
|
||||
};
|
||||
};
|
||||
it_hurts_when_IP = {
|
||||
connection = {
|
||||
id = "it_hurts_when_IP";
|
||||
type = "ethernet";
|
||||
};
|
||||
ipv4 = {
|
||||
method = "auto";
|
||||
};
|
||||
ipv6 = {
|
||||
addr-gen-mode = "stable-privacy";
|
||||
method = "auto";
|
||||
};
|
||||
wifi = {
|
||||
mode = "infrastructure";
|
||||
ssid = "it_hurts_when_IP";
|
||||
};
|
||||
wifi-security = {
|
||||
key-mgmt = "wpa-psk";
|
||||
psk = "$HOME_WIFI";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
# # Some programs
|
||||
environment.systemPackages = with pkgs; [
|
||||
# vim
|
||||
# wget
|
||||
# git
|
||||
# htop
|
||||
];
|
||||
|
||||
# Experimental features must be activated
|
||||
# nix.settings = {
|
||||
# trusted-users = [ "@wheel" ];
|
||||
# experimental-features = [ "nix-command" "flakes" ];
|
||||
# keep-outputs = true;
|
||||
# keep-derivations = true;
|
||||
# };
|
||||
|
||||
|
||||
# The board and wanted kernel version
|
||||
raspberry-pi-nix = {
|
||||
board = "bcm2712";
|
||||
#kernel-version = "v6_10_12";
|
||||
};
|
||||
|
||||
# PI Hardware configuration
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
raspberry-pi = {
|
||||
config = {
|
||||
all = {
|
||||
base-dt-params = {
|
||||
BOOT_UART = {
|
||||
enable = false;
|
||||
value = 1;
|
||||
};
|
||||
uart_2ndstage = {
|
||||
enable = false;
|
||||
value = 1;
|
||||
};
|
||||
audio = {
|
||||
enable = true;
|
||||
value = "off";
|
||||
};
|
||||
sd_poll_once = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# NVME disk access
|
||||
#pciex1 = {
|
||||
# enable = true;
|
||||
#};
|
||||
#pciex1_gen = {
|
||||
# enable = true;
|
||||
# value = 3;
|
||||
#};
|
||||
#nvme = {
|
||||
# enable = true;
|
||||
#};
|
||||
|
||||
};
|
||||
dt-overlays = {
|
||||
vc4-kms-v3d-pi5 = {
|
||||
enable = true;
|
||||
params = { };
|
||||
};
|
||||
};
|
||||
options = {
|
||||
hdmi_blanking = {
|
||||
enable = true;
|
||||
value = 1;
|
||||
};
|
||||
disable_overscan = {
|
||||
enable = true;
|
||||
value = 1;
|
||||
};
|
||||
gpu_mem_256 = {
|
||||
enable = true;
|
||||
value = 76;
|
||||
};
|
||||
gpu_mem_512 = {
|
||||
enable = true;
|
||||
value = 76;
|
||||
};
|
||||
gpu_mem_1024 = {
|
||||
enable = true;
|
||||
value = 76;
|
||||
};
|
||||
disable_splash = {
|
||||
enable = true;
|
||||
value = 1;
|
||||
};
|
||||
temp_limit = {
|
||||
enable = true;
|
||||
value = 75;
|
||||
};
|
||||
initial_turbo = {
|
||||
enable = true;
|
||||
value = 20;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# You can put another features here, for example:
|
||||
#security.rtkit.enable = true;
|
||||
#services.pipewire = {
|
||||
# enable = true;
|
||||
# alsa.enable = true;
|
||||
# alsa.support32Bit = true;
|
||||
# pulse.enable = true;
|
||||
#};
|
||||
services.getty.autologinUser = "osbm";
|
||||
|
||||
# DO NOT TOUCH THIS
|
||||
system.stateVersion = stateVersion;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue