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": {
"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": {

View File

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

View File

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

View File

@ -68,5 +68,6 @@
# Homemade shit
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" ];
};
};
}