hosts: init ame, upgrade linux kernels

This commit is contained in:
notohh 2023-06-10 16:41:06 -04:00
parent 8153606cf5
commit 9abe4bb8ac
Signed by: notohh
GPG key ID: BD47506D475EE86D
8 changed files with 162 additions and 2 deletions

View file

@ -4,6 +4,7 @@ my different hosts, each with their own unique configurations and purposes.
Name | Description
--------------- | -----------
`ame` | T480 laptop, mainly used for experimenting atm
`kariru` | *arr stack / seedbox vm
`sakura` | WIP new main vm
`tsuki` | main machine running hyprland

56
hosts/ame/default.nix Normal file
View file

@ -0,0 +1,56 @@
{
config,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
../../modules
../../modules/fonts.nix
];
boot.loader = {
systemd-boot = {
enable = true;
configurationLimit = 8;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "ame";
networking.wireless.enable = true;
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver = {
layout = "us";
xkbVariant = "";
};
services.printing.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
environment.systemPackages = with pkgs; [
firefox
kate
git
helix
croc
];
}

View file

@ -0,0 +1,41 @@
# 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" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/57411820-f154-497e-9c7e-dfcb1f21c5cf";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/4D09-1D57";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4f69ab31-f6a9-4799-92f1-5abbe0dc9180"; }
];
# 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.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

35
hosts/ame/home.nix Executable file
View file

@ -0,0 +1,35 @@
{pkgs, ...}: {
imports = [
../../home
../../home/librewolf
../../home/wezterm
../../home/zathura
../../home/lf
../../home/zellij
];
systemd.user.startServices = "sd-switch";
programs.home-manager.enable = true;
home = {
username = "notoh";
homeDirectory = "/home/notoh";
packages = with pkgs; [
webcord
discord
spotify-player
pavucontrol
unzip
p7zip
imv
mpv
rustypaste-cli
playerctl
logseq
cryptomator
(callPackage ../../pkgs/chatterino7 {})
];
stateVersion = "23.05";
};
}

View file

@ -94,4 +94,25 @@ in {
}
];
};
ame = nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
modules = [
./ame
sopsModule
diskoModule
hmModule
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.notoh = {
imports = [
./ame/home.nix
];
};
};
}
];
};
}

View file

@ -1,4 +1,4 @@
{...}: {
{pkgs, ...}: {
imports = [
./hardware-configuration.nix
./services
@ -14,6 +14,8 @@
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking = {
hostName = "kariru";
};

View file

@ -18,6 +18,8 @@
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking = {
hostName = "sakura";
};

View file

@ -1,4 +1,4 @@
{...}: {
{pkgs, ...}: {
imports = [
./hardware-configuration.nix
./services
@ -16,6 +16,8 @@
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "yuki";
networking.networkmanager.enable = true;