create monitor pkg
This commit is contained in:
@@ -49,6 +49,9 @@
|
|||||||
unstable-packages
|
unstable-packages
|
||||||
nur.overlay
|
nur.overlay
|
||||||
];
|
];
|
||||||
|
# stylix compains if image is not set...
|
||||||
|
stylix.autoEnable = false;
|
||||||
|
stylix.image = ./yuyukowallpaper1809.png;
|
||||||
})
|
})
|
||||||
home-manager-unstable.nixosModules.home-manager
|
home-manager-unstable.nixosModules.home-manager
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
@@ -58,6 +61,7 @@
|
|||||||
specialArgs = specialArgs // { inherit inputs outputs; };
|
specialArgs = specialArgs // { inherit inputs outputs; };
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
packages.${system} = import ./pkgs { pkgs = nixpkgs-unstable.legacyPackages.${system}; };
|
||||||
overlays = import ./overlays.nix { inherit inputs; };
|
overlays = import ./overlays.nix { inherit inputs; };
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
updateFancy = "nh os switch";
|
updateFancy = "nh os switch";
|
||||||
updateOffline = "sudo nixos-rebuild switch --option substitute false";
|
updateOffline = "sudo nixos-rebuild switch --option substitute false";
|
||||||
goto = "cd $(find ~/projects -maxdepth 2 -type d | ${pkgs.fzf}/bin/fzf)";
|
goto = "cd $(find ~/projects -maxdepth 2 -type d | ${pkgs.fzf}/bin/fzf)";
|
||||||
|
dev= "nix-shell --run zsh";
|
||||||
};
|
};
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ in {
|
|||||||
enable = mkEnableOption "Enables stylix";
|
enable = mkEnableOption "Enables stylix";
|
||||||
image = mkOption {
|
image = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = ./yuyukowallpaper1809.png;
|
default = ../../yuyukowallpaper1809.png;
|
||||||
description = ''
|
description = ''
|
||||||
The wallpaper to use.
|
The wallpaper to use.
|
||||||
'';
|
'';
|
||||||
@@ -34,6 +34,7 @@ in {
|
|||||||
let nerdfonts = pkgs.nerdfonts.override { fonts = [ "Hack" "Noto" ]; };
|
let nerdfonts = pkgs.nerdfonts.override { fonts = [ "Hack" "Noto" ]; };
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
stylix = {
|
stylix = {
|
||||||
|
autoEnable = true;
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
image = cfg.image;
|
image = cfg.image;
|
||||||
override = cfg.override;
|
override = cfg.override;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ in
|
|||||||
# "192.168.0.6"
|
# "192.168.0.6"
|
||||||
# "localhost"
|
# "localhost"
|
||||||
];
|
];
|
||||||
root = pkgs.website;
|
root = pkgs.kop-website;
|
||||||
forceSSL = cfg.https;
|
forceSSL = cfg.https;
|
||||||
enableACME = cfg.https;
|
enableACME = cfg.https;
|
||||||
quic = cfg.https;
|
quic = cfg.https;
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ pkgs, ... }: rec {
|
{ pkgs, ... }: rec {
|
||||||
tetrio = pkgs.callPackage ./tetrio-desktop/package.nix { };
|
tetrio = pkgs.callPackage ./tetrio-desktop/package.nix { };
|
||||||
hub = pkgs.callPackage ./hub/default.nix { };
|
kop-hub = pkgs.callPackage ./hub/default.nix { };
|
||||||
ente-frontend = pkgs.callPackage ./ente-frontend/default.nix { };
|
ente-frontend = pkgs.callPackage ./ente-frontend/default.nix { };
|
||||||
website = pkgs.callPackage ./website/default.nix { inherit hub ente-frontend; };
|
kop-website =
|
||||||
|
pkgs.callPackage ./website/default.nix { inherit kop-hub ente-frontend; };
|
||||||
|
kop-monitor = pkgs.callPackage ./monitor/default.nix { };
|
||||||
}
|
}
|
||||||
|
|||||||
20
pkgs/monitor/default.nix
Normal file
20
pkgs/monitor/default.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ rustPlatform
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
pname = "kop-monitor";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchGit {
|
||||||
|
url = "git@github.com:kropatz/monitor.git";
|
||||||
|
ref = "master";
|
||||||
|
rev = "0e460dd24f73e060acf9f16e84b45aea97781151";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = with pkgs; [ pkg-config ];
|
||||||
|
buildInputs = with pkgs; [ openssl ];
|
||||||
|
|
||||||
|
cargoHash = "sha256-/bpxo5LUrdMJBzI6N4Dr+f7/pH6fE+fayzZW3CZ/lwA=";
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, buildNpmPackage, fetchFromGitHub, hub, ente-frontend }:
|
{ stdenv, lib, buildNpmPackage, fetchFromGitHub, kop-hub, ente-frontend }:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "kopatz-website";
|
pname = "kopatz-website";
|
||||||
@@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/tracker-site
|
mkdir -p $out/tracker-site
|
||||||
cp -r ${hub}/* $out
|
cp -r ${kop-hub}/* $out
|
||||||
cp -r ${ente-frontend}/* $out/tracker-site
|
cp -r ${ente-frontend}/* $out/tracker-site
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,10 +2,8 @@
|
|||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }: {
|
||||||
{
|
imports = [ # Include the results of the hardware scan.
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/flatpak.nix
|
../../modules/flatpak.nix
|
||||||
../../modules/gpg.nix
|
../../modules/gpg.nix
|
||||||
@@ -14,6 +12,17 @@
|
|||||||
../../modules/support/ntfs.nix
|
../../modules/support/ntfs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
#systemd.services.failtest = {
|
||||||
|
# enable = true;
|
||||||
|
# description = "Fail Test Service";
|
||||||
|
# wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
# serviceConfig = {
|
||||||
|
# Type = "simple";
|
||||||
|
# ExecStart = "${pkgs.coreutils}/bin/false";
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
|
||||||
custom = {
|
custom = {
|
||||||
tmpfs.enable = true;
|
tmpfs.enable = true;
|
||||||
wireshark.enable = true;
|
wireshark.enable = true;
|
||||||
@@ -38,9 +47,7 @@
|
|||||||
# enable = true;
|
# enable = true;
|
||||||
# server = [ "192.168.0.10" ];
|
# server = [ "192.168.0.10" ];
|
||||||
#};
|
#};
|
||||||
misc = {
|
misc = { docker.enable = true; };
|
||||||
docker.enable = true;
|
|
||||||
};
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia.enable = true;
|
nvidia.enable = true;
|
||||||
firmware.enable = true;
|
firmware.enable = true;
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.1 MiB After Width: | Height: | Size: 3.1 MiB |
Reference in New Issue
Block a user