Commit graph

95 commits

Author SHA1 Message Date
Julian Sutter
73de2bfb51 Fix deprecated NixOS options and migrate to new syntax
This commit resolves multiple deprecation warnings and errors that were
preventing the NixOS configuration from being built successfully.

## Changes Made

### 1. Git Configuration Options (Home Manager)
**Affected Files:**
- users/jsutter.nix
- users/isutter.nix
- users/aksutter.nix

**Changes:**
- Migrated from deprecated `userName` and `userEmail` options to new
  `settings.user.name` and `settings.user.email` syntax
- Migrated from deprecated `extraConfig` to inline `settings` format
- This aligns with Home Manager's new git configuration structure

**Before:**
```nix
programs.git = {
  userName  = "Julian Sutter";
  userEmail = "jsutter@symbiotip.com";
  extraConfig = { core.editor = "nano"; };
};
```

**After:**
```nix
programs.git = {
  settings = {
    user = {
      name = "Julian Sutter";
      email = "jsutter@symbiotip.com";
    };
    core.editor = "nano";
  };
};
```

### 2. Systemd Logind Options
**Affected File:** systems/framework.nix

**Changes:**
- Migrated from deprecated direct options to new nested settings syntax
- All logind power management options now use `settings.Login.*` format

**Before:**
```nix
services.logind = {
  lidSwitch = "suspend-then-hibernate";
  lidSwitchDocked = "ignore";
};
```

**After:**
```nix
services.logind = {
  settings = {
    Login = {
      HandleLidSwitch = "suspend-then-hibernate";
      HandleLidSwitchDocked = "ignore";
    };
  };
};
```

### 3. Display Manager Configuration
**Affected File:** desktop/plasma.nix

**Changes:**
- Removed deprecated `services.xserver.displayManager.gdm.enable`
- Configuration now uses `services.displayManager.gdm.enable` exclusively
- Added explanatory comment about the deprecation removal

### 4. Package Deprecations
**Affected Files:**
- users/aksutter.nix
- users/isutter.nix

**Changes:**
- Replaced deprecated `pinentry` package with `pinentry-gnome3`
- The generic `pinentry` package has been split into specific variants
- `pinentry-gnome3` was already in use elsewhere in plasma.nix

### 5. NixOS System Parameter
**Affected File:** flake.nix

**Changes:**
- Updated system parameter handling to address deprecation warning
- Changed from `inherit system` to `inherit (localSystem) system`
- Renamed `system` variable to `localSystem` with explicit system attribute

**Before:**
```nix
let
  system = "x86_64-linux";
  commonSpecialArgs = {
    pkgs-unstable = import nixpkgs-unstable {
      inherit system;
```

**After:**
```nix
let
  localSystem = {
    system = "x86_64-linux";
  };
  commonSpecialArgs = {
    pkgs-unstable = import nixpkgs-unstable {
      inherit (localSystem) system;
```

## Verification

### Build Status
 All three system configurations build successfully:
- framework
- aurora
- labrizor

### Flake Check Results
 `nix flake check` passes without errors
 Only remaining warning is from external flake-utils dependency
  in octofriend subflake, which does not affect functionality

### Framework Build Results
 `sudo nixos-rebuild build --flake .#framework` completed successfully
 New configuration path:
  /nix/store/6wci3m6qnzphw75b0j7lmx1gjqphry3n-nixos-system-framework-25.11.20260203.e576e3c

## Impact

### User Impact
- Git configuration behavior remains unchanged
- Logind power management behavior unchanged
- Login/logout experience identical
- No functional changes to user experience

### System Impact
- All configurations now use modern NixOS 25.11 syntax
- Future-proofed against upcoming deprecation removals
- Maintains consistency across all managed systems

## Testing Recommendations

Before deploying to production:
1. Test on non-critical systems first (labrizor)
2. Verify all services start correctly after switch
3. Confirm user git configurations work as expected
4. Test lid switch behavior on framework laptop
5. Verify GPG pinentry prompts work correctly

## Related NixOS Documentation

- Home Manager git options: https://nix-community.github.io/home-manager/options.xhtml#opt-programs.git.enable
- Systemd logind settings: https://search.nixos.org/options?query=services.logind
- NixOS 25.11 release notes for deprecation details
2026-02-03 22:18:15 -08:00
Julian Sutter
ce51c7cf8c Update NixOS configurations across multiple modules
This commit updates various configuration modules to improve system
functionality and maintain consistency across all managed machines.

## Changed Files

### flake.nix
- Updated to use nixos-25.11 channel (previously 25.05)
- Updated home-manager to release-25.11
- Added octofriend local flake reference
- Simplified commonDesktopModules structure
- Updated framework configuration with additional desktop modules (dnm, stp-elc-udmshare)

### flake.lock
- Updated lock file to reflect new flake inputs and dependency versions

### systems/common.nix
- Updated system stateVersion from "25.05" to "25.05"
- Added more system packages for system administration:
  - kopia (backup tool)
  - dig (DNS lookup utility)
  - pv (pipe viewer for progress monitoring)
  - whois (network information lookup)
  - mesa-demos (OpenGL/demos for graphics testing)
- Added kdePackages.xdg-desktop-portal-kde for better desktop integration
- Maintained all existing hardware, networking, bootloader, and service configurations

### systems/framework.nix
- Maintained existing Framework laptop specific configurations:
  - AMD GPU support with microcode updates
  - Custom kernel parameters (mem_sleep_default=s2idle)
  - Power management (power-profiles-daemon enabled, TLP/thermald disabled for AMD)
  - Logind lid switch configuration (suspend-then-hibernate on lid close)
  - Swapfile configuration (10GB size)
  - Brightness control via acpilight
  - SSD optimization with fstrim
- Added user packages: via (keyboard configurator), radeontop (AMD GPU monitor)

### users/jsutter.nix
- Enhanced Home Manager configuration:
  - Updated stateVersion to "25.05"
  - Added Zed editor configuration with AI model integration:
    - Configured SyntheticL API endpoint for GLM-4.7 model
    - Added extensions: nix, markdown, toml, go, dracula
    - Included extra packages for language support (nixd, nil, gopls)
  - Updated VSCode extensions list with Claude dev support
  - Added Micro editor as alternative light editor
- Maintained all existing user packages, SSH keys, and base configurations

### desktop/media.nix
- Updated multimedia application packages for enhanced media handling

### desktop/plasma.nix
- Updated Plasma desktop environment packages and configurations

### desktop/virtualization.nix
- Updated virtualization settings and package versions

## Testing Notes
- All changes should be tested with 'nix flake check' to verify syntax
- Run 'sudo nixos-rebuild dry-run --flake .#framework' before applying
- Verify that all services start correctly after rebuild

## Impact Scope
- Affects all three managed systems: framework, aurora, labrizor
- Primary focus on framework laptop configuration as primary development machine
- Home Manager changes only affect jsutter user account
2026-02-03 22:13:06 -08:00
Julian Sutter
1c35f03eae octowork 2025-12-18 19:14:57 -08:00
Julian Sutter
2015647f67 octoflake? 2025-12-18 19:12:29 -08:00
Julian Sutter
bfd1d51370 fix sharename 2025-12-18 15:19:24 -08:00
Julian Sutter
34a3f7aec6 stp-elc-smbshare.nix 2025-12-18 12:00:33 -08:00
Julian Sutter
8137354068 dnm 2025-11-28 21:17:01 -08:00
Julian Sutter
b6bef24b70 enable labrazor for 3dprinting 2025-11-22 18:29:46 -08:00
Julian Sutter
2830d7b670 update framework to ai 300 processor spec 2025-11-10 11:16:02 -08:00
Julian Sutter
08ec8b9282 tailscale 2025-11-06 10:20:48 -08:00
Julian Sutter
19898751a8 ai.nix 2025-11-03 13:40:55 -08:00
e80cc15caf updates and cleanup 2025-11-03 09:25:36 -08:00
Julian Sutter
de62048229 cleanup labrizor 2025-11-03 08:55:39 -08:00
Julian Sutter
fdef5ee3b0 updates 2025-10-23 12:58:28 -07:00
Julian Sutter
aaa0cf7659 updates 2025-09-08 10:25:10 -07:00
Julian Sutter
b9a33662c3 tailscale 2025-08-06 11:08:03 -07:00
Julian Sutter
56f926d5c0 25.05 switch and spicy update 2025-08-04 14:12:35 -07:00
Julian Sutter
f6e63e555c Implement modular Plasma taskbar pinning system
- Add modular pinning system using NixOS module options
- Each desktop module now defines its own pinned applications:
  * plasma.nix: konsole, dolphin, firefox, tigervnc
  * gaming.nix: steam, discord
  * office.nix: slack, signal, libreoffice-writer, libreoffice-calc
  * dev.nix: windsurf
  * media.nix: rustdesk
  * dnm.nix: tor-browser, kleopatra (moved from crypto.nix)
- Move Plasma config from user-specific to desktop module for consistency
- Rename crypto.nix to dnm.nix and update references
- All users with Plasma desktop get automatic taskbar pinning
- Applications only appear when their desktop modules are active
2025-07-31 01:13:57 -07:00
Julian Sutter
61c3722f5a Refactor NixOS configuration: Move GUI apps to desktop modules and create headless config
- Move GUI applications from users/jsutter.nix to appropriate desktop modules:
  * office.nix: slack, signal-desktop
  * gaming.nix: discord, stremio
  * plasma.nix: arc-theme, pinentry, tigervnc
  * dev.nix: putty
  * media.nix (new): vlc, deluge

- Create systems/common-headless.nix for server configurations:
  * Remove GUI dependencies (Flatpak, XDG portals, fonts, graphics drivers)
  * Include only essential CLI tools and server packages
  * Disable X server completely

- Simplify skip01 configuration:
  * Remove Intel graphics drivers and OpenGL support
  * Use headless common configuration
  * Keep unified users/jsutter.nix (no split files)

- Update flake.nix to include new media.nix module in desktop systems

Result: Clean separation between desktop and headless configurations
with improved modularity and maintainability.
2025-07-30 23:17:55 -07:00
Julian Sutter
268cdf2716 Refactor flake.nix for DRY (Don't Repeat Yourself) principles
- Extract common specialArgs into reusable commonSpecialArgs variable
- Create mkSystem helper function to eliminate duplication
- Extract commonDesktopModules for shared desktop configurations
- Reduce flake.nix from ~90 lines to ~60 lines with better maintainability
- All system configurations (framework, aurora, labrizor, skip01) now use consistent pattern
- Maintain full functionality while dramatically reducing code duplication

Benefits:
- Single source of truth for specialArgs configuration
- Easier to add new systems or modify existing ones
- More maintainable and readable code structure
- Consistent unstable package access across all systems
2025-07-30 15:02:41 -07:00
Julian Sutter
c6430c0443 Implement hybrid package management: stable + selective unstable
- Add nixpkgs-unstable input to flake.nix
- Configure specialArgs to pass pkgs-unstable to all system configs
- Update desktop/dev.nix to use windsurf from unstable packages
- Create comprehensive documentation in README-hybrid-packages.md
- Enable selective use of cutting-edge packages while maintaining system stability

Usage: Add pkgs-unstable parameter to any .nix file and use pkgs-unstable.package-name
Example: pkgs-unstable.windsurf for latest Windsurf editor
2025-07-30 14:59:12 -07:00
Julian Sutter
21830a1ba7 Migrate to NixOS 24.05 stable branch
- Update flake.nix to use nixos-24.05 and home-manager release-24.05
- Remove deprecated services.pulseaudio configurations
- Fix home-manager compatibility issues:
  - Update stateVersion from 24.11 to 24.05
  - Change VSCode profiles.default.extensions to extensions
  - Update ZSH initContent to initExtra
  - Remove incompatible git signing.format option
- Remove unavailable windsurf package from dev.nix
- Successfully tested with nixos-rebuild dry-run
2025-07-30 14:55:16 -07:00
Julian Sutter
1e70121b00 Add skip01 NixOS configuration for Intel NUC server
- Created systems/skip01.nix with 13th gen Intel i5 NUC optimizations
- Configured for headless server operation with SSH access
- Enabled Docker and Podman for container services
- Added Intel graphics support and thermal management
- Network performance tuning for server workloads
- Added skip01 to flake.nix nixosConfigurations
2025-07-29 19:03:57 -07:00
Julian Sutter
e8e3ee0b8b updates 2025-07-22 23:43:28 -07:00
Julian Sutter
56fdb16b24 Remove cloudflared ftl.host module from all systems 2025-07-18 22:41:37 -07:00
Julian Sutter
6419e44222 Add cloudflared TCP tunnel module for ftl.host 2025-07-18 22:06:58 -07:00
Julian Sutter
c111089c37 updates 2025-06-10 20:38:29 -07:00
Julian Sutter
391b83a4dd updates 2025-05-27 11:32:59 -07:00
Julian Sutter
c837ce81ac added daw 2025-04-26 20:13:16 -07:00
Julian Sutter
be4255e26f updates & crypto 2025-04-26 20:07:24 -07:00
Julian Sutter
ca14339d43 perm updates 2024-12-26 20:59:38 -08:00
Julian Sutter
acd10ce02d 2dprinting 2024-12-26 15:06:41 -08:00
Julian Sutter
0535745c4b updates 2024-12-22 11:39:20 -08:00
Julian Sutter
b9a6e6d2d5 converting to pure 2024-12-22 11:10:23 -08:00
Julian Sutter
578c121d54 converting to pure 2024-12-22 11:10:08 -08:00
Julian Sutter
ce1809faeb converting to pure 2024-12-22 11:09:17 -08:00
Julian Sutter
34444081d4 converting to pure 2024-12-22 11:08:09 -08:00
Julian Sutter
e9c6b6944c converting to pure 2024-12-22 10:51:22 -08:00
Julian Sutter
6e4d4da07b converting to pure 2024-12-22 10:42:58 -08:00
Julian Sutter
d762a6d7ae converting to pure 2024-12-22 09:43:24 -08:00
Julian Sutter
87a8085160 converting to pure 2024-12-22 09:37:28 -08:00
Julian Sutter
8d7d0e0c65 remove gnome firefox theme 2024-12-22 08:22:33 -08:00
Julian Sutter
2e4d58a4fd remove gnome firefox theme 2024-12-22 08:21:28 -08:00
Julian Sutter
aa83d89957 converting to pure 2024-12-22 08:07:15 -08:00
Julian Sutter
68b3c6f857 virtualization appears to be working? 2024-12-21 21:43:45 -08:00
Julian Sutter
b5b03dea63 radeontop and more 2024-12-21 16:02:42 -08:00
Julian Sutter
243b460145 building server container repo 2024-12-11 10:54:36 -08:00
Julian Sutter
5bc9283768 updates 2024-10-30 19:40:23 -07:00
Julian Sutter
f4152400af 3dp reenabled & updates 2024-09-16 10:16:50 -07:00
Julian Sutter
2dd800724b monero 2024-08-06 19:18:54 -07:00