All checks were successful
Check flake syntax / flake-check (push) Successful in 13m44s
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.
|
|
#./hardware-configuration.nix
|
|
../modules/xserver.nix
|
|
../modules/sshd.nix
|
|
../modules/autoupdate.nix
|
|
inputs.self.nixosModules.malobeo.disko
|
|
inputs.self.nixosModules.malobeo.initssh
|
|
inputs.self.nixosModules.malobeo.users
|
|
];
|
|
|
|
malobeo.autoUpdate = {
|
|
enable = true;
|
|
url = "https://hydra.dynamicdiscord.de";
|
|
project = "malobeo";
|
|
jobset = "infrastructure";
|
|
cacheurl = "https://cache.dynamicdiscord.de";
|
|
};
|
|
|
|
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";
|
|
networking.networkmanager.enable = true;
|
|
|
|
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..
|
|
}
|
|
|