Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
adf6ca77b1 | |||
8a10935c39 | |||
47354a11dd |
82
flake.nix
82
flake.nix
@ -3,51 +3,43 @@
|
||||
|
||||
inputs.clan-core.url = "git+https://git.clan.lol/clan/clan-core";
|
||||
|
||||
outputs = { self, clan-core, ... } @ inputs: {
|
||||
inherit
|
||||
(clan-core.lib.buildClan {
|
||||
clanName = "democlan";
|
||||
directory = self;
|
||||
clanIcon = ./clan-icon.jpeg;
|
||||
machines = {
|
||||
localsend = { pkgs, ... }: {
|
||||
clanCore.machineDescription = "play around with localsend";
|
||||
clanCore.secretStore = "vm";
|
||||
systemd.services.localsend = {
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
serviceConfig.ExecStart = "${pkgs.localsend}/bin/localsend_app";
|
||||
};
|
||||
users.users.user = {
|
||||
isNormalUser = true;
|
||||
password = "user";
|
||||
uid = 1000;
|
||||
};
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.autoLogin.enable = true;
|
||||
displayManager.autoLogin.user = "user";
|
||||
desktopManager.xfce.enable = true;
|
||||
};
|
||||
clan.networking.zerotier.networkId = "a0cbf4b62a5113d8";
|
||||
services.getty.autologinUser = "root";
|
||||
environment.systemPackages = [ pkgs.localsend ];
|
||||
networking.firewall.interfaces."zt+".allowedTCPPorts = [ 53317 ];
|
||||
networking.firewall.interfaces."zt+".allowedUDPPorts = [ 53317 ];
|
||||
};
|
||||
};
|
||||
})
|
||||
clanInternals
|
||||
nixosConfigurations;
|
||||
outputs =
|
||||
{ self, clan-core, ... }@inputs:
|
||||
{
|
||||
inherit
|
||||
(clan-core.lib.buildClan {
|
||||
clanName = "democlan";
|
||||
directory = self;
|
||||
clanIcon = ./clan-icon.jpeg;
|
||||
machines = {
|
||||
localsend =
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [ inputs.clan-core.clanModules.waypipe ];
|
||||
clanCore.machineDescription = "play around with localsend";
|
||||
clanCore.machineIcon = "${pkgs.localsend}/share/icons/hicolor/512x512/apps/localsend.png";
|
||||
clanCore.secretStore = "vm";
|
||||
|
||||
devShells.x86_64-linux.default = clan-core.inputs.nixpkgs.legacyPackages.x86_64-linux.mkShellNoCC {
|
||||
packages = [
|
||||
inputs.clan-core.packages.x86_64-linux.clan-cli
|
||||
];
|
||||
clan.services.waypipe.enable = true;
|
||||
|
||||
clan.networking.zerotier.networkId = "a0cbf4b62a5113d8";
|
||||
environment.systemPackages = [ pkgs.localsend ];
|
||||
networking.firewall.interfaces."zt+".allowedTCPPorts = [ 53317 ];
|
||||
# networking.firewall.interfaces."zt+".allowedUDPPorts = [ 53317 ];
|
||||
|
||||
clan.services.waypipe.command = [ (lib.getExe pkgs.localsend) ];
|
||||
};
|
||||
};
|
||||
})
|
||||
clanInternals
|
||||
nixosConfigurations
|
||||
;
|
||||
|
||||
devShells.x86_64-linux.default =
|
||||
clan-core.inputs.nixpkgs.legacyPackages.x86_64-linux.mkShellNoCC
|
||||
{ packages = [ inputs.clan-core.packages.x86_64-linux.clan-cli ]; };
|
||||
devShells.aarch64-linux.default =
|
||||
clan-core.inputs.nixpkgs.legacyPackages.aarch64-linux.mkShellNoCC
|
||||
{ packages = [ inputs.clan-core.packages.aarch64-linux.clan-cli ]; };
|
||||
};
|
||||
devShells.aarch64-linux.default = clan-core.inputs.nixpkgs.legacyPackages.aarch64-linux.mkShellNoCC {
|
||||
packages = [
|
||||
inputs.clan-core.packages.aarch64-linux.clan-cli
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user