format all
This commit is contained in:
@@ -2,7 +2,14 @@
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, lib, inputs, ... }: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
@@ -43,8 +50,15 @@
|
||||
dns = "192.168.0.10";
|
||||
#gateway = "192.168.0.10";
|
||||
};
|
||||
misc = { docker.enable = true; };
|
||||
services = { syncthing = { enable = true; }; adguard.ip = "192.168.0.10"; };
|
||||
misc = {
|
||||
docker.enable = true;
|
||||
};
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
};
|
||||
adguard.ip = "192.168.0.10";
|
||||
};
|
||||
hardware = {
|
||||
android.enable = true;
|
||||
amd-gpu = {
|
||||
@@ -107,7 +121,7 @@
|
||||
services.searx = {
|
||||
enable = false;
|
||||
settings = {
|
||||
use_default_settings=true;
|
||||
use_default_settings = true;
|
||||
server.port = 8787;
|
||||
server.bind_address = "0.0.0.0";
|
||||
server.secret_key = "1";
|
||||
@@ -131,15 +145,13 @@
|
||||
after = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart =
|
||||
"${pkgs.scheibnkleister-presence}/bin/scheibnkleister-presence";
|
||||
ExecStart = "${pkgs.scheibnkleister-presence}/bin/scheibnkleister-presence";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 1;
|
||||
TimeoutStopSec = 10;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# apple shit
|
||||
#services.usbmuxd.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
@@ -147,7 +159,8 @@
|
||||
#kdePackages.qtdeclarative
|
||||
#libimobiledevice
|
||||
#ifuse # optional, to mount using 'ifuse'
|
||||
(wl-clicker.overrideAttrs (old: { # wayland autoclicker
|
||||
(wl-clicker.overrideAttrs (old: {
|
||||
# wayland autoclicker
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "phonetic112";
|
||||
repo = "wl-clicker";
|
||||
@@ -237,17 +250,26 @@
|
||||
''
|
||||
];
|
||||
|
||||
networking.hosts = let
|
||||
addr_to_domain_list = config.custom.services.adguard.rewrites |> map (x: { "${x.answer}" = [ x.domain ];} );
|
||||
flattened = builtins.foldl' (acc: elem:
|
||||
networking.hosts =
|
||||
let
|
||||
addr_to_domain_list =
|
||||
config.custom.services.adguard.rewrites
|
||||
|> map (x: {
|
||||
"${x.answer}" = [ x.domain ];
|
||||
});
|
||||
flattened = builtins.foldl' (
|
||||
acc: elem:
|
||||
let
|
||||
ip = builtins.head (builtins.attrNames elem);
|
||||
names = elem.${ip};
|
||||
in acc // {
|
||||
${ip} = (acc.${ip} or []) ++ names;
|
||||
in
|
||||
acc
|
||||
// {
|
||||
${ip} = (acc.${ip} or [ ]) ++ names;
|
||||
}
|
||||
) {} addr_to_domain_list;
|
||||
in flattened;
|
||||
) { } addr_to_domain_list;
|
||||
in
|
||||
flattened;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
|
||||
@@ -1,34 +1,44 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
device = "/dev/disk/by-uuid/dd65bdf8-c003-439c-a1aa-d050cb20959d";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
"defaults"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/dd65bdf8-c003-439c-a1aa-d050cb20959d";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
"defaults"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{
|
||||
device = "/dev/disk/by-uuid/CC7C-CF82";
|
||||
fsType = "vfat";
|
||||
};
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/CC7C-CF82";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{pkgs, lib, config, ...}:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# Run tailscale up --login-server http://<headscale_server>
|
||||
services.tailscale.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user