mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 02:46:06 -07:00
Merge branch 'master' of github.com:starr-dusT/dotfiles
This commit is contained in:
commit
b2fc6bcbd2
@ -5,6 +5,8 @@ exclude_patterns:
|
|||||||
- '**/code-server/config/**'
|
- '**/code-server/config/**'
|
||||||
- '**/code-server/workspace/**'
|
- '**/code-server/workspace/**'
|
||||||
- '**/immich/library/**'
|
- '**/immich/library/**'
|
||||||
|
- '**/immich/postgres/**'
|
||||||
|
- '**/dufs/**'
|
||||||
|
|
||||||
before_backup:
|
before_backup:
|
||||||
- stop-docker-containers
|
- stop-docker-containers
|
||||||
|
@ -4,7 +4,7 @@ let
|
|||||||
hostname = specialArgs.hostname;
|
hostname = specialArgs.hostname;
|
||||||
in {
|
in {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user inputs home-manager; };
|
specialArgs = { inherit user hostname inputs home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
../default # shared by all configs
|
../default # shared by all configs
|
||||||
../default/physical/configuration.nix # shared by physical machines
|
../default/physical/configuration.nix # shared by physical machines
|
||||||
|
@ -1,62 +1,6 @@
|
|||||||
{ config, lib, pkgs, user, ... }:
|
{ config, lib, pkgs, user, ... }:
|
||||||
{
|
{
|
||||||
services.home-assistant.config = {
|
services.home-assistant.config = {
|
||||||
"automation manual" = [
|
|
||||||
{
|
|
||||||
alias = "turn on christmas lights";
|
|
||||||
trigger = {
|
|
||||||
platform = "time";
|
|
||||||
at = "16:45";
|
|
||||||
};
|
|
||||||
action = [
|
|
||||||
{
|
|
||||||
type = "turn_on";
|
|
||||||
device_id = "32bf8baf1214391472566d4300c7d6fb";
|
|
||||||
entity_id = "72c7694c3a3aed5d67499bfe0574346b";
|
|
||||||
domain = "switch";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "turn_on";
|
|
||||||
device_id = "08db6bd9e7bf98d5bf1b08351b909c94";
|
|
||||||
entity_id = "ecec82df2265c6b92c8474fe0c9fde6b";
|
|
||||||
domain = "switch";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "turn_on";
|
|
||||||
device_id = "f3da07b98e397fba271d2ee7016134b7";
|
|
||||||
entity_id = "d23d2fc18b7cb7bab0f1075b55ca5df5";
|
|
||||||
domain = "switch";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
alias = "turn off christmas lights";
|
|
||||||
trigger = {
|
|
||||||
platform = "time";
|
|
||||||
at = "23:59";
|
|
||||||
};
|
|
||||||
action = [
|
|
||||||
{
|
|
||||||
type = "turn_off";
|
|
||||||
device_id = "32bf8baf1214391472566d4300c7d6fb";
|
|
||||||
entity_id = "72c7694c3a3aed5d67499bfe0574346b";
|
|
||||||
domain = "switch";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "turn_off";
|
|
||||||
device_id = "08db6bd9e7bf98d5bf1b08351b909c94";
|
|
||||||
entity_id = "ecec82df2265c6b92c8474fe0c9fde6b";
|
|
||||||
domain = "switch";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "turn_off";
|
|
||||||
device_id = "f3da07b98e397fba271d2ee7016134b7";
|
|
||||||
entity_id = "d23d2fc18b7cb7bab0f1075b55ca5df5";
|
|
||||||
domain = "switch";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
"automation ui" = "!include automations.yaml";
|
"automation ui" = "!include automations.yaml";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,16 +2,18 @@
|
|||||||
{
|
{
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
settings = {
|
||||||
workgroup = WORKGROUP
|
global = {
|
||||||
server string = smbnix
|
"workgroup" = "WORKGROUP";
|
||||||
netbios name = smbnix
|
"server string" = "smbnix";
|
||||||
security = user
|
"netbios name" = "smbnix";
|
||||||
hosts allow = 192.168.3. 192.168.1. 127.0.0.1 localhost
|
"security" = "user";
|
||||||
hosts deny = 0.0.0.0/0
|
"hosts allow" = [ "192.168.3." "192.168.1." "127.0.0.1" "localhost" ];
|
||||||
guest account = nobody
|
"hosts deny" = "0.0.0.0/0";
|
||||||
map to guest = bad user
|
"guest account" = "nobody";
|
||||||
'';
|
"map to guest" = "bad user";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
shares = {
|
shares = {
|
||||||
private = {
|
private = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user