nixos-config/configs/nixos/ni
Gabriel Arazas 03590ad834
nixos/workflows: disable display manager services
This is now on the individual configurations to enable them since most
workflows are expected to be quite similar to desktop environments like from
default NixOS modules.
2024-02-15 23:14:33 +08:00
..
config/nixpkgs configs: consolidate NixOS and home-manager config into one configs folder 2024-01-15 07:45:43 +08:00
files configs: consolidate NixOS and home-manager config into one configs folder 2024-01-15 07:45:43 +08:00
modules flake-parts/setups: set separate namespace for custom library 2024-02-11 15:16:25 +08:00
secrets configs: consolidate NixOS and home-manager config into one configs folder 2024-01-15 07:45:43 +08:00
default.nix nixos/workflows: disable display manager services 2024-02-15 23:14:33 +08:00
disko.nix configs: consolidate NixOS and home-manager config into one configs folder 2024-01-15 07:45:43 +08:00
hardware-configuration.nix chore: reformat codebase 2024-02-02 12:40:16 +08:00
README.adoc configs: consolidate NixOS and home-manager config into one configs folder 2024-01-15 07:45:43 +08:00

My desktop workstation. Pretty nice, pretty handy, it is your basic desktop NixOS installation.

I know partitioning is not your favorite part so heres one way to prepare the laptop with this config.

# Preparing the partitions.
parted /dev/sda -- mklabel gpt
parted /dev/sda -- mkpart primary 512MiB -4GB
parted /dev/sda -- mkpart primary linux-swap -4GB 100%
parted /dev/sda -- mkpart ESP fat32 1MiB 512MiB
parted /dev/sda -- set 3 esp on

# Setting up the filesystems.
mkfs.ext4 -L nixos /dev/sda1
mkswap -L swap /dev/sda2
mkfs.fat -F 32 -n boot /dev/sda3

# Mount the partitions before installation.
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
swapon /dev/disk/by-label/swap