Update ankaa config

This commit is contained in:
2024-09-08 11:38:30 -05:00
committed by Ethan Simmons
parent 34902172ee
commit 5abf1281f5
6 changed files with 36 additions and 23 deletions

36
flake.lock generated
View File

@@ -64,11 +64,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722462338, "lastModified": 1724435763,
"narHash": "sha256-ss0G8t8RJVDewA3MyqgAlV951cWRK6EtVhVKEZ7J5LU=", "narHash": "sha256-UNky3lJNGQtUEXT2OY8gMxejakSWPTfWKvpFkpFlAfM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "6e090576c4824b16e8759ebca3958c5b09659ee8", "rev": "c2cd2a52e02f1dfa1c88f95abeb89298d46023be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -83,11 +83,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1722588653, "lastModified": 1724858880,
"narHash": "sha256-ecdFExRGQchpYG2T4A53GCcCJ+2xIEklcYGIBhpuI+s=", "narHash": "sha256-gXLnMy8oAW2IxpmkrB2cp2BnC2hz5Pbsjvwo3cqXVWs=",
"owner": "ggerganov", "owner": "ggerganov",
"repo": "llama.cpp", "repo": "llama.cpp",
"rev": "e09a800f9a9b19c73aa78e03b4c4be8ed988f3e6", "rev": "9fe94ccac92693d4ae1bc283ff0574e8b3f4e765",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -98,11 +98,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1722062969, "lastModified": 1723637854,
"narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=", "narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3", "rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -126,11 +126,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1722372011, "lastModified": 1724727824,
"narHash": "sha256-B2xRiC3NEJy/82ugtareBkRqEkPGpMyjaLxaR8LBxNs=", "narHash": "sha256-0XH9MJk54imJm+RHOLTUJ7e+ponLW00tw5ke4MTVa1Y=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cf05eeada35e122770c5c14add958790fcfcbef5", "rev": "36bae45077667aff5720e5b3f1a5458f51cf0776",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -158,11 +158,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1722421184, "lastModified": 1724479785,
"narHash": "sha256-/DJBI6trCeVnasdjUo9pbnodCLZcFqnVZiLUfqLH4jA=", "narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9f918d616c5321ad374ae6cb5ea89c9e04bf3e58", "rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -205,11 +205,11 @@
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
}, },
"locked": { "locked": {
"lastModified": 1722114803, "lastModified": 1723501126,
"narHash": "sha256-s6YhI8UHwQvO4cIFLwl1wZ1eS5Cuuw7ld2VzUchdFP0=", "narHash": "sha256-N9IcHgj/p1+2Pvk8P4Zc1bfrMwld5PcosVA0nL6IGdE=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "eb34eb588132d653e4c4925d862f1e5a227cc2ab", "rev": "be0eec2d27563590194a9206f551a6f73d52fa34",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -46,7 +46,7 @@
options = { options = {
openssh = { openssh = {
enable = true; enable = true;
port = 2222; allow-password = true;
}; };
backup = { backup = {
@@ -75,7 +75,6 @@
gui = { gui = {
enable = true; enable = true;
protonmail = true; protonmail = true;
matrix = true;
gtk = false; gtk = false;
sway = { sway = {
@@ -88,12 +87,12 @@
monitor = "DP-2"; monitor = "DP-2";
resolution = "3440x1440"; resolution = "3440x1440";
refreshRate = 144; refreshRate = 144;
x = 1920;
wallpaper = "solar_system.png"; wallpaper = "solar_system.png";
}) })
(utils.mkMonitor { (utils.mkMonitor {
monitor = "HDMI-A-1"; monitor = "HDMI-A-1";
resolution = "1920x1080"; resolution = "1920x1080";
x = 3440;
refreshRate = 75; refreshRate = 75;
}) })
]; ];
@@ -180,7 +179,7 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
overlays = with overlays; []; overlays = with overlays; [ printrun ];
config.allowUnfree = true; config.allowUnfree = true;
}; };
@@ -213,6 +212,7 @@
{ {
networking.hostName = hostname; networking.hostName = hostname;
simmer = config.options; simmer = config.options;
nix.settings.trusted-users = [ "eesim" ];
} }
systemConfig systemConfig
(./. + "/hosts/${hostname}/hardware-configuration.nix") (./. + "/hosts/${hostname}/hardware-configuration.nix")

View File

@@ -19,6 +19,8 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
localPackages.x86_64-linux.jhelioviewer localPackages.x86_64-linux.jhelioviewer
lemurs lemurs
printrun
pciutils
]; ];
services.hardware.openrgb.enable = true; services.hardware.openrgb.enable = true;

View File

@@ -14,7 +14,7 @@ in
ports = [ cfg.port ]; ports = [ cfg.port ];
settings = { settings = {
PermitRootLogin = "no"; PermitRootLogin = "no";
PasswordAuthentication = false; PasswordAuthentication = cfg.allow-password;
}; };
}; };
}; };

View File

@@ -2,4 +2,5 @@
{ {
gamescope = import ./gamescope-last-working.nix; gamescope = import ./gamescope-last-working.nix;
llama-cpp = import ./llama-cpp.nix { inherit inputs; }; llama-cpp = import ./llama-cpp.nix { inherit inputs; };
printrun = import ./printrun.nix { inherit inputs; };
} }

10
overlays/printrun.nix Normal file
View File

@@ -0,0 +1,10 @@
{ inputs, ... }:
let
system = "x86_64-linux";
pkgs = inputs.nixpkgs-unstable.legacyPackages.${system};
in
final: prev: {
printrun = prev.printrun.overrideAttrs ( finalAttrs: previousAttrs: {
propagatedBuildInputs = previousAttrs.propagatedBuildInputs ++ [ pkgs.python312Packages.platformdirs ];
});
}