Polish ringtail NixOS config and add documentation #208
2 changed files with 22 additions and 6 deletions
Add home-manager for sway keybinding, fix extraConfig error
The NixOS programs.sway module doesn't have extraConfig. Use home-manager's wayland.windowManager.sway instead to set the terminal to wezterm (which gives us $mod+Return automatically). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
commit
1f97c5498e
|
|
@ -44,10 +44,6 @@
|
|||
grim # screenshots
|
||||
slurp # region selection
|
||||
];
|
||||
extraConfig = ''
|
||||
set $term wezterm
|
||||
bindsym $mod+Return exec $term
|
||||
'';
|
||||
};
|
||||
security.polkit.enable = true;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
|
@ -126,6 +122,21 @@
|
|||
ripgrep
|
||||
];
|
||||
|
||||
# Home Manager (minimal — chezmoi owns dotfiles, this is ringtail-specific)
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.eblume = {
|
||||
home.stateVersion = "25.11";
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
config = {
|
||||
terminal = "wezterm";
|
||||
modifier = "Mod4";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Enable nix flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "NixOS configuration for ringtail (gaming/compute workstation)";
|
||||
description = "NixOS configuration for ringtail (service host & gaming PC)";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||
|
|
@ -7,13 +7,18 @@
|
|||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-25.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, disko, ... }: {
|
||||
outputs = { nixpkgs, disko, home-manager, ... }: {
|
||||
nixosConfigurations.ringtail = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
disko.nixosModules.disko
|
||||
home-manager.nixosModules.home-manager
|
||||
./disk-config.nix
|
||||
./hardware-configuration.nix
|
||||
./configuration.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue