diff --git a/flake.lock b/flake.lock index e2e6ce6..a717329 100644 --- a/flake.lock +++ b/flake.lock @@ -7,43 +7,43 @@ ] }, "locked": { - "lastModified": 1758463745, - "narHash": "sha256-uhzsV0Q0I9j2y/rfweWeGif5AWe0MGrgZ/3TjpDYdGA=", + "lastModified": 1766553861, + "narHash": "sha256-ZbnG01yA3O8Yr1vUm3+NQ2qk9iRhS5bloAnuXHHy7+c=", "owner": "nix-community", "repo": "home-manager", - "rev": "3b955f5f0a942f9f60cdc9cacb7844335d0f21c3", + "rev": "0999ed8f965bbbd991437ad9c5ed3434cecbc30e", "type": "github" }, "original": { "owner": "nix-community", - "ref": "release-25.05", + "ref": "release-25.11", "repo": "home-manager", "type": "github" } }, "nixpkgs": { "locked": { - "lastModified": 1762233356, - "narHash": "sha256-cGS3lLTYusbEP/IJIWGgnkzIl+FA5xDvtiHyjalGr4k=", + "lastModified": 1766473571, + "narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ca534a76c4afb2bdc07b681dbc11b453bab21af8", + "rev": "76701a179d3a98b07653e2b0409847499b2a07d3", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-25.05", + "ref": "nixos-25.11", "repo": "nixpkgs", "type": "github" } }, "nixpkgs-unstable": { "locked": { - "lastModified": 1762361079, - "narHash": "sha256-lz718rr1BDpZBYk7+G8cE6wee3PiBUpn8aomG/vLLiY=", + "lastModified": 1766624085, + "narHash": "sha256-ruzNOGQR0HKynAarKRhAYwIZc79IkDqui4ovQmkZPQI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "ffcdcf99d65c61956d882df249a9be53e5902ea5", + "rev": "b72f284b1be41575c3e36cd777a191c29a7adf6a", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 44aebbe..b82fc34 100644 --- a/flake.nix +++ b/flake.nix @@ -2,11 +2,11 @@ description = "NixOS + Home Manager config"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; home-manager = { - url = "github:nix-community/home-manager/release-25.05"; + url = "github:nix-community/home-manager/release-25.11"; inputs.nixpkgs.follows = "nixpkgs"; }; @@ -19,12 +19,18 @@ pkgs-unstable = import inputs.nixpkgs-unstable { system = system; config.allowUnfree = true; + config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "steam" + "steam-original" + "steam-unwrapped" + "steam-run" + ]; }; in { nixosConfigurations = { segfault-machine = lib.nixosSystem { - inherit system; # inherited it from 'let' block + inherit system; # inherited it from let block specialArgs = { inherit pkgs-unstable; }; diff --git a/hosts/segfault-tower/configuration.nix b/hosts/segfault-tower/configuration.nix index fe799f4..ba83ef9 100644 --- a/hosts/segfault-tower/configuration.nix +++ b/hosts/segfault-tower/configuration.nix @@ -22,8 +22,10 @@ ../../modules/system/virtualbox.nix ../../modules/system/mullvad.nix ../../modules/services/ollama.nix + ../../modules/services/steam.nix ]; + # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/modules/services/ollama.nix b/modules/services/ollama.nix index 6e07a54..4341c9d 100644 --- a/modules/services/ollama.nix +++ b/modules/services/ollama.nix @@ -1,9 +1,9 @@ -{config, pkgs-unstable, ... }: +{config, pkgs, ... }: { services.ollama = { enable = true; - package = pkgs-unstable.ollama; + package = pkgs.ollama; acceleration = "cuda"; environmentVariables = { OLLAMA_CONTEXT_LENGTH="32000"; @@ -15,7 +15,7 @@ }; services.open-webui = { - package = pkgs-unstable.open-webui; + package = pkgs.open-webui; enable = true; port = 8081; environment = { diff --git a/modules/services/steam.nix b/modules/services/steam.nix new file mode 100644 index 0000000..baa3811 --- /dev/null +++ b/modules/services/steam.nix @@ -0,0 +1,8 @@ +{ + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; + }; +}