if imported in external projects `inputs.self` will point to the external resource instead of malobeo leading to errors. therefore all occurences of inputs.self got replaces with inputs.malobeo
102 lines
2.1 KiB
Nix
102 lines
2.1 KiB
Nix
{ config, pkgs, inputs, ... }:
|
|
|
|
let
|
|
sshKeys = import ../ssh_keys.nix;
|
|
in
|
|
{
|
|
imports =
|
|
[ # Include the results of the hardware scan.
|
|
inputs.malobeo.nixosModules.malobeo.disko
|
|
inputs.malobeo.nixosModules.malobeo.initssh
|
|
inputs.malobeo.nixosModules.malobeo.users
|
|
|
|
#./hardware-configuration.nix
|
|
../modules/xserver.nix
|
|
../modules/sshd.nix
|
|
../modules/autoupdate.nix
|
|
];
|
|
|
|
malobeo.autoUpdate = {
|
|
enable = true;
|
|
url = "https://hydra.malobeo.org";
|
|
project = "malobeo";
|
|
jobset = "master";
|
|
cacheurl = "https://cache.malobeo.org";
|
|
};
|
|
|
|
malobeo.disks = {
|
|
enable = true;
|
|
hostId = "a3c3102f";
|
|
root = {
|
|
disk0 = "disk/by-id/ata-HITACHI_HTS725016A9A364_110308PCKB04VNHX9XTJ";
|
|
};
|
|
};
|
|
|
|
malobeo.initssh = {
|
|
enable = true;
|
|
authorizedKeys = sshKeys.admins;
|
|
ethernetDrivers = ["r8169"];
|
|
};
|
|
|
|
malobeo.users.malobeo = true;
|
|
|
|
hardware.sane.enable = true; #scanner support
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
users.users.malobeo = {
|
|
packages = with pkgs; [
|
|
firefox
|
|
thunderbird
|
|
telegram-desktop
|
|
tor-browser
|
|
keepassxc
|
|
libreoffice
|
|
gimp
|
|
inkscape
|
|
kdePackages.okular
|
|
element-desktop
|
|
chromium
|
|
mpv
|
|
vlc
|
|
simple-scan
|
|
];
|
|
};
|
|
|
|
services.tor = {
|
|
enable = true;
|
|
client.enable = true;
|
|
};
|
|
|
|
services.printing.enable = true;
|
|
services.printing.drivers = [
|
|
(pkgs.writeTextDir "share/cups/model/brother5350.ppd" (builtins.readFile ../modules/BR5350_2_GPL.ppd))
|
|
pkgs.gutenprint
|
|
pkgs.gutenprintBin
|
|
pkgs.brlaser
|
|
pkgs.brgenml1lpr
|
|
pkgs.brgenml1cupswrapper
|
|
];
|
|
|
|
# needed for printing drivers
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
services.acpid.enable = true;
|
|
|
|
networking.hostName = "bakunin";
|
|
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
systemWide = true;
|
|
};
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
system.stateVersion = "23.05"; # Do.. Not.. Change..
|
|
}
|
|
|