summaryrefslogtreecommitdiff
path: root/nixos/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/common.nix')
-rw-r--r--nixos/common.nix30
1 files changed, 5 insertions, 25 deletions
diff --git a/nixos/common.nix b/nixos/common.nix
index 4352df8..4bacead 100644
--- a/nixos/common.nix
+++ b/nixos/common.nix
@@ -1,3 +1,6 @@
+# Common / necessary stuff here
+# Additional stuff in common2.nix
+
{ config, pkgs, lib, ... }:
{
@@ -69,13 +72,6 @@
};
};
- # Input method for japanese
- i18n.inputMethod.enabled = "fcitx5";
- i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ];
-
- # Enable CUPS to print documents.
- services.printing.enable = true;
-
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = false;
@@ -87,9 +83,6 @@
jack.enable = true;
};
- # Enable RTL-SDR
- hardware.rtl-sdr.enable = true;
-
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
@@ -97,9 +90,6 @@
hardware.logitech.wireless.enable = true;
hardware.logitech.wireless.enableGraphical = true;
- # Enable libvirt
- virtualisation.libvirtd.enable = true;
-
# -------------------- users ---------------------
# Define a user account. Don't forget to set a password with ‘passwd’.
@@ -135,8 +125,7 @@
# -------------------- packages ---------------------
nixpkgs.config.allowUnfree = true;
- nix.gc.automatic = pkgs.lib.mkDefault true;
- nix.gc.options = "--delete-older-than 30d";
+
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.substituters = [ "https://nix.web.deuxfleurs.fr" ];
nix.settings.trusted-public-keys = [ "nix.web.deuxfleurs.fr:eTGL6kvaQn6cDR/F9lDYUIP9nCVR/kkshYfLDJf1yKs=" ];
@@ -170,6 +159,7 @@
ipafont
kochi-substitute
];
+
fonts.fontconfig.defaultFonts = {
monospace = [
"DejaVu Sans Mono"
@@ -323,9 +313,6 @@
programs.mtr.enable = true;
- # Enable the OpenSSH daemon.
- # services.openssh.enable = true;
-
# ---- fancy networks and stuff ----
services.yggdrasil = {
@@ -340,13 +327,6 @@
};
};
- services.tailscale.enable = true;
-
- services.tor = {
- enable = true;
- client.enable = true;
- };
-
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.