summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-02-03 22:07:43 +0100
committerJasper Ras <jras@hostnet.nl>2025-02-03 22:07:43 +0100
commit98c8c5ded88e4836f590db298cf53a5ec30eb353 (patch)
treec5033c7c2acafcdb9e722619d0a11831cb7da621 /hosts
parent574da5b3416e2376c4ffe20a53ddb1dc2c02b6ce (diff)
move tarrel into new structure
Diffstat (limited to 'hosts')
-rw-r--r--hosts/hardware-configuration/tarrel.nix40
-rw-r--r--hosts/tarrel.nix82
2 files changed, 0 insertions, 122 deletions
diff --git a/hosts/hardware-configuration/tarrel.nix b/hosts/hardware-configuration/tarrel.nix
deleted file mode 100644
index 4604fcd..0000000
--- a/hosts/hardware-configuration/tarrel.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-# 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, ... }:
-
-{
- imports =
- [ (modulesPath + "/installer/scan/not-detected.nix")
- ];
-
- boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
- boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-intel" ];
- boot.extraModulePackages = [ ];
-
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/b73c41ec-fe01-4fa5-b50a-fd871e8c2710";
- fsType = "ext4";
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/BBB8-1AF8";
- fsType = "vfat";
- options = [ "fmask=0022" "dmask=0022" ];
- };
-
- swapDevices = [ ];
-
- # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
- # (the default) this is the recommended approach. When using systemd-networkd it's
- # still possible to use this option, but it's recommended to use it in conjunction
- # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
- networking.useDHCP = lib.mkDefault true;
- # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp0s20f0u9.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}
diff --git a/hosts/tarrel.nix b/hosts/tarrel.nix
deleted file mode 100644
index 71b70af..0000000
--- a/hosts/tarrel.nix
+++ /dev/null
@@ -1,82 +0,0 @@
-{ pkgs, inputs, config, ... }:
-{
- imports = [
- ./hardware-configuration/tarrel.nix
- ];
-
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
-
- environment.systemPackages = with pkgs; [
- zola
- discord
- ];
-
- hardware.graphics.enable = true;
- services.xserver.videoDrivers = ["nvidia"];
- hardware.nvidia = {
- modesetting.enable = true;
- nvidiaSettings = true;
- nvidiaPersistenced = true;
- open = true;
-
- package = config.boot.kernelPackages.nvidiaPackages.stable;
- };
-
- security.rtkit.enable = true;
-
- time.timeZone = "Europe/Amsterdam";
-
- i18n.defaultLocale = "en_US.UTF-8";
- i18n.extraLocaleSettings = {
- LC_ADDRESS = "nl_NL.UTF-8";
- LC_IDENTIFICATION = "nl_NL.UTF-8";
- LC_MEASUREMENT = "nl_NL.UTF-8";
- LC_MONETARY = "nl_NL.UTF-8";
- LC_NAME = "nl_NL.UTF-8";
- LC_NUMERIC = "nl_NL.UTF-8";
- LC_PAPER = "nl_NL.UTF-8";
- LC_TELEPHONE = "nl_NL.UTF-8";
- LC_TIME = "nl_NL.UTF-8";
- };
-
- console.keyMap = "us-acentos";
-
- programs.zsh.enable = true;
-
- users.users.jras = {
- isNormalUser = true;
- description = "Jasper";
- extraGroups = [ "networkmanager" "wheel" "audio" ];
- shell = pkgs.zsh;
- };
-
- security.sudo.execWheelOnly = true;
- security.sudo.wheelNeedsPassword = false;
-
- environment.sessionVariables = {
- TERMINAL = "alacritty";
- EDITOR = "helix";
- };
-
- environment.pathsToLink = [ "/libexec" ];
-
- networking.hostName = "tarrel";
- networking.networkmanager.enable = true;
-
- home-manager = {
- useGlobalPkgs = true;
- useUserPackages = true;
- users.jras = import ../home-manager/entrypoints/personal.nix;
- extraSpecialArgs = { inherit inputs; monitor-names = ["DP-2" "HDMI-A-1"]; };
- };
-
- system.stateVersion = "24.05"; # Did you read the comment?
-
- services.sunshine = {
- enable = true;
- autoStart = true;
- capSysAdmin = true;
- openFirewall = true;
- };
-}