Compare commits

..

2 Commits

Author SHA1 Message Date
Giulio De Pasquale
f8a716f8ba Use aichat flake 2024-06-02 01:39:58 +01:00
Giulio De Pasquale
e06abe1474 Bump to 24.05 2024-06-01 11:41:26 +01:00
11 changed files with 72 additions and 81 deletions

66
flake.lock generated
View File

@ -7,16 +7,16 @@
]
},
"locked": {
"lastModified": 1715381426,
"narHash": "sha256-wPuqrAQGdv3ISs74nJfGb+Yprm23U/rFpcHFFNWgM94=",
"lastModified": 1716736833,
"narHash": "sha256-rNObca6dm7Qs524O4st8VJH6pZ/Xe1gxl+Rx6mcWYo0=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "ab5542e9dbd13d0100f8baae2bc2d68af901f4b4",
"rev": "a631666f5ec18271e86a5cde998cba68c33d9ac6",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-23.11",
"ref": "release-24.05",
"repo": "home-manager",
"type": "github"
}
@ -24,7 +24,7 @@
"local-unstable": {
"locked": {
"lastModified": 0,
"narHash": "sha256-zw0FIry0jIH2RD4oPubgHZ2YZ03s7f5YZyvXT/wvTBA=",
"narHash": "sha256-jZsJ1OJKLBDPlEfP3JMm+268g82AJFG8uIbS77UCzLQ=",
"path": "/home/giulio/dev/nixpkgs",
"type": "path"
},
@ -35,32 +35,32 @@
},
"nixos-unstable": {
"locked": {
"lastModified": 1716499749,
"narHash": "sha256-fCkyXpt1PXihhSWOQdgp2iTY5dgQmkHYDiqg1DhjhIM=",
"owner": "NixOS",
"lastModified": 1717244666,
"narHash": "sha256-ulXScQazlg5gIPbxQ4ZmxuItAaVS/ECee/tUULu3W3Y=",
"owner": "r-ryantm",
"repo": "nixpkgs",
"rev": "b962cd91aa0b1150ebd4e8552943de9b7700fe5e",
"rev": "239c8ca5385287a05ececa3a029354561b88b9f9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"owner": "r-ryantm",
"repo": "nixpkgs",
"rev": "239c8ca5385287a05ececa3a029354561b88b9f9",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1716492874,
"narHash": "sha256-MLI6m4upxQnqAZ8ymRdEmyWa1EnT2C+wgy/HCU8Y3F0=",
"lastModified": 1717284475,
"narHash": "sha256-SujMRmR/1TqanXZMC9gYNXTJHNy1deOmEj3ClE0zY0M=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "880e6beaf8069075941eafac2d18cdd69558a2d2",
"rev": "5a25dc6b7ebfa0747dce67c85480eeda87f6df7a",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-23.11",
"ref": "release-24.05",
"repo": "nixpkgs",
"type": "github"
}
@ -73,15 +73,15 @@
"utils": "utils"
},
"locked": {
"lastModified": 1710353022,
"narHash": "sha256-f4hsLsOqPUlh3iqg6gARj+c4pZzJhaPhoeoH36u0yQM=",
"owner": "peperunas",
"lastModified": 1714473972,
"narHash": "sha256-J1o+D45PXCmPZHvGpA8mhzb7BolvBv0wWY8vYo+WMp8=",
"owner": "icewind1991",
"repo": "nvidia-patch-nixos",
"rev": "021ad79e03f4a2266a98f90ac63b08d3e72f0ab0",
"rev": "0baf075bedfc84dc488000ae6c7cb4ed56967e2f",
"type": "github"
},
"original": {
"owner": "peperunas",
"owner": "icewind1991",
"repo": "nvidia-patch-nixos",
"type": "github"
}
@ -95,13 +95,31 @@
"nvidia-patch": "nvidia-patch"
}
},
"utils": {
"systems": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {

View File

@ -1,14 +1,14 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
nixos-unstable.url = "github:NixOS/nixpkgs/master";
nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
nixos-unstable.url = "github:r-ryantm/nixpkgs/239c8ca5385287a05ececa3a029354561b88b9f9";
local-unstable.url = "path:///home/giulio/dev/nixpkgs";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nvidia-patch = {
url = "github:peperunas/nvidia-patch-nixos";
url = "github:icewind1991/nvidia-patch-nixos";
inputs.nixpkgs.follows = "nixpkgs";
};
};
@ -40,7 +40,7 @@
overlays = [
(final: prev: { inherit unstablePkgs; })
(final: prev: { inherit localPkgs; })
(nvidia-patch.overlay)
(nvidia-patch.overlays.default)
];
};

View File

@ -49,7 +49,7 @@ in
adguardhome = {
enable = true;
settings = {
bind_port = 5354;
port = 5354;
dns = {
port = 5300;
};

View File

@ -47,7 +47,7 @@ in
enable = true;
hostName = domain;
https = true;
package = pkgs.nextcloud28;
package = pkgs.nextcloud29;
datadir = "/services/nextcloud";
configureRedis = true;
caching = {
@ -59,8 +59,11 @@ in
maxUploadSize = "50G";
settings = {
overwriteprotocol = "https";
};
config = {
overwriteProtocol = "https";
dbtype = "mysql";
dbuser = "nextcloud";
dbhost = "localhost";

View File

@ -1,12 +1,6 @@
{ config, pkgs, ... }:
let
rev = "c4388cf"; # revision from https://github.com/keylase/nvidia-patch to use
hash = "sha256-ua6LpbV3ymR22hAT2AZenoMXDqr3DUJ1wtBi/Psypow="; # sha256sum for https://github.com/keylase/nvidia-patch at the specified revision
# create patch functions for the specified revision
nvidia-patch = pkgs.nvidia-patch rev hash;
# nvidia package to patch
nvidiaPackage = config.boot.kernelPackages.nvidiaPackages.latest;
@ -52,7 +46,7 @@ let
global_prep_cmd=[{"do":"${pkgs.bash}/bin/bash -c \"${resolutionScript}/bin/resolution.sh ''${SUNSHINE_CLIENT_WIDTH} ''${SUNSHINE_CLIENT_HEIGHT} ''${SUNSHINE_CLIENT_FPS}\""}]
'';
sunshinePkg = (pkgs.unstablePkgs.sunshine.override { cudaSupport = true; });
in
in
{
boot.kernelModules = [ "uinput" ];
@ -89,7 +83,7 @@ let
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = nvidia-patch.patch-nvenc (nvidia-patch.patch-fbc nvidiaPackage);
package = with pkgs; nvidia-patch.patch-nvenc (nvidia-patch.patch-fbc nvidiaPackage);
};
};
@ -120,20 +114,21 @@ let
KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
'';
displayManager = {
sddm = {
enable = true;
wayland.enable = false;
autoLogin.relogin = true;
};
autoLogin = {
inherit user;
enable = true;
};
};
xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
displayManager = {
sddm = {
enable = true;
wayland.enable = false;
autoLogin.relogin = true;
};
autoLogin = {
inherit user;
enable = true;
};
};
desktopManager.xfce.enable = true;
monitorSection = ''

View File

@ -37,7 +37,7 @@
useGlobalPkgs = true;
};
system.stateVersion = "23.11";
system.stateVersion = "24.05";
}
home-manager.nixosModules.home-manager

View File

@ -14,7 +14,6 @@
nix = {
settings.auto-optimise-store = true;
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';

View File

@ -11,9 +11,9 @@ let
- name: pino
max_input_tokens: null
- name: code-commenter
max_input_tokens: null
max_input_tokens: 32000
- name: git-commit-message
max_input_tokens: null
max_input_tokens: 32000
- type: claude
api_key: null

View File

@ -24,6 +24,6 @@
]
++ lib.optional (!pkgs.stdenv.isDarwin) pastebinit;
stateVersion = "23.11";
stateVersion = "24.05";
};
}

View File

@ -11,7 +11,7 @@
plugins = [ "git" "sudo" "docker" "docker-compose" "adb" "systemd" ];
theme = "bira";
};
enableAutosuggestions = false;
autosuggestion.enable = false;
dotDir = ".config/zsh";
initExtra = ''
# avoid macOS updates to destroy nix

View File

@ -1,24 +0,0 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
shellWithPkgs = packages: pkgs.mkShell {
inherit packages;
};
in
{
devShells.default = shellWithPkgs [ pkgs.hello ];
});
}