Initial commit: NixOS flake with Cursor 1.3.9

- Complete NixOS configuration with Cursor AppImage
- Development environment with Node.js, Python, Rust
- Modern shell setup with Zsh and Starship
- AppImage support and desktop integration
- Comprehensive documentation and quick start guide
This commit is contained in:
thinktankmachine
2025-08-06 10:08:03 +10:00
commit b1fb7eb124
11 changed files with 823 additions and 0 deletions
+88
View File
@@ -0,0 +1,88 @@
{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Networking
networking.networkmanager.enable = true;
networking.hostName = "cursor-test-system";
# Time zone
time.timeZone = "UTC";
# Internationalisation
i18n.defaultLocale = "en_US.UTF-8";
# X11 and Desktop Environment
services.xserver.enable = true;
services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
# Enable sound with pipewire
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# User configuration
users.users.liam = {
isNormalUser = true;
description = "Liam";
extraGroups = [ "networkmanager" "wheel" "video" "audio" ];
packages = with pkgs; [
# Essential tools
git
wget
curl
unzip
# AppImage support
appimage-run
# Development tools
gcc
gnumake
# Terminal
alacritty
# File manager
nautilus
];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# System packages
environment.systemPackages = with pkgs; [
# AppImage utilities
appimage-run
# Desktop utilities
gnome-tweaks
gnome-software
# System utilities
htop
neofetch
# Media support
ffmpeg
vlc
];
# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Garbage collection
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
system.stateVersion = "23.11";
}