Compare commits
10 Commits
77eabee8d8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| edb6e6fac1 | |||
| c06ca8a6cd | |||
| 469d8d7fce | |||
| da935b4ccf | |||
| b68ff35b8e | |||
| 6fcc233103 | |||
| 3c2fe7775b | |||
| c40a2ac98b | |||
| 7286a6e6c1 | |||
| 62b27043f1 |
6
flake.lock
generated
6
flake.lock
generated
@@ -2,11 +2,11 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769170682,
|
"lastModified": 1771008912,
|
||||||
"narHash": "sha256-oMmN1lVQU0F0W2k6OI3bgdzp2YOHWYUAw79qzDSjenU=",
|
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c5296fdd05cfa2c187990dd909864da9658df755",
|
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
@@ -17,16 +16,16 @@
|
|||||||
../../modules/de/gnome.nix
|
../../modules/de/gnome.nix
|
||||||
../../modules/common/pipewire.nix
|
../../modules/common/pipewire.nix
|
||||||
../../modules/userapps/kondo_timer.nix
|
../../modules/userapps/kondo_timer.nix
|
||||||
../../modules/userapps/gaming.nix
|
#../../modules/userapps/gaming.nix
|
||||||
../../modules/common/nix.nix
|
../../modules/common/nix.nix
|
||||||
../../modules/common/networking.nix
|
../../modules/common/networking.nix
|
||||||
../../modules/common/shell.nix
|
../../modules/common/shell.nix
|
||||||
../../modules/common/security.nix
|
../../modules/common/security.nix
|
||||||
../../modules/common/wine.nix
|
#../../modules/common/wine.nix
|
||||||
../../modules/common/libvirt.nix
|
../../modules/common/libvirt.nix
|
||||||
../../modules/common/keyd.nix
|
../../modules/common/keyd.nix
|
||||||
../../modules/common/unbound-cloud.nix
|
../../modules/common/unbound-cloud.nix
|
||||||
../../modules/common/yggdrasil.nix
|
#../../modules/common/yggdrasil.nix
|
||||||
];
|
];
|
||||||
networking.hostName = "puter";
|
networking.hostName = "puter";
|
||||||
# This will be overridden by system/default.nix
|
# This will be overridden by system/default.nix
|
||||||
|
|||||||
@@ -61,10 +61,11 @@
|
|||||||
|
|
||||||
environment.sessionVariables = {LIBVA_DRIVER_NAME = "i965";};
|
environment.sessionVariables = {LIBVA_DRIVER_NAME = "i965";};
|
||||||
|
|
||||||
hardware.facetimehd = {
|
# seems to be EOL "NixOS has built-in facetimehd support starting 16.03."
|
||||||
enable = true;
|
#hardware.facetimehd = {
|
||||||
withCalibration = true;
|
# enable = true;
|
||||||
};
|
# withCalibration = true;
|
||||||
|
#};
|
||||||
|
|
||||||
#services.logind = {
|
#services.logind = {
|
||||||
# lidSwitch = "ignore";
|
# lidSwitch = "ignore";
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"qtwebengine-5.15.19"
|
"qtwebengine-5.15.19"
|
||||||
"electron-36.9.5"
|
"electron-36.9.5"
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{pkgs ? import <nixpkgs> {}}:
|
{pkgs ? import <nixpkgs> {}}:
|
||||||
|
|
||||||
pkgs.stdenv.mkDerivation rec {
|
pkgs.stdenv.mkDerivation rec {
|
||||||
pname = "rustnet";
|
pname = "rustnet";
|
||||||
version = "0.18.0";
|
version = "0.18.0";
|
||||||
|
|||||||
39
modules/common/weathr.nix
Normal file
39
modules/common/weathr.nix
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "weathr";
|
||||||
|
version = "1.3.0"; # Use the latest version from the repository
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "veirt";
|
||||||
|
repo = "weathr";
|
||||||
|
rev = "v${version}"; # Tags are in the format "v1.3.0"
|
||||||
|
hash = "sha256-JwI5a+O5Nu39Nr0st5yBLTM5kPLC8UIGAoBMqxnOOl4="; # Replace with the actual hash after the first build attempt
|
||||||
|
};
|
||||||
|
|
||||||
|
# Use this for the initial build to let Nix tell you the correct hash
|
||||||
|
cargoHash = "sha256-Yj1WxpOLL8GiVpCebPZQgdw+L9g+4CNY7n2z8PJQz4k=";
|
||||||
|
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
#postInstall = ''
|
||||||
|
#'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A terminal weather app with ASCII animations driven by real-time weather data";
|
||||||
|
homepage = "https://github.com/veirt/weathr";
|
||||||
|
#changelog = "https://github.com/veirt/weathr/blob/v${version}/CHANGELOG.md"; # Check if a CHANGELOG.md exists
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
# maintainers = with maintainers; [ ]; # Add your handle if you plan to upstream
|
||||||
|
mainProgram = "weathr";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
services.yggdrasil = {
|
services.yggdrasil = {
|
||||||
enable = true;
|
enable = true;
|
||||||
persistentKeys = false;
|
persistentKeys = false;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
ungoogled-chromium
|
ungoogled-chromium
|
||||||
tor-browser
|
tor-browser
|
||||||
librewolf
|
librewolf
|
||||||
|
qutebrowser
|
||||||
transmission_4-gtk
|
transmission_4-gtk
|
||||||
bitwarden-desktop
|
bitwarden-desktop
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,11 +2,10 @@
|
|||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
rustnet = pkgs.callPackage ../../modules/common/rustnet.nix {};
|
rustnet = pkgs.callPackage ../../modules/common/rustnet.nix {};
|
||||||
in
|
weathr = pkgs.callPackage ../common/weathr.nix {};
|
||||||
{
|
in {
|
||||||
programs.neovim = {defaultEditor = true;};
|
programs.neovim = {defaultEditor = true;};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
parallel-disk-usage
|
parallel-disk-usage
|
||||||
@@ -32,5 +31,6 @@ in
|
|||||||
nh
|
nh
|
||||||
tty-clock
|
tty-clock
|
||||||
rustnet
|
rustnet
|
||||||
|
weathr
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user