From fb3413baff538c6c612777c5cafa9bf0e43a2ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 9 Mar 2024 23:19:38 +0100 Subject: [PATCH] Add ghettoptt service --- flake.lock | 56 ++++++++++++++++++++++++++++++------- flake.nix | 19 +++++++++++-- home/default.nix | 1 + home/packages/default.nix | 1 + home/services/ghettoptt.nix | 15 ++++++++++ 5 files changed, 80 insertions(+), 12 deletions(-) create mode 100644 home/services/ghettoptt.nix diff --git a/flake.lock b/flake.lock index afc76d2..0f4dc08 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,24 @@ { "nodes": { + "ghettoptt": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1710021595, + "narHash": "sha256-kOzZnP8+4Q1A1WaxUMjTQhE+bJBVRBe9r1uzLWFt/+U=", + "ref": "master", + "rev": "6987925decd2e950df4b39f3272b5e968cba3840", + "revCount": 3, + "type": "git", + "url": "https://git.t-juice.club/torjus/ghettoptt" + }, + "original": { + "ref": "master", + "type": "git", + "url": "https://git.t-juice.club/torjus/ghettoptt" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -23,16 +42,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1709677081, - "narHash": "sha256-tix36Y7u0rkn6mTm0lA45b45oab2cFLqAzDbJxeXS+c=", - "owner": "nixos", + "lastModified": 1709703039, + "narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "880992dcc006a5e00dd0591446fdf723e6a51a64", + "rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d", "type": "github" }, "original": { - "owner": "nixos", - "ref": "nixos-23.11", + "owner": "NixOS", + "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } @@ -70,6 +89,22 @@ } }, "nixpkgs_2": { + "locked": { + "lastModified": 1709677081, + "narHash": "sha256-tix36Y7u0rkn6mTm0lA45b45oab2cFLqAzDbJxeXS+c=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "880992dcc006a5e00dd0591446fdf723e6a51a64", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-23.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1709479366, "narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=", @@ -85,7 +120,7 @@ "type": "github" } }, - "nixpkgs_3": { + "nixpkgs_4": { "locked": { "lastModified": 1709356872, "narHash": "sha256-mvxCirJbtkP0cZ6ABdwcgTk0u3bgLoIoEFIoYBvD6+4=", @@ -103,7 +138,7 @@ }, "notlistener": { "inputs": { - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs_3" }, "locked": { "lastModified": 1709780344, @@ -122,8 +157,9 @@ }, "root": { "inputs": { + "ghettoptt": "ghettoptt", "home-manager": "home-manager", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "nixpkgs-unstable": "nixpkgs-unstable", "notlistener": "notlistener", "sops-nix": "sops-nix" @@ -131,7 +167,7 @@ }, "sops-nix": { "inputs": { - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_4", "nixpkgs-stable": "nixpkgs-stable" }, "locked": { diff --git a/flake.nix b/flake.nix index 8e8fd04..cba565a 100644 --- a/flake.nix +++ b/flake.nix @@ -11,9 +11,18 @@ }; sops-nix.url = "github:Mic92/sops-nix"; notlistener.url = "git+https://git.t-juice.club/torjus/notlistener?ref=master"; + ghettoptt.url = "git+https://git.t-juice.club/torjus/ghettoptt?ref=master"; }; - outputs = { self, nixpkgs, nixpkgs-unstable, sops-nix, notlistener, ... }@inputs: + outputs = + { self + , nixpkgs + , nixpkgs-unstable + , sops-nix + , notlistener + , ghettoptt + , ... + }@inputs: let system = "x86_64-linux"; user = "torjus"; @@ -40,7 +49,13 @@ inherit system; specialArgs = { inherit inputs self user sops-nix; }; modules = [ - ({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable notlistener.overlays.default ]; }) + ({ config, pkgs, ... }: { + nixpkgs.overlays = [ + overlay-unstable + notlistener.overlays.default + ghettoptt.overlays.default + ]; + }) ./hosts/gunter sops-nix.nixosModules.sops ]; diff --git a/home/default.nix b/home/default.nix index ad23918..5ce15d2 100644 --- a/home/default.nix +++ b/home/default.nix @@ -22,6 +22,7 @@ ./hyprland ./ssh ./services/backup-home.nix + ./services/ghettoptt.nix ]; firefox.enable = true; tmux.enable = true; diff --git a/home/packages/default.nix b/home/packages/default.nix index 7da385f..92ed7f4 100644 --- a/home/packages/default.nix +++ b/home/packages/default.nix @@ -68,5 +68,6 @@ # Homemade shit notlistener + ghettoptt ]; } diff --git a/home/services/ghettoptt.nix b/home/services/ghettoptt.nix new file mode 100644 index 0000000..24f7f57 --- /dev/null +++ b/home/services/ghettoptt.nix @@ -0,0 +1,15 @@ +{ pkgs, config, ... }: +{ + systemd.user.services.ghettoptt = { + Unit = { + Description = "Run ghettoptt"; + }; + Service = { + Type = "simple"; + ExecStart = "${pkgs.ghettoptt}/bin/ghettoptt"; + }; + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + }; +}