added spider host
This commit is contained in:
parent
fa905d2cb6
commit
57f2638f0e
8 changed files with 157 additions and 1 deletions
12
flake.nix
12
flake.nix
|
|
@ -45,13 +45,25 @@
|
|||
nixosModules.default = ./modules/nixos;
|
||||
|
||||
nixosConfigurations = {
|
||||
# Yes, my computers are named after the Earthbound Immortals from Yu-Gi-Oh! 5D's :3
|
||||
|
||||
# Main desktop for games & workstation
|
||||
# Alternative Name: Aslla piscu
|
||||
hummingbird = lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/hummingbird
|
||||
];
|
||||
};
|
||||
|
||||
# smol Thinkpad Yoga
|
||||
# Alternative Name: Uru
|
||||
spider = lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/spider
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
|
|
|
|||
8
home-manager/luna/spider.nix
Normal file
8
home-manager/luna/spider.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./common
|
||||
|
||||
./categories/cli
|
||||
./categories/desktop/common
|
||||
];
|
||||
}
|
||||
10
hosts/common/optional/fingerprint.nix
Normal file
10
hosts/common/optional/fingerprint.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}:{
|
||||
# Fingerprint Scanner
|
||||
systemd.services.fprintd = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig.Type = "simple";
|
||||
};
|
||||
services.fprintd.enable = true;
|
||||
services.fprintd.tod.enable = true;
|
||||
services.fprintd.tod.driver = pkgs.libfprint-2-tod1-vfs0090;
|
||||
}
|
||||
6
hosts/common/optional/thinkpad.nix
Normal file
6
hosts/common/optional/thinkpad.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{lib, config, ...}:{
|
||||
# Thinkpad
|
||||
hardware.sensor.iio.enable = true;
|
||||
hardware.trackpoint.enable = lib.mkDefault true;
|
||||
hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable;
|
||||
}
|
||||
|
|
@ -19,7 +19,6 @@
|
|||
neovim
|
||||
rustup
|
||||
vscode.fhs
|
||||
nix-inspect
|
||||
protonvpn-gui
|
||||
];
|
||||
};
|
||||
|
|
|
|||
70
hosts/spider/configuration.nix
Normal file
70
hosts/spider/configuration.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
../common/global
|
||||
../common/users/luna
|
||||
|
||||
# optional stuff
|
||||
../common/optional/gnome.nix
|
||||
../common/optional/pipewire.nix
|
||||
|
||||
# thinkpad-related
|
||||
../common/optional/thinkpad.nix
|
||||
../common/optional/fingerprint.nix
|
||||
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "spider"; # Define your hostname.
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
|
||||
# Configure console keymap
|
||||
console.keyMap = "de";
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# flatpak
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
gnome-menus
|
||||
];
|
||||
|
||||
# ssh agent
|
||||
programs.ssh.startAgent = true;
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
};
|
||||
}
|
||||
6
hosts/spider/default.nix
Normal file
6
hosts/spider/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
}
|
||||
45
hosts/spider/hardware-configuration.nix
Normal file
45
hosts/spider/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# 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" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/951f8c69-070f-4e2c-9af9-b52e43a72577";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/BF5F-3F1E";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/8bf53e75-628e-4a1b-a19f-1ac55be2af35";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
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.enp0s31f6.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wwp0s20f0u2.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue