phoebe: initial config for GPD MicroPC

This commit is contained in:
Payas Relekar 2023-09-28 14:45:54 +05:30
parent aa24314302
commit 7453c8042f
4 changed files with 193 additions and 0 deletions

View file

@ -76,6 +76,37 @@
];
};
# GPD MicroPC
phoebe = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = common-modules ++ [
# Modules and module config
./modules/users.nix
./modules/fonts.nix
./modules/plasma-desktop.nix
# Host-specific config
./hosts/phoebe/configuration.nix
# ./hosts/hermes/syncthing.nix
# agenix.nixosModules.age
# ./hosts/hermes/secrets/agenix.nix
# User-specific config
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users = {
payas = import ./hosts/phoebe/home.nix;
root = import ./modules/root-home.nix;
};
};
}
];
};
# My Pi
bebop = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";

View file

@ -0,0 +1,63 @@
{ config, pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "phoebe"; # Define your hostname.
# Pick only one of the below networking options.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
time.timeZone = "Asia/Kolkata";
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver = {
displayManager.sddm.enable = true;
desktopManager.plasma5 = {
enable = true;
runUsingSystemd = true;
};
monitorSection = ''
Option "Rotate" "right"
'';
};
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = 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
# ];
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
system.copySystemConfiguration = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
}

View file

@ -0,0 +1,38 @@
# 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 = [ "ahci" "xhci_pci" "usbhid" "usb_storage" "uas" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/5ed491d4-f205-4090-92dc-379168db7532";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E9FC-79F5";
fsType = "vfat";
};
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.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

61
hosts/phoebe/home.nix Normal file
View file

@ -0,0 +1,61 @@
{ pkgs, lib, ... }:
{
imports = [
../../modules/common-home.nix
../../modules/neovim/nvim.nix
./mail.nix
./emacs.nix
];
home.packages = with pkgs; [
# learn...things?
# anki
# security
keepassxc # password management
# apps
vlc
firefox-wayland
# utilities
okular
kcalc
ark # munging archives
unrar # So ark can open .rar files
spectacle
gwenview
kate
libreoffice # thoroughly average grown up stuff
qpdf
arianna # epub reader for plasma
kolourpaint # paint for plasma
];
# programs = {
# ssh = {
# enable = true;
# matchBlocks = {
# "ssh.bhankas.org" = {
# user = "gitea";
# hostname = "ssh.bhankas.org";
# identityFile = [ "~/.ssh/id_ed25519" ];
# proxyCommand = "${pkgs.cloudflared}/bin/cloudflared access ssh --hostname %h";
# };
# };
# };
# };
gtk = {
enable = true;
theme = {
package = pkgs.gnome.gnome-themes-extra;
name = "Adwaita-dark";
};
};
}