argon40
This commit is contained in:
@@ -183,6 +183,8 @@
|
||||
|
||||
pi4-nixos-raspberrypi.url = "github:nvmd/nixos-raspberrypi";
|
||||
|
||||
pi4-argon40-nix.url = "github:guusvanmeerveld/argon40-nix";
|
||||
|
||||
pi4-disko = {
|
||||
# the fork is needed for partition attributes support
|
||||
url = "github:nvmd/disko/gpt-attrs";
|
||||
@@ -321,6 +323,7 @@
|
||||
pi4-nixos-hardware,
|
||||
pi4-nixos-raspberrypi,
|
||||
pi4-disko,
|
||||
pi4-argononed,
|
||||
|
||||
# Steamdeck
|
||||
steamdeck-nixpkgs,
|
||||
@@ -612,6 +615,7 @@
|
||||
pi4-impermanence.nixosModules.impermanence
|
||||
pi4-sops-nix.nixosModules.sops
|
||||
./hosts/pi4/configuration.nix
|
||||
pi4-argon40-nix.nixosModules.default
|
||||
pi4-home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
@@ -1,28 +1,69 @@
|
||||
#{ pkgs, ... }:
|
||||
#let
|
||||
# argononed = pkgs.callPackage ./pkg.nix {};
|
||||
#in
|
||||
#{
|
||||
# environment.systemPackages = [ argononed ];
|
||||
#}
|
||||
{ lib, stdenv, pkgs, config, ...}:
|
||||
{ ... }:
|
||||
{
|
||||
imports = let
|
||||
argononed = fetchGit {
|
||||
url = "https://github.com/mjallen18/argononed.git";
|
||||
ref = "dev"; # Or any other branches deemed suitable
|
||||
};
|
||||
in
|
||||
[ "${argononed}/OS/nixos" ];
|
||||
|
||||
services.argonone = {
|
||||
programs.argon.one = {
|
||||
enable = true;
|
||||
logLevel = 4;
|
||||
|
||||
settings = {
|
||||
fanTemp0 = 36; fanSpeed0 = 10;
|
||||
fanTemp1 = 41; fanSpeed1 = 50;
|
||||
fanTemp2 = 46; fanSpeed2 = 80;
|
||||
hysteresis = 4;
|
||||
# Is 'celsius' by default, can also be set to 'fahrenheit'
|
||||
displayUnits = "celsius";
|
||||
|
||||
# This is the same config as the original Argon40 config.
|
||||
# This is also the default config for this flake.
|
||||
fanspeed = [
|
||||
{
|
||||
# This the temperature threshold at which this fan speed will activate.
|
||||
# The temperature is in the above specified unit.
|
||||
temperature = 55;
|
||||
# This is speed percentage at which the fan will spin.
|
||||
speed = 30;
|
||||
}
|
||||
{
|
||||
temperature = 60;
|
||||
speed = 55;
|
||||
}
|
||||
{
|
||||
temperature = 65;
|
||||
speed = 100;
|
||||
}
|
||||
];
|
||||
ir = {
|
||||
enable = true;
|
||||
gpio.enable = true;
|
||||
keymap = {
|
||||
"POWER" = "00ff39c6";
|
||||
"UP" = "00ff53ac";
|
||||
"DOWN" = "00ff4bb4";
|
||||
"LEFT" = "00ff9966";
|
||||
"RIGHT" = "00ff837c";
|
||||
"VOLUMEUP" = "00ff01fe";
|
||||
"VOLUMEDOWN" = "00ff817e";
|
||||
"OK" = "00ff738c";
|
||||
"HOME" = "00ffd32c";
|
||||
"MENU" = "00ffb946";
|
||||
"BACK" = "00ff09f6";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
# { lib, stdenv, pkgs, config, ...}:
|
||||
# {
|
||||
# imports = let
|
||||
# argononed = fetchGit {
|
||||
# url = "https://github.com/mjallen18/argononed.git";
|
||||
# ref = "dev"; # Or any other branches deemed suitable
|
||||
# };
|
||||
# in
|
||||
# [ "${argononed}/OS/nixos" ];
|
||||
|
||||
# services.argonone = {
|
||||
# enable = true;
|
||||
# logLevel = 4;
|
||||
# settings = {
|
||||
# fanTemp0 = 36; fanSpeed0 = 10;
|
||||
# fanTemp1 = 41; fanSpeed1 = 50;
|
||||
# fanTemp2 = 46; fanSpeed2 = 80;
|
||||
# hysteresis = 4;
|
||||
# };
|
||||
# };
|
||||
# }
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
user = "matt";
|
||||
password = config.sops.secrets."pi4/matt-password".path;
|
||||
# password = config.sops.secrets."pi4/matt-password".path;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@@ -73,7 +73,8 @@ in
|
||||
mutableUsers = false;
|
||||
users."${user}" = {
|
||||
isNormalUser = true;
|
||||
hashedPasswordFile = password;
|
||||
# hashedPasswordFile = password;
|
||||
password = "BogieDudie1";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"docker"
|
||||
|
||||
@@ -28,27 +28,27 @@ in
|
||||
];
|
||||
|
||||
profiles = {
|
||||
"Joey's Jungle 5G" = {
|
||||
connection = {
|
||||
id = "Joey's Jungle 5G";
|
||||
type = "wifi";
|
||||
};
|
||||
ipv4 = {
|
||||
method = "auto";
|
||||
};
|
||||
ipv6 = {
|
||||
addr-gen-mode = "stable-privacy";
|
||||
method = "auto";
|
||||
};
|
||||
wifi = {
|
||||
mode = "infrastructure";
|
||||
ssid = "Joey's Jungle 5G";
|
||||
};
|
||||
wifi-security = {
|
||||
key-mgmt = "sae";
|
||||
psk = "$PSK";
|
||||
};
|
||||
};
|
||||
# "Joey's Jungle 5G" = {
|
||||
# connection = {
|
||||
# id = "Joey's Jungle 5G";
|
||||
# type = "wifi";
|
||||
# };
|
||||
# ipv4 = {
|
||||
# method = "auto";
|
||||
# };
|
||||
# ipv6 = {
|
||||
# addr-gen-mode = "stable-privacy";
|
||||
# method = "auto";
|
||||
# };
|
||||
# wifi = {
|
||||
# mode = "infrastructure";
|
||||
# ssid = "Joey's Jungle 5G";
|
||||
# };
|
||||
# wifi-security = {
|
||||
# key-mgmt = "sae";
|
||||
# psk = "$PSK";
|
||||
# };
|
||||
# };
|
||||
|
||||
"static-enabcm6e4ei0" = {
|
||||
connection = {
|
||||
|
||||
Reference in New Issue
Block a user