Compare commits

..

3 commits

Author SHA1 Message Date
6a19220fae
format code 2024-09-11 10:39:42 +05:30
cb2394cd14
add timer 2024-09-11 09:37:54 +05:30
b528ac04a3
switch neve source 2024-09-10 20:00:20 +05:30
4 changed files with 133 additions and 48 deletions

View file

@ -2,12 +2,6 @@
"nodes": {
"devshell": {
"inputs": {
"flake-utils": [
"neve",
"nixvim",
"nuschtosSearch",
"flake-utils"
],
"nixpkgs": [
"neve",
"nixvim",
@ -15,11 +9,11 @@
]
},
"locked": {
"lastModified": 1721902368,
"narHash": "sha256-noQ5SghRPe0jzQEbFQb3fYbV6LZEzr7lIRQoxlU7fyI=",
"lastModified": 1722113426,
"narHash": "sha256-Yo/3loq572A8Su6aY5GP56knpuKYRvM2a1meP9oJZCw=",
"owner": "numtide",
"repo": "devshell",
"rev": "cf8c7405479cfde7ea4dc815e195391d2328df10",
"rev": "67cce7359e4cd3c45296fb4aaf6a19e2a9c757ae",
"type": "github"
},
"original": {
@ -51,11 +45,11 @@
]
},
"locked": {
"lastModified": 1719994518,
"narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
"lastModified": 1722555600,
"narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
"rev": "8471fe90ad337a8074e957b69ca4d0089218391d",
"type": "github"
},
"original": {
@ -100,6 +94,24 @@
"type": "github"
}
},
"flake-utils_3": {
"inputs": {
"systems": "systems_3"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"git-hooks": {
"inputs": {
"flake-compat": [
@ -120,11 +132,11 @@
]
},
"locked": {
"lastModified": 1721042469,
"narHash": "sha256-6FPUl7HVtvRHCCBQne7Ylp4p+dpP3P/OYuzjztZ4s70=",
"lastModified": 1723803910,
"narHash": "sha256-yezvUuFiEnCFbGuwj/bQcqg7RykIEqudOy/RBrId0pc=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "f451c19376071a90d8c58ab1a953c6e9840527fd",
"rev": "bfef0ada09e2c8ac55bbcd0831bd0c9d42e651ba",
"type": "github"
},
"original": {
@ -186,11 +198,11 @@
]
},
"locked": {
"lastModified": 1721852138,
"narHash": "sha256-JH8N5uoqoVA6erV4O40VtKKHsnfmhvMGbxMNDLtim5o=",
"lastModified": 1723986931,
"narHash": "sha256-Fy+KEvDQ+Hc8lJAV3t6leXhZJ2ncU5/esxkgt3b8DEY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "304a011325b7ac7b8c9950333cd215a7aa146b0e",
"rev": "2598861031b78aadb4da7269df7ca9ddfc3e1671",
"type": "github"
},
"original": {
@ -215,22 +227,43 @@
"type": "github"
}
},
"neve": {
"monitor": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim"
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1722181694,
"narHash": "sha256-RNGQ6Hf3wdFvp9kR4vBv8wucpiL1pBChkUFLC1+RsDE=",
"lastModified": 1726021638,
"narHash": "sha256-nnkyh02DAjbcg4w4sT+hKW77hW/tT8pQHK997wYjtUo=",
"owner": "akr2002",
"repo": "neve",
"rev": "08420902d82a0d59464459ffb43562418689a583",
"repo": "monitor",
"rev": "311fd173ec9fa1a71317f5d36d00de47cba2aec8",
"type": "github"
},
"original": {
"owner": "akr2002",
"repo": "monitor",
"type": "github"
}
},
"neve": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim"
},
"locked": {
"lastModified": 1724285379,
"narHash": "sha256-0Y1R057Z43M8cwf2nnzA759Oq7SwktgfC9NiQKYZIcs=",
"owner": "redyf",
"repo": "neve",
"rev": "1038e7aa676dc11e756f2c6227082fab7fc32945",
"type": "github"
},
"original": {
"owner": "redyf",
"repo": "neve",
"type": "github"
}
@ -244,11 +277,11 @@
]
},
"locked": {
"lastModified": 1721719500,
"narHash": "sha256-nnkqjv4Y37Hydjh6HE9wW4kSkV5Q7q4iIXlL5lwUFOw=",
"lastModified": 1723859949,
"narHash": "sha256-kiaGz4deGYKMjJPOji/JVvSP/eTefrIA3rAjOnOpXl4=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "884f3fe6d9bf056ba0017c132c39c1f0d07d4fec",
"rev": "076b9a905af8a52b866c8db068d6da475839d97b",
"type": "github"
},
"original": {
@ -259,12 +292,10 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1721782431,
"narHash": "sha256-UNDpwjYxNXQet/g3mgRLsQ9zxrbm9j2JEvP4ijF3AWs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4f02464258baaf54992debfd010a7a3662a25536",
"type": "github"
"lastModified": 0,
"narHash": "sha256-/DJBI6trCeVnasdjUo9pbnodCLZcFqnVZiLUfqLH4jA=",
"path": "/nix/store/7v6l2v247fmdgfpbs3w91mf6rinai4yk-source",
"type": "path"
},
"original": {
"id": "nixpkgs",
@ -273,11 +304,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1721743106,
"narHash": "sha256-adRZhFpBTnHiK3XIELA3IBaApz70HwCYfv7xNrHjebA=",
"lastModified": 1723991338,
"narHash": "sha256-Grh5PF0+gootJfOJFenTTxDTYPidA3V28dqJ/WV7iis=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dc14ed91132ee3a26255d01d8fd0c1f5bff27b2f",
"rev": "8a3354191c0d7144db9756a74755672387b702ba",
"type": "github"
},
"original": {
@ -316,11 +347,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1721946885,
"narHash": "sha256-b90iLj3d9tLz5/M8dDnhD5j9vAWjpoNn5WhCLnIwK/g=",
"lastModified": 1724127528,
"narHash": "sha256-fKtsvNQeLhPuz1O53x6Xxkd/yYecpolNXRq7mfvnXQk=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "47b6c4804f69556dc22aa2a2e64721f216b69090",
"rev": "cb413995e1e101c76d755b7f131ce60c7ea3985d",
"type": "github"
},
"original": {
@ -331,7 +362,7 @@
},
"nuschtosSearch": {
"inputs": {
"flake-utils": "flake-utils_2",
"flake-utils": "flake-utils_3",
"nixpkgs": [
"neve",
"nixvim",
@ -339,11 +370,11 @@
]
},
"locked": {
"lastModified": 1721548975,
"narHash": "sha256-agCbztdk1f7nCUz03R6xdbivuBRuqubP2RHW+MNuRTg=",
"lastModified": 1723969429,
"narHash": "sha256-BuewfNEXEf11MIkJY+uvWsdLu1dIvgJqntWChvNdALg=",
"owner": "NuschtOS",
"repo": "search",
"rev": "551b031e2bc0bcc9584347a8da6312e57169661d",
"rev": "a05d1805f2a2bc47d230e5e92aecbf69f784f3d0",
"type": "github"
},
"original": {
@ -376,6 +407,7 @@
"inputs": {
"home-manager": "home-manager",
"master": "master",
"monitor": "monitor",
"neve": "neve",
"nixpkgs": "nixpkgs_3",
"nyaa": "nyaa"
@ -411,6 +443,21 @@
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
@ -420,11 +467,11 @@
]
},
"locked": {
"lastModified": 1721769617,
"narHash": "sha256-6Pqa0bi5nV74IZcENKYRToRNM5obo1EQ+3ihtunJ014=",
"lastModified": 1723808491,
"narHash": "sha256-rhis3qNuGmJmYC/okT7Dkc4M8CeUuRCSvW6kC2f3hBc=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "8db8970be1fb8be9c845af7ebec53b699fe7e009",
"rev": "1d07739554fdc4f8481068f1b11d6ab4c1a4167a",
"type": "github"
},
"original": {

View file

@ -6,6 +6,10 @@
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
monitor = {
url = "github:akr2002/monitor";
inputs.nixpkgs.follows = "nixpkgs";
};
#nv = {
# url = "github:akr2002/nv";
# inputs.nixpkgs.follows = "nixpkgs";
@ -15,7 +19,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
neve = {
url = "github:akr2002/neve";
url = "github:redyf/neve";
};
};

View file

@ -11,6 +11,7 @@
./kde-utils
./kitty
./media
./monitor
./neovim
./office
./session-vars
@ -29,6 +30,7 @@
gnome-utils.enable = lib.mkDefault false;
kde-utils.enable = lib.mkDefault true;
kitty.enable = lib.mkDefault true;
monitor.enable = lib.mkDefault true;
neovim.enable = lib.mkDefault false;
tmux.enable = lib.mkDefault true;
vscode.enable = lib.mkDefault true;

View file

@ -0,0 +1,32 @@
{
config,
inputs,
lib,
pkgs,
...
}: {
options = {
monitor.enable = lib.mkEnableOption "enable monitor";
};
config = lib.mkIf config.monitor.enable {
systemd.user.timers.monitor = {
Install.WantedBy = [ "timers.target" ];
Timer = {
OnBootSec = "1m";
OnUnitActiveSec = "1m";
Unit = "monitor.service";
};
};
systemd.user.services.monitor = {
Unit = {
Description = "A script to monitor websites.";
};
Install = {
WantedBy = [ "default.target" ];
};
Service = {
ExecStart = "${inputs.monitor.packages.${pkgs.system}.default}/bin/monitor";
};
};
};
}