Compare commits

..

3 Commits

Author SHA1 Message Date
245276ad76 fix: rustup 2024-12-18 09:03:03 +01:00
c35cd3ee48 feat: added devtools 2024-12-18 08:51:37 +01:00
ef36e6c289 feat: changed thor sleep times 2024-12-18 08:24:52 +01:00
7 changed files with 105 additions and 15 deletions

21
flake.lock generated
View File

@@ -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",

View File

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

View File

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

View 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
];
}

View File

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

View File

@@ -8,7 +8,7 @@
zlib
openssl.dev
pkg-config
nixfmt-rfc-style
# nixfmt-rfc-style
python3
]
);

View File

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