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", "nixpkgs": "nixpkgs_7",
"nur": "nur", "nur": "nur",
"rosepine-kvantum": "rosepine-kvantum", "rosepine-kvantum": "rosepine-kvantum",
"rust-overlay": "rust-overlay_2",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",
"split-monitor-workspaces": "split-monitor-workspaces", "split-monitor-workspaces": "split-monitor-workspaces",
"stylix": "stylix", "stylix": "stylix",
@@ -1336,6 +1337,26 @@
"type": "github" "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": { "spicetify-nix": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_4", "flake-compat": "flake-compat_4",

View File

@@ -13,6 +13,11 @@
hyprsysteminfo.url = "github:/hyprwm/hyprsysteminfo"; hyprsysteminfo.url = "github:/hyprwm/hyprsysteminfo";
hyprpolkitagent.url = "github:hyprwm/hyprpolkitagent"; hyprpolkitagent.url = "github:hyprwm/hyprpolkitagent";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = { hyprland = {
type = "git"; type = "git";
url = "https://github.com/hyprwm/Hyprland"; url = "https://github.com/hyprwm/Hyprland";

View File

@@ -4,6 +4,7 @@
if hostname == "zion" then if hostname == "zion" then
[ [
./programs/btop.nix ./programs/btop.nix
./programs/development.nix
./programs/fastfetch.nix ./programs/fastfetch.nix
# ./programs/foot.nix # ./programs/foot.nix
./programs/git.nix ./programs/git.nix
@@ -33,6 +34,7 @@
else if hostname == "thor" then else if hostname == "thor" then
[ [
./programs/btop.nix ./programs/btop.nix
./programs/development.nix
./programs/fastfetch.nix ./programs/fastfetch.nix
# ./programs/foot.nix # ./programs/foot.nix
./programs/git.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 < # # > development < #
android-studio android-studio
docker
docker-compose
seahorse seahorse
platformio
iwgtk iwgtk
imv imv
feh feh
@@ -82,7 +79,7 @@
qalculate-gtk qalculate-gtk
file-roller file-roller
vim vim
nixfmt-rfc-style # nixfmt-rfc-style
nemo nemo
nixd nixd
glfw-wayland-minecraft glfw-wayland-minecraft

View File

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

View File

@@ -1,9 +1,8 @@
{ { lib
lib, , pkgs
pkgs, , inputs
inputs, , hostname
hostname, , ...
...
}: }:
{ {
# ------------------------------------------------ # ------------------------------------------------
@@ -713,26 +712,31 @@
else if hostname == "thor" then else if hostname == "thor" then
[ [
{ {
timeout = 300; timeout = 450;
on-timeout = "brightnessctl -s set 0"; on-timeout = "brightnessctl -s set 0";
on-resume = "brightnessctl -r"; on-resume = "brightnessctl -r";
} }
{ {
timeout = 400; # 10min timeout = 600;
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
} }
{ {
timeout = 450; timeout = 750;
on-timeout = "hyprctl dispatch dpms off "; on-timeout = "hyprctl dispatch dpms off ";
on-resume = "hyprctl dispatch dpms on"; on-resume = "hyprctl dispatch dpms on";
} }
{ {
timeout = 600; timeout = 900;
on-timeout = "systemctl suspend"; on-timeout = "systemctl suspend";
} }
{
timeout = 1500;
on-timeout = "systemctl hibernate";
}
] ]
else else
[ ]; [ ];