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 # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ # Include the results of the hardware scan. imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
(import ./disko.nix { device1 = "/dev/nvme0n1"; device2 = "/dev/nvme1n1"; device3 = "/dev/sda"; })
]; ];
config = { config = {
hardware = { services = {
xserver = {
enable = false;
videoDrivers = ["nvidia"];
};
displayManager = {
enable = false;
defaultSession = "hyprland";
autoLogin = {
enable = true;
user = "nathan";
};
};
pulseaudio.enable = false;
nvidia = { hardware.openrgb = {
modesetting.enable = true; enable = true;
open = false; motherboard = "amd";
nvidiaSettings = true; };
package = config.boot.kernelPackages.nvidiaPackages.stable;
}; };
bluetooth.enable = true; hardware.nvidia = {
open = true;
modesetting.enable = true;
nvidiaPersistenced = true;
}; };
sops = { sops = {
age.keyFile = "/var/lib/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml; defaultSopsFile = ./secrets.yaml;
defaultSopsFormat = "yaml";
secrets = { secrets = {
"nathan/pass" = { "nathan/pass" = {
neededForUsers = true; neededForUsers = true;
}; };
remoteBuildKey = {};
}; };
}; };
sysconfig = { sysconfig = {
docker.nvidia = true;
remoteBuildClient = false;
users = { users = {
nathan = { nathan = {
isSuperuser = true; isSuperuser = true;
extraGroups = [ "networkmanager" ]; extraGroups = [ "networkmanager" "docker" ];
hashedPasswordFile = config.sops.secrets."nathan/pass".path; ssh.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnUhN2uHwAJF/SLRX3wlGRmfhV3zpP88JQAYB+gh8jW nathan@localhost"
];
shell = pkgs.zsh; shell = pkgs.zsh;
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
home-manager = { home-manager = {
enable = true; enable = true;
standalone = false; standalone = false;
@@ -50,25 +76,24 @@
{ {
homeconfig = { homeconfig = {
minimal = false; minimal = false;
hyprland.enable = true; hyprland.enable = false;
hyprlock.enable = true; hyprlock.enable = false;
wal.enable = true; wal.enable = true;
mpd.enable = true; mpd.enable = true;
hyprpanel.enable = true; hyprpanel.enable = false;
calcurse.enable = true; calcurse.enable = true;
rofi.enable = true; rofi.enable = false;
firefox.enable = true; firefox.enable = false;
git.enable = true; git.enable = true;
nh.enable = true; nh.enable = true;
}; };
#monitor=eDP-1, addreserved, 40,0,0,0 services.hypridle.enable = lib.mkForce false;
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
'';
home.packages = with pkgs; [
wayvnc
openrgb
];
} }
]; ];
}; };
@@ -77,8 +102,6 @@
}; };
services.xserver.videoDrivers = [ "nvidia" ];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions

View File

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