stuff
This commit is contained in:
parent
14ed44f8fd
commit
43feeb4b66
|
@ -25,9 +25,9 @@ this is outdated
|
||||||
|
|
||||||
Update channels: `nix flake update`
|
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
|
### To do on a new machine
|
||||||
|
|
||||||
|
|
|
@ -41,4 +41,6 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.vedirect-reader.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,11 +203,11 @@
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717256270,
|
"lastModified": 1717688985,
|
||||||
"narHash": "sha256-e87CNsNZb0yhkZIeZ0SEVVLH1Lp5cvUD5Cj7fbdf3mM=",
|
"narHash": "sha256-6VHDjEs8Bu/pT31A5y/lDppGyAdB7SawrBbNPJQlgpw=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "7b886fae6ac22a664ea8e92ee153a333d79172fb",
|
"rev": "dbe88e262e4a3b913ed68b94d0d862d1f65e9d36",
|
||||||
"revCount": 64,
|
"revCount": 73,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.com/tasiaiso/vedirect-reader"
|
"url": "https://gitea.com/tasiaiso/vedirect-reader"
|
||||||
},
|
},
|
||||||
|
|
|
@ -44,12 +44,9 @@ in {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nodejs
|
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
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,9 @@ in {
|
||||||
# Additional system packages here
|
# Additional system packages here
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.displayManager.autoLogin.user = "user";
|
||||||
|
services.displayManager.autoLogin.enable = true;
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,5 +5,6 @@
|
||||||
# lib,
|
# 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 {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
|
||||||
];
|
|
||||||
}
|
|
23
pkgs/vedirect-reader-nixos-config/default.nix
Normal file
23
pkgs/vedirect-reader-nixos-config/default.nix
Normal 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
|
||||||
|
# ];
|
||||||
|
}
|
Loading…
Reference in a new issue