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

View file

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

View file

@ -11,6 +11,7 @@
./kde-utils ./kde-utils
./kitty ./kitty
./media ./media
./monitor
./neovim ./neovim
./office ./office
./session-vars ./session-vars
@ -29,6 +30,7 @@
gnome-utils.enable = lib.mkDefault false; gnome-utils.enable = lib.mkDefault false;
kde-utils.enable = lib.mkDefault true; kde-utils.enable = lib.mkDefault true;
kitty.enable = lib.mkDefault true; kitty.enable = lib.mkDefault true;
monitor.enable = lib.mkDefault true;
neovim.enable = lib.mkDefault false; neovim.enable = lib.mkDefault false;
tmux.enable = lib.mkDefault true; tmux.enable = lib.mkDefault true;
vscode.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";
};
};
};
}