update
This commit is contained in:
parent
308d8ce2b2
commit
7a47e86acb
|
@ -92,6 +92,13 @@
|
||||||
# superTuxKart
|
# superTuxKart
|
||||||
# qgis
|
# qgis
|
||||||
amfora
|
amfora
|
||||||
|
dive
|
||||||
|
inxi
|
||||||
|
revolt-desktop
|
||||||
|
lsof
|
||||||
|
pixelorama
|
||||||
|
nodePackages.node-pre-gyp
|
||||||
|
jdk17
|
||||||
];
|
];
|
||||||
|
|
||||||
# The state version is required and should stay at the version you
|
# The state version is required and should stay at the version you
|
||||||
|
|
|
@ -21,7 +21,7 @@ in {
|
||||||
../../common/hardware/nvidia-gpu-offload.nix
|
../../common/hardware/nvidia-gpu-offload.nix
|
||||||
../../common/hardware/ssd.nix
|
../../common/hardware/ssd.nix
|
||||||
../../common/hardware/btrfs.nix
|
../../common/hardware/btrfs.nix
|
||||||
../../common/hardware/latest-kernel.nix
|
# ../../common/hardware/latest-kernel.nix
|
||||||
|
|
||||||
../../common/components/de/sddm.nix
|
../../common/components/de/sddm.nix
|
||||||
../../common/components/de/plasma6.nix
|
../../common/components/de/plasma6.nix
|
||||||
|
@ -37,12 +37,12 @@ in {
|
||||||
../../modules/nixos/vedirect-reader.nix
|
../../modules/nixos/vedirect-reader.nix
|
||||||
|
|
||||||
../../home/tasia/home.nix
|
../../home/tasia/home.nix
|
||||||
|
../../modules/nixos/tildefriends.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "yaseen";
|
hostName = "yaseen";
|
||||||
|
|
||||||
# firewall.enable = lib.mkForce false;
|
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
8080 # ?
|
8080 # ?
|
||||||
|
@ -67,7 +67,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
# services.flatpak.enable = false;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
user = "tasia";
|
user = "tasia";
|
||||||
|
@ -78,7 +78,6 @@ in {
|
||||||
# Needed to build enry
|
# Needed to build enry
|
||||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
inputs.tildefriends.packages.${system}.default
|
inputs.tildefriends.packages.${system}.default
|
||||||
|
|
|
@ -11,24 +11,32 @@ with lib; let
|
||||||
# Shorter name to access final settings a
|
# Shorter name to access final settings a
|
||||||
# user of hello.nix module HAS ACTUALLY SET.
|
# user of hello.nix module HAS ACTUALLY SET.
|
||||||
# cfg is a typical convention.
|
# cfg is a typical convention.
|
||||||
cfg = config.services.hello;
|
cfg = config.services.tildefriends;
|
||||||
in {
|
in {
|
||||||
# Declare what settings a user of this "hello.nix" module CAN SET.
|
# Declare what settings a user of this "hello.nix" module CAN SET.
|
||||||
options.services.hello = {
|
options.services.tildefriends = {
|
||||||
enable = mkEnableOption "hello service";
|
enable = mkEnableOption "tildefriends service";
|
||||||
greeter = mkOption {
|
# greeter = mkOption {
|
||||||
type = types.str;
|
# type = types.str;
|
||||||
default = "world";
|
# default = "world";
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define what other settings, services and resources should be active IF
|
# Define what other settings, services and resources should be active IF
|
||||||
# a user of this "hello.nix" module ENABLED this module
|
# a user of this "hello.nix" module ENABLED this module
|
||||||
# by setting "services.hello.enable = true;".
|
# by setting "services.hello.enable = true;".
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.services.hello = {
|
systemd.services.tildefriends = {
|
||||||
|
after = ["network.target"];
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
serviceConfig.ExecStart = "${pkgs.hello}/bin/hello -g'Hello, ${escapeShellArg cfg.greeter}!'";
|
serviceConfig = {
|
||||||
|
WorkingDirectory = /home/tasia/Documents/tildefriends-db;
|
||||||
|
ExecStart = "${pkgs.tildefriends}/bin/tildefriends";
|
||||||
|
|
||||||
|
# ExecStart = "${pkgs.tmux}/bin/tmux -S /tmp/tmux.socket new-session -s my-session -d";
|
||||||
|
# ExecStop = "${pkgs.tmux}/bin/tmux -S /tmp/tmux.socket kill-session -t my-session";
|
||||||
|
# Type = "forking";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue