summaryrefslogtreecommitdiff
path: root/nixos/hosts/bin
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/hosts/bin')
-rw-r--r--nixos/hosts/bin/configuration.nix (renamed from nixos/hosts/bin/default.nix)67
1 files changed, 40 insertions, 27 deletions
diff --git a/nixos/hosts/bin/default.nix b/nixos/hosts/bin/configuration.nix
index 22f85fa..ec568c5 100644
--- a/nixos/hosts/bin/default.nix
+++ b/nixos/hosts/bin/configuration.nix
@@ -1,18 +1,37 @@
-{ pkgs, ... }: {
- imports = [
- ./hardware-configuration.nix
+{ config, pkgs, ... }:
+
+{
+ imports = [
+ ./hardware-configuration.nix
];
- networking.hostName = "bin";
- networking.networkmanager.enable = true;
- networking.networkmanager.dns = "systemd-resolved";
- services.resolved.enable = true;
+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
+ nix.settings.auto-optimise-store = true;
- boot.loader.grub.enable = true;
- boot.loader.grub.device = "/dev/sda";
- boot.loader.grub.useOSProber = true;
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 7d";
+ };
+
+ boot.loader.grub = {
+ enable = true;
+ device = "/dev/nvme0n1";
+ useOSProber = true;
+ };
boot.kernelPackages = pkgs.linuxPackages_latest;
+ zramSwap = {
+ enable = true;
+ memoryPercent = 25;
+ };
+
+ services.getty.autologinUser = "cat";
+ services.fstrim.enable = true;
+
+ networking.hostName = "bin";
+ networking.networkmanager.enable = true;
+
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
@@ -27,13 +46,10 @@
LC_TIME = "de_DE.UTF-8";
};
- services.xserver.xkb = {
- layout = "us";
- variant = "";
- };
+ nixpkgs.config.allowUnfree = true;
- services.pufferpanel.enable = true;
- networking.firewall.allowedTCPPorts = [ 22 8080 5657 ];
+ programs.fish.enable = true;
+ programs.dconf.enable = true;
users.users.cat = {
isNormalUser = true;
@@ -42,18 +58,15 @@
shell = pkgs.fish;
};
- nixpkgs.config.allowUnfree = true;
-
- services.openssh = {
- enable = true;
- settings = {
- PermitRootLogin = "no";
- PasswordAuthentication = true;
- };
- };
-
- environment.systemPackages = with pkgs; [
+environment.systemPackages = with pkgs; [
+ btop
+ git
+ kitty
+ neovim
];
+documentation.enable = false;
+documentation.man.enable = false;
+
system.stateVersion = "26.05";
}