diff options
| author | caley <u65487754@gmail.com> | 2026-06-15 15:34:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-15 15:34:01 +0200 |
| commit | 438c9429ece0f60653dd9732d4971f5830cdf40e (patch) | |
| tree | c122fa0b3b3c3336f914200b4e8455bdacb04eb6 /nixos/hosts | |
| parent | 284a5d7db1d8e9c5cad2a09d4c3eb22eb54d1262 (diff) | |
Update and rename default.nix to configuration.nix
Diffstat (limited to 'nixos/hosts')
| -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"; } |
