fa62ba2b8c
- Simplified `desktop-home-base.nix` by removing legacy git and application settings, delegating them to a new `desktop-home-defaults.nix` module for better organization. - Added a caching configuration for `chiasson.system.caching.attic` in `desktop-home-base.nix`, enabling caching features with customizable options. - Updated host-specific configurations to remove direct caching settings, ensuring a cleaner and more modular setup.
78 lines
2.2 KiB
Nix
78 lines
2.2 KiB
Nix
{ self, inputs, ... }: {
|
|
flake.nixosModules.uConsoleConfiguration =
|
|
{
|
|
self,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
config,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
# Workaround for NixOS/nixpkgs#398456.
|
|
disabledModules = [ (modulesPath + "/rename.nix") ];
|
|
|
|
imports = [
|
|
# Workaround for NixOS/nixpkgs#398456.
|
|
(lib.mkAliasOptionModule
|
|
[ "environment" "checkConfigurationOptions" ]
|
|
[ "_module" "check" ])
|
|
|
|
self.nixosModules.uConsoleHardware
|
|
inputs.home-manager.nixosModules.home-manager
|
|
inputs.sops-nix.nixosModules.sops
|
|
|
|
self.nixosModules.system
|
|
self.nixosModules.desktop
|
|
self.nixosModules.users
|
|
|
|
self.nixosModules."client-services"
|
|
./_private/platform.nix
|
|
./_private/raspberrypi-utils-overlay.nix
|
|
./_private/wifi-brcmfmac.nix
|
|
./_private/services.nix
|
|
./_private/cockpit.nix
|
|
./_private/activation.nix
|
|
./_private/4g/default.nix
|
|
];
|
|
|
|
nix.settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
require-sigs = false;
|
|
};
|
|
|
|
chiasson.system.librepods.enable = true;
|
|
chiasson.system.palera1n.enable = true;
|
|
|
|
# ─────────────────────── Display Server & Desktop ──────────────────────────
|
|
|
|
chiasson.desktop = {
|
|
# Pi 5 + RP1 DSI: see `modules/desktop/niri/pi5-workarounds.nix` and `chiasson.desktop.niri.raspberryPi5DrmWorkaround`.
|
|
# After login, `niri msg outputs` — add `outputs."…"` under `extraSettings` only if you need mode/transform.
|
|
niri = {
|
|
enable = true;
|
|
raspberryPi5DrmWorkaround = true;
|
|
};
|
|
defaultSession = "niri";
|
|
shell = "dms";
|
|
};
|
|
chiasson.system = {
|
|
audio.enable = true;
|
|
networking = {
|
|
hostName = "uConsole";
|
|
networkManager = {
|
|
enable = true;
|
|
unmanaged = [ ];
|
|
};
|
|
wifi.tools.enabled = true;
|
|
};
|
|
extraPackages = with pkgs; [ gitMinimal ];
|
|
};
|
|
|
|
chiasson.users.enabled = [ "olivier" ];
|
|
|
|
console.packages = with pkgs; [ terminus_font ];
|
|
};
|
|
}
|