summaryrefslogtreecommitdiff
path: root/nixos/hosts/bin/configuration.nix
diff options
context:
space:
mode:
authorcaley <u65487754@gmail.com>2026-06-15 15:34:01 +0200
committerGitHub <noreply@github.com>2026-06-15 15:34:01 +0200
commit438c9429ece0f60653dd9732d4971f5830cdf40e (patch)
treec122fa0b3b3c3336f914200b4e8455bdacb04eb6 /nixos/hosts/bin/configuration.nix
parent284a5d7db1d8e9c5cad2a09d4c3eb22eb54d1262 (diff)
Update and rename default.nix to configuration.nix
Diffstat (limited to 'nixos/hosts/bin/configuration.nix')
-rw-r--r--nixos/hosts/bin/configuration.nix72
1 files changed, 72 insertions, 0 deletions
diff --git a/nixos/hosts/bin/configuration.nix b/nixos/hosts/bin/configuration.nix
new file mode 100644
index 0000000..ec568c5
--- /dev/null
+++ b/nixos/hosts/bin/configuration.nix
@@ -0,0 +1,72 @@
+{ config, pkgs, ... }:
+
+{
+ imports = [
+ ./hardware-configuration.nix
+ ];
+
+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
+ nix.settings.auto-optimise-store = 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 = {
+ LC_ADDRESS = "de_DE.UTF-8";
+ LC_IDENTIFICATION = "de_DE.UTF-8";
+ LC_MEASUREMENT = "de_DE.UTF-8";
+ LC_MONETARY = "de_DE.UTF-8";
+ LC_NAME = "de_DE.UTF-8";
+ LC_NUMERIC = "de_DE.UTF-8";
+ LC_PAPER = "de_DE.UTF-8";
+ LC_TELEPHONE = "de_DE.UTF-8";
+ LC_TIME = "de_DE.UTF-8";
+ };
+
+ nixpkgs.config.allowUnfree = true;
+
+ programs.fish.enable = true;
+ programs.dconf.enable = true;
+
+ users.users.cat = {
+ isNormalUser = true;
+ description = "cat";
+ extraGroups = [ "networkmanager" "wheel" ];
+ shell = pkgs.fish;
+ };
+
+environment.systemPackages = with pkgs; [
+ btop
+ git
+ kitty
+ neovim
+ ];
+
+documentation.enable = false;
+documentation.man.enable = false;
+
+ system.stateVersion = "26.05";
+}