This commit is contained in:
Tasia Iso 2024-06-07 14:57:57 +02:00
parent 14ed44f8fd
commit 43feeb4b66
Signed by: tasiaiso
SSH key fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw
8 changed files with 37 additions and 37 deletions

View file

@ -25,9 +25,9 @@ this is outdated
Update channels: `nix flake update`
Build a configuration: `sudo ixos-rebuild switch --flake .#$(cat /etc/hostname)`
Build a configuration: `sudo nixos-rebuild switch --flake .#$(cat /etc/hostname)`
Build enry and upload a generation: TODO
Build enry and upload a generation: `nixos-rebuild switch --use-remote-sudo --flake .#enry --target-host tasia@enry -L`
### To do on a new machine

View file

@ -41,4 +41,6 @@
}
];
};
services.vedirect-reader.enable = true;
}

View file

@ -203,11 +203,11 @@
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1717256270,
"narHash": "sha256-e87CNsNZb0yhkZIeZ0SEVVLH1Lp5cvUD5Cj7fbdf3mM=",
"lastModified": 1717688985,
"narHash": "sha256-6VHDjEs8Bu/pT31A5y/lDppGyAdB7SawrBbNPJQlgpw=",
"ref": "refs/heads/master",
"rev": "7b886fae6ac22a664ea8e92ee153a333d79172fb",
"revCount": 64,
"rev": "dbe88e262e4a3b913ed68b94d0d862d1f65e9d36",
"revCount": 73,
"type": "git",
"url": "https://gitea.com/tasiaiso/vedirect-reader"
},

View file

@ -44,12 +44,9 @@ in {
environment.systemPackages = with pkgs; [
nodejs
# vedirect-reader
inputs.vedirect-reader.packages.aarch64-linux.default
];
services.prometheus.enable = true;
services.vedirect-reader.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11";
}

View file

@ -41,6 +41,9 @@ in {
# Additional system packages here
];
services.displayManager.autoLogin.user = "user";
services.displayManager.autoLogin.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11";
}

View file

@ -5,5 +5,6 @@
# lib,
...
}: {
# mkdocs-rss-plugin = pkgs.callPackage ./mkdocs-rss-plugin/default.nix {};
vedirect-reader-nixos-config = pkgs.callPackage ./vedirect-reader-nixos-config {};
default = pkgs.callPackage ./vedirect-reader-nixos-config {};
}

View file

@ -1,26 +0,0 @@
{
lib,
buildPythonApplication,
fetchPypi,
setuptools,
wheel,
}:
buildPythonApplication rec {
pname = "toolz";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-CP3V73yWSArRHBLUct4hrNMjWZlvaaUlkpm1QP66RWA=";
};
# do not run tests
doCheck = false;
# specific to buildPythonPackage, see its reference
pyproject = true;
build-system = [
setuptools
wheel
];
}

View file

@ -0,0 +1,23 @@
{
pkgs ? import <nixpkgs> {},
lib ? import <nixpkgs/lib>,
}:
pkgs.buildNpmPackage rec {
pname = "vedirect-reader-nixos-config";
version = "0.0.0";
src = pkgs.fetchFromGitea {
domain = "gitea.com";
owner = "tasiaiso";
repo = "vedirect-reader";
rev = "fb4244eb5b35fa7011e7611eba8b95a4adf49787";
hash = "sha256-5rwiEI0+WCtxpvm9vMQTpzV7FHZjUi5kNi11PnrJ+a8=";
};
npmDepsHash = "sha256-FzZwdsqr0al6FwGdin7LMmqFSA5u4OPaNVOdT5ZS8zw=";
# dontNpmBuild = true;
# nativeBuildInputs = with pkgs; [
# nodejs
# ];
}