diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..71d394f --- /dev/null +++ b/flake.lock @@ -0,0 +1,121 @@ +{ + "nodes": { + "antigravity-nix": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1770196631, + "narHash": "sha256-neRXwIILc8BUFHeT0UM2Mj8Wt1oo4UPpmm4NkfBwQOY=", + "owner": "jacopone", + "repo": "antigravity-nix", + "rev": "acc9baf089a67ef7456117ef31285e34c3294984", + "type": "github" + }, + "original": { + "owner": "jacopone", + "repo": "antigravity-nix", + "type": "github" + } + }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1769580047, + "narHash": "sha256-tNqCP/+2+peAXXQ2V8RwsBkenlfWMERb+Uy6xmevyhM=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "366d78c2856de6ab3411c15c1cb4fb4c2bf5c826", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "release-25.11", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1770136044, + "narHash": "sha256-tlFqNG/uzz2++aAmn4v8J0vAkV3z7XngeIIB3rM3650=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e576e3c9cf9bad747afcddd9e34f51d18c855b4e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-25.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1770141374, + "narHash": "sha256-yD4K/vRHPwXbJf5CK3JkptBA6nFWUKNX/jlFp2eKEQc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "41965737c1797c1d83cfb0b644ed0840a6220bd1", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "antigravity-nix": "antigravity-nix", + "home-manager": "home-manager", + "nixpkgs": "nixpkgs", + "nixpkgs-unstable": "nixpkgs-unstable" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 6d4ee9b..93a832c 100644 --- a/flake.nix +++ b/flake.nix @@ -73,6 +73,7 @@ modules = [ ./hosts/segfault-tower/configuration.nix + home-manager.nixosModules.home-manager { home-manager.backupFileExtension = "backup"; home-manager.useGlobalPkgs = true; diff --git a/home/lukas/tower/packages.nix b/home/lukas/tower/packages.nix index 6ac2de3..6f7cc0b 100644 --- a/home/lukas/tower/packages.nix +++ b/home/lukas/tower/packages.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, antigravity-nix, ... }: { fonts.fontconfig.enable = true; @@ -17,7 +17,6 @@ pkgs.wget pkgs.unzip - pkgs.open-webui pkgs.librechat pkgs.feather @@ -34,21 +33,27 @@ pkgs.eza pkgs.bat pkgs.ripgrep + pkgs.sqlitebrowser pkgs.seahorse pkgs.binutils pkgs.gcc - # pkgs.scenebuilder + pkgs.scenebuilder pkgs.nil pkgs.zotero - pkgs.jabref - (pkgs.aspellWithDicts - (dicts: with dicts; [ de en en-computers ])) + (pkgs.aspellWithDicts ( + dicts: with dicts; [ + de + en + en-computers + ] + )) + + antigravity-nix.packages.x86_64-linux.default ]; } - diff --git a/modules/networking/networkmanager.nix b/modules/networking/networkmanager.nix index 9a0255b..ac90203 100644 --- a/modules/networking/networkmanager.nix +++ b/modules/networking/networkmanager.nix @@ -1,4 +1,12 @@ { networking.networkmanager.enable = true; -} + services.resolved = { + enable = true; + dnssec = "false"; + fallbackDns = [ + "1.1.1.1" + "8.8.8.8" + ]; + }; +} diff --git a/modules/services/ollama.nix b/modules/services/ollama.nix index 4341c9d..f666551 100644 --- a/modules/services/ollama.nix +++ b/modules/services/ollama.nix @@ -14,22 +14,22 @@ Environment = [ "OLLAMA_HOST=0.0.0.0:11434" ]; }; - services.open-webui = { - package = pkgs.open-webui; - enable = true; - port = 8081; - environment = { - ANONYMIZED_TELEMETRY = "False"; - DO_NOT_TRACK = "True"; - SCARF_NO_ANALYTICS = "True"; - OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api"; - OLLAMA_BASE_URL = "http://127.0.0.1:11434"; - WEBUI_AUTH = "False"; - FRONTEND_BUILD_DIR = "${config.services.open-webui.stateDir}/build"; - DATA_DIR = "${config.services.open-webui.stateDir}/data"; - STATIC_DIR = "${config.services.open-webui.stateDir}/static"; - }; - }; + # services.open-webui = { + # package = pkgs.open-webui; + # enable = true; + # port = 8081; + # environment = { + # ANONYMIZED_TELEMETRY = "False"; + # DO_NOT_TRACK = "True"; + # SCARF_NO_ANALYTICS = "True"; + # OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api"; + # OLLAMA_BASE_URL = "http://127.0.0.1:11434"; + # WEBUI_AUTH = "False"; + # FRONTEND_BUILD_DIR = "${config.services.open-webui.stateDir}/build"; + # DATA_DIR = "${config.services.open-webui.stateDir}/data"; + # STATIC_DIR = "${config.services.open-webui.stateDir}/static"; + # }; + # }; services.searx = { enable = true;