mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 15:56:12 +01:00
Compare commits
3 Commits
e2bf162c92
...
245276ad76
| Author | SHA1 | Date | |
|---|---|---|---|
| 245276ad76 | |||
| c35cd3ee48 | |||
| ef36e6c289 |
21
flake.lock
generated
21
flake.lock
generated
@@ -1286,6 +1286,7 @@
|
||||
"nixpkgs": "nixpkgs_7",
|
||||
"nur": "nur",
|
||||
"rosepine-kvantum": "rosepine-kvantum",
|
||||
"rust-overlay": "rust-overlay_2",
|
||||
"spicetify-nix": "spicetify-nix",
|
||||
"split-monitor-workspaces": "split-monitor-workspaces",
|
||||
"stylix": "stylix",
|
||||
@@ -1336,6 +1337,26 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"rust-overlay_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1734489114,
|
||||
"narHash": "sha256-dKBBZr2pw7KDI/7GeiN5qPccqqtvnK2jqAMcMo4rVvU=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "b2e385f8e5c1d7c0d9ce738d650955c2e94555ae",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"spicetify-nix": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_4",
|
||||
|
||||
@@ -13,6 +13,11 @@
|
||||
hyprsysteminfo.url = "github:/hyprwm/hyprsysteminfo";
|
||||
hyprpolkitagent.url = "github:hyprwm/hyprpolkitagent";
|
||||
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
hyprland = {
|
||||
type = "git";
|
||||
url = "https://github.com/hyprwm/Hyprland";
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
if hostname == "zion" then
|
||||
[
|
||||
./programs/btop.nix
|
||||
./programs/development.nix
|
||||
./programs/fastfetch.nix
|
||||
# ./programs/foot.nix
|
||||
./programs/git.nix
|
||||
@@ -33,6 +34,7 @@
|
||||
else if hostname == "thor" then
|
||||
[
|
||||
./programs/btop.nix
|
||||
./programs/development.nix
|
||||
./programs/fastfetch.nix
|
||||
# ./programs/foot.nix
|
||||
./programs/git.nix
|
||||
|
||||
61
home/programs/development.nix
Normal file
61
home/programs/development.nix
Normal file
@@ -0,0 +1,61 @@
|
||||
{ inputs, pkgs, rust-overlay, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# general
|
||||
docker
|
||||
docker-compose
|
||||
|
||||
# iot
|
||||
platformio
|
||||
|
||||
# rust
|
||||
openssl
|
||||
rustup
|
||||
pkg-config
|
||||
cargo-deny
|
||||
cargo-edit
|
||||
cargo-watch
|
||||
# rust-analyzer
|
||||
|
||||
# bash
|
||||
shellcheck
|
||||
|
||||
# nodejs
|
||||
node2nix
|
||||
nodejs
|
||||
nodePackages.pnpm
|
||||
yarn
|
||||
|
||||
# # python
|
||||
# python311
|
||||
# python311Packages.pip
|
||||
# python311Packages.venvShellHook
|
||||
|
||||
# cpp
|
||||
clang-tools
|
||||
cmake
|
||||
codespell
|
||||
conan
|
||||
cppcheck
|
||||
doxygen
|
||||
gtest
|
||||
lcov
|
||||
vcpkg
|
||||
# vcpkg-tool
|
||||
valgrind
|
||||
|
||||
# haskell
|
||||
cabal-install
|
||||
ghc
|
||||
haskell-language-server
|
||||
|
||||
# nix
|
||||
cachix
|
||||
lorri
|
||||
niv
|
||||
nixfmt-classic
|
||||
statix
|
||||
vulnix
|
||||
haskellPackages.dhall-nix
|
||||
];
|
||||
}
|
||||
@@ -66,10 +66,7 @@
|
||||
|
||||
# > development < #
|
||||
android-studio
|
||||
docker
|
||||
docker-compose
|
||||
seahorse
|
||||
platformio
|
||||
iwgtk
|
||||
imv
|
||||
feh
|
||||
@@ -82,7 +79,7 @@
|
||||
qalculate-gtk
|
||||
file-roller
|
||||
vim
|
||||
nixfmt-rfc-style
|
||||
# nixfmt-rfc-style
|
||||
nemo
|
||||
nixd
|
||||
glfw-wayland-minecraft
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
zlib
|
||||
openssl.dev
|
||||
pkg-config
|
||||
nixfmt-rfc-style
|
||||
# nixfmt-rfc-style
|
||||
python3
|
||||
]
|
||||
);
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
hostname,
|
||||
...
|
||||
{ lib
|
||||
, pkgs
|
||||
, inputs
|
||||
, hostname
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
# ------------------------------------------------
|
||||
@@ -713,26 +712,31 @@
|
||||
else if hostname == "thor" then
|
||||
[
|
||||
{
|
||||
timeout = 300;
|
||||
timeout = 450;
|
||||
on-timeout = "brightnessctl -s set 0";
|
||||
on-resume = "brightnessctl -r";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 400; # 10min
|
||||
timeout = 600;
|
||||
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 450;
|
||||
timeout = 750;
|
||||
on-timeout = "hyprctl dispatch dpms off ";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 600;
|
||||
timeout = 900;
|
||||
on-timeout = "systemctl suspend";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 1500;
|
||||
on-timeout = "systemctl hibernate";
|
||||
}
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
|
||||
Reference in New Issue
Block a user