spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spin spi
0

Configure Feed

Select the types of activity you want to include in your feed.

nixos moduel

woa woa nix os modelu look look now u can do dis wit agenix 4 ezample

```nix
{ inputs, config, ... }:
{
imports = [ inputs.washing-machien.nixosModules.default ];

services.washing-machien = {
enable = true;
input = ./meow.png;
environmentFile = config.age.secrets.washing-machien.path;
environment.BACKGROUND = "d0c1f5ff";
};
}
```

author
june
committer
Tangled
date (Jun 4, 2026, 5:22 AM +0300) commit b981d1e7 parent 541f660d change-id rquuumll
+83 -1
+6 -1
flake.nix
··· 1 1 { 2 - description = "Rust Project Template"; 2 + description = "washng machein"; 3 3 4 4 inputs = { 5 5 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; ··· 19 19 washing-machien = pkgs.callPackage ./nix/default.nix { }; 20 20 default = self.packages.${pkgs.stdenv.hostPlatform.system}.washing-machien; 21 21 }); 22 + 23 + nixosModules = { 24 + washing-machien = ./nix/module.nix; 25 + default = self.nixosModules.washing-machien; 26 + }; 22 27 23 28 devShells = forAllSystems (pkgs: { 24 29 default = pkgs.callPackage ./nix/shell.nix { };
+77
nix/module.nix
··· 1 + { 2 + lib, 3 + pkgs, 4 + config, 5 + ... 6 + }: 7 + let 8 + inherit (lib) types mkOption; 9 + cfg = config.services.washing-machien; 10 + workingDir = "/tmp/washing-machien"; 11 + description = "wachng dhe machen ,"; 12 + in 13 + { 14 + options.services.washing-machien = { 15 + enable = lib.mkEnableOption description; 16 + 17 + package = mkOption { 18 + type = types.package; 19 + default = pkgs.callPackage ./default.nix { }; 20 + description = "washing-machien package"; 21 + }; 22 + 23 + input = mkOption { 24 + type = types.either types.str types.path; 25 + description = "image to spin!"; 26 + }; 27 + 28 + environment = mkOption { 29 + type = types.submodule { 30 + freeformType = types.attrsOf types.str; 31 + }; 32 + default = { }; 33 + description = '' 34 + environment variables for configuring dhe machinen , 35 + see <https://tangled.org/coil-habdle.ebil.club/washing-machien#usage> 36 + ''; 37 + }; 38 + 39 + environmentFile = mkOption { 40 + type = types.nullOr types.path; 41 + default = null; 42 + description = '' 43 + path to a file containing environment variables for configuring dhe machen , 44 + in the EnvironmentFile format. see {manpage}`systemd.exec(5)` 45 + ''; 46 + }; 47 + }; 48 + 49 + config = lib.mkIf cfg.enable { 50 + systemd.timers.washing-machien = { 51 + wantedBy = [ "timers.target" ]; 52 + 53 + timerConfig = { 54 + OnCalendar = "minutely"; 55 + Unit = "washing-machien.service"; 56 + }; 57 + }; 58 + 59 + systemd.services.washing-machien = { 60 + inherit description; 61 + 62 + wantedBy = [ "multi-user.target" ]; 63 + after = [ "network.target" ]; 64 + 65 + environment = cfg.environment; 66 + 67 + serviceConfig = { 68 + Type = "oneshot"; 69 + ExecStart = "${lib.getExe cfg.package} ${lib.escapeShellArg (toString cfg.input)}"; 70 + EnvironmentFile = cfg.environmentFile; 71 + WorkingDirectory = workingDir; 72 + }; 73 + }; 74 + 75 + systemd.tmpfiles.rules = [ "d ${workingDir} 0755 - - -" ]; 76 + }; 77 + }