Refactor configs
Some checks failed
Check flake / build-amd64-linux (push) Failing after 14s

This commit is contained in:
2024-08-11 08:58:31 +01:00
parent 6eed6303f2
commit 1ecceeae9a
29 changed files with 134 additions and 124 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, ... }:
{
imports = [
@ -6,6 +6,8 @@
../desktop.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;

View File

@ -1,6 +1,22 @@
{ config, pkgs, ... }:
{ config, pkgs, self, ... }:
{
imports = [
self.inputs.agenix.nixosModules.age
self.inputs.home-manager.nixosModule
../modules
];
nixpkgs.overlays = [
self.inputs.agenix.overlays.default
(import ../overlays/default.nix)
(
final: prev: {
unstable = import self.inputs.nixpkgs-unstable { system = final.system; };
}
)
];
time.timeZone = "Europe/London";
i18n.defaultLocale = "en_GB.UTF-8";

View File

@ -1,10 +1,14 @@
{ config, lib, pkgs, ... }:
{ config, pkgs, ... }:
{
imports = [
./common.nix
];
nixpkgs.overlays = [
(import ../overlays/gnome.nix)
];
services.printing.enable = true;
services.openssh.startWhenNeeded = true;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, ... }:
{
imports = [
@ -6,6 +6,8 @@
../desktop.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ config, ... }:
{
imports = [
@ -6,6 +6,8 @@
../desktop.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
boot = {
loader.grub = {
enable = true;

View File

@ -1,12 +1,21 @@
{ config, lib, ... }:
{ config, lib, self, ... }:
{
imports = [
self.inputs.disko.nixosModules.disko
./hardware-configuration.nix
./disko-config.nix
../desktop.nix
];
nixpkgs = {
hostPlatform = "x86_64-linux";
config = {
allowUnfree = true;
nvidia.acceptLicense = true;
};
};
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;

View File

@ -6,6 +6,8 @@
../server.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;

View File

@ -1,12 +1,16 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, self, ... }:
{
imports = [
self.inputs.disko.nixosModules.disko
self.inputs.nixos-mailserver.nixosModule
./hardware-configuration.nix
./disko-config.nix
../server.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
networking = {
hostId = "08ac2f14";
domain = "mesh.vimium.net";

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ config, ... }:
{
imports = [
@ -6,6 +6,14 @@
../desktop.nix
];
nixpkgs = {
hostPlatform = "x86_64-linux";
config = {
allowUnfree = true;
nvidia.acceptLicense = true;
};
};
boot.loader = {
systemd-boot = {
enable = true;

View File

@ -1,12 +1,13 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, self, ... }:
{
imports = [
self.inputs.nixos-hardware.nixosModules.raspberry-pi-4
./hardware-configuration.nix
../server.nix
];
networking.hostId = "731d1660";
nixpkgs.hostPlatform = "aarch64-linux";
hardware = {
raspberry-pi."4" = {
@ -97,6 +98,8 @@
];
};
networking.hostId = "731d1660";
sound.enable = true;
security.rtkit.enable = true;
@ -173,7 +176,7 @@
};
age.secrets."files/services/zigbee2mqtt/secret.yaml" = {
file = "${inputs.secrets}/files/services/zigbee2mqtt/secret.yaml.age";
file = "${self.inputs.secrets}/files/services/zigbee2mqtt/secret.yaml.age";
path = "${config.services.zigbee2mqtt.dataDir}/secret.yaml";
owner = "zigbee2mqtt";
group = "zigbee2mqtt";

View File

@ -1,11 +1,14 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, self, ... }:
{
imports = [
self.inputs.nixos-hardware.nixosModules.raspberry-pi-4
./hardware-configuration.nix
../server.nix
];
nixpkgs.hostPlatform = "aarch64-linux";
hardware = {
raspberry-pi."4" = {
apply-overlays-dtmerge.enable = true;

View File

@ -1,7 +1,4 @@
{
lib,
...
}:
{ lib, ... }:
{
imports = [
@ -9,6 +6,8 @@
../server.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
networking = {
hostId = "08bf6db3";
domain = "mesh.vimium.net";