remove github workflows and add breaktimer

This commit is contained in:
Rouven Seifert 2023-08-19 14:12:51 +02:00
parent 346d04e632
commit a1dc57a8de
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
8 changed files with 60 additions and 44 deletions

View file

@ -1,21 +0,0 @@
name: Check
on:
pull_request:
branches:
- main
jobs:
check-flake:
name: Nixpkgs Formatting and Flake check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix flake check

View file

@ -236,11 +236,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1691765042, "lastModified": 1692394475,
"narHash": "sha256-EeMn5KYej0NmCf3ghOjq2s8axjaKfqurak5FzScGTO0=", "narHash": "sha256-r3zTlMIdDhMdxKtQtj3Sg85baCVF6/7y5qR9Koav5XI=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "ee3171cc54052bc8d3569cc04bd9f6a57b43afca", "rev": "e4c95f65a64a0553e1dafa365a40dcd5c328fa69",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -255,11 +255,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1691853673, "lastModified": 1692260837,
"narHash": "sha256-GyiO0cIQjfcBHB6CfF0/36EjFNfCXtXtB12k6h2qPtg=", "narHash": "sha256-2FpkX1zl+7ni7djK7NeE1ZGupRUwZgjW+RPCSBgDf4k=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "255f921049df8d45fb5afa2529b79106edbd8301", "rev": "6a94c1a59737783c282c4031555a289c28b961e4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -356,11 +356,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1691292840, "lastModified": 1691897365,
"narHash": "sha256-NA+o/NoOOQhzAQwB2JpeKoG+iYQ6yn/XXVxaGd5HSQI=", "narHash": "sha256-jvWIU4ht3YAmF8TDVM2Ps2+Gf4MtNGLL1zEWQZdTrzU=",
"owner": "Mic92", "owner": "Mic92",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "6c626d54d0414d34c771c0f6f9d771bc8aaaa3c4", "rev": "f4d70d098f066a30c7087144063dca179495f7d6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -371,11 +371,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1691730710, "lastModified": 1692373088,
"narHash": "sha256-q/UBet5RdX8CBjOIpI2Y8EB8DXYr9cb7WuNGTP9HKf8=", "narHash": "sha256-EPgCecdc9I8aTdmDNoO1l7R72r2WPhZRcesV4nzxBj8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "f61352cf8066ddd3dfe9058e62184bae7382672d", "rev": "7f1836531b126cfcf584e7d7d71bf8758bb58969",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -432,11 +432,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1691280485, "lastModified": 1691874659,
"narHash": "sha256-/8Ct9092OC1TTNzHgbcE9ejQdS2QxZYGqrWXEwUxdtQ=", "narHash": "sha256-qgmixg0c/CRNT2p9Ad35kaC7NzYVZ6GRooErYI7OGJM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "240472b7e47a641e9e7675f58b64d3626ca7824d", "rev": "efeed708ece1a9f4ae0506ae4a4d7da264a74102",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -448,11 +448,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1691654369, "lastModified": 1692356644,
"narHash": "sha256-gSILTEx1jRaJjwZxRlnu3ZwMn1FVNk80qlwiCX8kmpo=", "narHash": "sha256-AYkPFT+CbCVSBmh0WwIzPpwhEJ4Yy3A7JZvUkGJIg5o=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e", "rev": "8ecc900b2f695d74dea35a92f8a9f9b32c8ea33d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -586,11 +586,11 @@
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
}, },
"locked": { "locked": {
"lastModified": 1691830846, "lastModified": 1692127428,
"narHash": "sha256-ffR5maL8R4gsoF43YZRSBVzB7qYxzG+Ssjjktg80Wy4=", "narHash": "sha256-+e9dD67mpGLBhhqdv7A7i1g/r2AT/PmqthWaYHyVZR4=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "5f5d9a3c8bc247eb574823b9f16a79e054dafe73", "rev": "f81e73cf9a4ef4b949b9225be3daa1e586c096da",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -103,7 +103,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = attrs; specialArgs = attrs;
modules = [ modules = [
nixos-hardware.nixosModules.intel-nuc-8i7beh nixos-hardware.nixosModules.common-pc-ssd
nix-index-database.nixosModules.nix-index nix-index-database.nixosModules.nix-index
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
./hosts/nuc ./hosts/nuc

View file

@ -16,6 +16,7 @@
hostName = "thinkpad"; hostName = "thinkpad";
hostId = "d8d34032"; hostId = "d8d34032";
enableIPv6 = true; enableIPv6 = true;
firewall.allowedTCPPorts = [ 24727 ];
wireless = { wireless = {
enable = true; enable = true;
userControlled.enable = true; userControlled.enable = true;

View file

@ -1 +0,0 @@
wallpapers/stalenhag.png

Before

Width:  |  Height:  |  Size: 24 B

After

Width:  |  Height:  |  Size: 2.1 MiB

BIN
images/wallpaper.png Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 B

After

Width:  |  Height:  |  Size: 2.1 MiB

View file

@ -24,7 +24,6 @@
la = "ls -a"; la = "ls -a";
less = "bat"; less = "bat";
update = "cd /etc/nixos && nix flake update"; update = "cd /etc/nixos && nix flake update";
garbage = "${pkgs.home-manager}/bin/home-manager expire-generations \"-0 days\" && sudo nix-collect-garbage -d";
}; };
histSize = 100000; histSize = 100000;
histFile = "~/.local/share/zsh/history"; histFile = "~/.local/share/zsh/history";
@ -73,12 +72,21 @@
unlink $OUT_PATH unlink $OUT_PATH
} }
garbage() {
${pkgs.home-manager}/bin/home-manager expire-generations "-0 days"
sudo nix-collect-garbage -d
echo Cleaning up boot entries...
sudo /run/current-system/bin/switch-to-configuration boot
echo Done
}
sysdiff() { sysdiff() {
echo System package diff: echo System package diff:
${config.nix.package}/bin/nix store diff-closures $(command ls -d /nix/var/nix/profiles/system-* | tail -2) ${config.nix.package}/bin/nix store diff-closures $(command ls -d /nix/var/nix/profiles/system-* | tail -2)
} }
shell() { shell() {
unset PKGS
for var in "$@" for var in "$@"
do do
PKGS=$PKGS\ nixpkgs/nixos-unstable#$var PKGS=$PKGS\ nixpkgs/nixos-unstable#$var

View file

@ -0,0 +1,27 @@
{ pkgs, lib, ... }:
{
systemd.user = {
services.breaktimer = {
Unit = {
Description = "Simple notification to take a break";
};
Service = {
Type = "oneshot";
ExecStart = ''${lib.getExe pkgs.libnotify} -i clock -e "It's time for a break" "Relax your eyes"'';
};
};
timers.breaktimer = {
Unit = {
Description = "Timer for the break notification";
};
Timer = {
OnCalendar = "*:0/20";
Unit = "breaktimer.service";
};
Install = {
WantedBy = [ "timers.target" ];
};
};
};
}

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
# ./sway.nix # ./sway.nix
./breaktimer.nix
./river.nix ./river.nix
./waybar.nix ./waybar.nix
./shikane.nix ./shikane.nix