Add ghettoptt service

This commit is contained in:
Torjus Håkestad 2024-03-09 23:19:38 +01:00
parent 137fec122b
commit fb3413baff
5 changed files with 80 additions and 12 deletions

View File

@ -1,5 +1,24 @@
{ {
"nodes": { "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": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -23,16 +42,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1709677081, "lastModified": 1709703039,
"narHash": "sha256-tix36Y7u0rkn6mTm0lA45b45oab2cFLqAzDbJxeXS+c=", "narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=",
"owner": "nixos", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "880992dcc006a5e00dd0591446fdf723e6a51a64", "rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "NixOS",
"ref": "nixos-23.11", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -70,6 +89,22 @@
} }
}, },
"nixpkgs_2": { "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": { "locked": {
"lastModified": 1709479366, "lastModified": 1709479366,
"narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=", "narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=",
@ -85,7 +120,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1709356872, "lastModified": 1709356872,
"narHash": "sha256-mvxCirJbtkP0cZ6ABdwcgTk0u3bgLoIoEFIoYBvD6+4=", "narHash": "sha256-mvxCirJbtkP0cZ6ABdwcgTk0u3bgLoIoEFIoYBvD6+4=",
@ -103,7 +138,7 @@
}, },
"notlistener": { "notlistener": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1709780344, "lastModified": 1709780344,
@ -122,8 +157,9 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"ghettoptt": "ghettoptt",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"notlistener": "notlistener", "notlistener": "notlistener",
"sops-nix": "sops-nix" "sops-nix": "sops-nix"
@ -131,7 +167,7 @@
}, },
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_4",
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {

View File

@ -11,9 +11,18 @@
}; };
sops-nix.url = "github:Mic92/sops-nix"; sops-nix.url = "github:Mic92/sops-nix";
notlistener.url = "git+https://git.t-juice.club/torjus/notlistener?ref=master"; 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 let
system = "x86_64-linux"; system = "x86_64-linux";
user = "torjus"; user = "torjus";
@ -40,7 +49,13 @@
inherit system; inherit system;
specialArgs = { inherit inputs self user sops-nix; }; specialArgs = { inherit inputs self user sops-nix; };
modules = [ modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable notlistener.overlays.default ]; }) ({ config, pkgs, ... }: {
nixpkgs.overlays = [
overlay-unstable
notlistener.overlays.default
ghettoptt.overlays.default
];
})
./hosts/gunter ./hosts/gunter
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
]; ];

View File

@ -22,6 +22,7 @@
./hyprland ./hyprland
./ssh ./ssh
./services/backup-home.nix ./services/backup-home.nix
./services/ghettoptt.nix
]; ];
firefox.enable = true; firefox.enable = true;
tmux.enable = true; tmux.enable = true;

View File

@ -68,5 +68,6 @@
# Homemade shit # Homemade shit
notlistener notlistener
ghettoptt
]; ];
} }

View File

@ -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" ];
};
};
}