Compare commits

...

13 Commits

Author SHA1 Message Date
b9d78079d2 fix remote build 2026-01-18 18:22:00 -06:00
07b9b65382 move options 2026-01-18 17:07:58 -06:00
58bbf942d8 ssh key 2026-01-12 15:23:56 -06:00
aeee74c4ad fix homebox 2026-01-11 20:42:51 -06:00
5bcfe2dc8b import 2026-01-11 20:31:49 -06:00
ae327d6d22 nvidia 2026-01-11 17:33:16 -06:00
8f71ce170f nvidia 2026-01-11 17:31:53 -06:00
5b5df9b66f propare homebox 2026-01-11 17:24:14 -06:00
25401f8a5b propare homebox 2026-01-11 17:17:53 -06:00
84ef15e3d1 propare homebox 2026-01-11 17:14:51 -06:00
6d987978c0 no gitignore 2026-01-11 10:07:03 -06:00
d12352b6b8 default.nix 2026-01-11 10:07:03 -06:00
7e4fd4b972 use 25.11 2026-01-07 13:53:30 -06:00
3 changed files with 52 additions and 30 deletions

1
.gitignore vendored
View File

@@ -1 +0,0 @@
/flake.lock

View File

@@ -2,47 +2,73 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
(import ./disko.nix { device1 = "/dev/nvme0n1"; device2 = "/dev/nvme1n1"; device3 = "/dev/sda"; })
];
config = {
hardware = {
nvidia = {
modesetting.enable = true;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
services = {
xserver = {
enable = false;
videoDrivers = ["nvidia"];
};
displayManager = {
enable = false;
defaultSession = "hyprland";
autoLogin = {
enable = true;
user = "nathan";
};
};
pulseaudio.enable = false;
bluetooth.enable = true;
hardware.openrgb = {
enable = true;
motherboard = "amd";
};
};
hardware.nvidia = {
open = true;
modesetting.enable = true;
nvidiaPersistenced = true;
};
sops = {
age.keyFile = "/var/lib/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
defaultSopsFormat = "yaml";
secrets = {
"nathan/pass" = {
neededForUsers = true;
};
remoteBuildKey = {};
};
};
sysconfig = {
docker.nvidia = true;
remoteBuildClient = false;
users = {
nathan = {
isSuperuser = true;
extraGroups = [ "networkmanager" ];
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
extraGroups = [ "networkmanager" "docker" ];
ssh.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnUhN2uHwAJF/SLRX3wlGRmfhV3zpP88JQAYB+gh8jW nathan@localhost"
];
shell = pkgs.zsh;
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
home-manager = {
enable = true;
standalone = false;
@@ -50,25 +76,24 @@
{
homeconfig = {
minimal = false;
hyprland.enable = true;
hyprlock.enable = true;
hyprland.enable = false;
hyprlock.enable = false;
wal.enable = true;
mpd.enable = true;
hyprpanel.enable = true;
hyprpanel.enable = false;
calcurse.enable = true;
rofi.enable = true;
firefox.enable = true;
rofi.enable = false;
firefox.enable = false;
git.enable = true;
nh.enable = true;
};
#monitor=eDP-1, addreserved, 40,0,0,0
wayland.windowManager.hyprland.extraConfig = ''
monitor=eDP-1,1920x1080@60,0x0,1
bind = CTRL SHIFT, XF86Launch2, exec, bash -c 'if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then pkexec --user root /nix/var/nix/profiles/system/bin/switch-to-configuration switch; else pkexec --user root /nix/var/nix/profiles/system/specialisation/docked/bin/switch-to-configuration switch; fi'
bind = ALT, Escape, exec, if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1; else hyprctl keyword monitor eDP-1,1920x1080@300,0x0,1; fi
'';
services.hypridle.enable = lib.mkForce false;
home.packages = with pkgs; [
wayvnc
openrgb
];
}
];
};
@@ -77,8 +102,6 @@
};
services.xserver.videoDrivers = [ "nvidia" ];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions

View File

@@ -4,10 +4,10 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
@@ -30,7 +30,7 @@
modules = [
{ sysconfig.host = host; }
./configuration.nix
./.
olympus.profiles.homebox
];
};