mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
cleaning?
This commit is contained in:
@@ -8,10 +8,6 @@
|
|||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
#boot = {
|
|
||||||
# type = "EF02";
|
|
||||||
# size = "1M";
|
|
||||||
#;
|
|
||||||
ESP = {
|
ESP = {
|
||||||
size = "500M";
|
size = "500M";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [ "umask=0077" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
swap = {
|
swap = {
|
||||||
|
|||||||
@@ -11,16 +11,6 @@
|
|||||||
type = "EF02";
|
type = "EF02";
|
||||||
size = "1M";
|
size = "1M";
|
||||||
};
|
};
|
||||||
# ESP = {
|
|
||||||
# size = "500M";
|
|
||||||
# type = "EF00";
|
|
||||||
# content = {
|
|
||||||
# type = "filesystem";
|
|
||||||
# format = "vfat";
|
|
||||||
# mountpoint = "/boot";
|
|
||||||
# mountOptions = [ "umask=0077" ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
root = {
|
root = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
|
|||||||
@@ -40,28 +40,13 @@
|
|||||||
device = "/dev/disk/by-partlabel/disk-main-ESP";
|
device = "/dev/disk/by-partlabel/disk-main-ESP";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [
|
options = [
|
||||||
|
# maybe 700?
|
||||||
"fmask=0022"
|
"fmask=0022"
|
||||||
"dmask=0022"
|
"dmask=0022"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# fileSystems."/" =
|
|
||||||
# { device = "/dev/disk/by-uuid/8acccc34-edc6-4934-886c-ef4b778ca24a";
|
|
||||||
# fsType = "ext4";
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# fileSystems."/boot" =
|
|
||||||
# { device = "/dev/disk/by-uuid/DDF2-C940";
|
|
||||||
# fsType = "vfat";
|
|
||||||
# options = [ "fmask=0022" "dmask=0022" ];
|
|
||||||
# };
|
|
||||||
#
|
|
||||||
# fileSystems."/home/otreca/External" =
|
|
||||||
# { device = "/dev/disk/by-uuid/37e53ebc-5343-a94d-9fe2-0ca39e13a8de";
|
|
||||||
# fsType = "ext4";
|
|
||||||
# };
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
|||||||
@@ -15,14 +15,6 @@
|
|||||||
device = lib.mkForce "/dev/disk/by-partlabel/disk-main-root"; # "/dev/disk/by-partlabel/disk-main-root";
|
device = lib.mkForce "/dev/disk/by-partlabel/disk-main-root"; # "/dev/disk/by-partlabel/disk-main-root";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
# "/boot" = {
|
|
||||||
# device = lib.mkForce "/dev/disk/by-partlabel/disk-main-ESP";
|
|
||||||
# fsType = "vfat";
|
|
||||||
# options = [
|
|
||||||
# "fmask=0022"
|
|
||||||
# "dmask=0022"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# swapDevices = [
|
# swapDevices = [
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ let
|
|||||||
./essentials
|
./essentials
|
||||||
./users.nix
|
./users.nix
|
||||||
./options.nix
|
./options.nix
|
||||||
./temp.nix
|
# ./temp.nix
|
||||||
(./. + "/${deviceType}") # specific modules
|
(./. + "/${deviceType}") # specific modules
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager # home-manager module
|
home-manager.nixosModules.home-manager # home-manager module
|
||||||
|
|||||||
@@ -8,13 +8,13 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
# nextcloud-whiteboard-server = {
|
nextcloud-whiteboard-server = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# settings = {
|
settings = {
|
||||||
# NEXTCLOUD_URL = "http://localhost:10000";
|
NEXTCLOUD_URL = "https://nextcloud.zeroq.ru";
|
||||||
# };
|
};
|
||||||
# secrets = [ "${inputs.zeroq-credentials}/services/nextcloud/jwt-secret.txt" ];
|
secrets = [ "${inputs.zeroq-credentials}/services/nextcloud/jwt-secret.txt" ];
|
||||||
# };
|
};
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud31;
|
package = pkgs.nextcloud31;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
"pipewire"
|
"pipewire"
|
||||||
"qemu-libvirtd"
|
"qemu-libvirtd"
|
||||||
"wheel"
|
"wheel"
|
||||||
"immich"
|
"immich" # rm?
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P"
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
#./cloudflared.nix
|
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./netbird.nix
|
./netbird.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
|
|||||||
@@ -125,13 +125,6 @@ in
|
|||||||
#server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
#server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
#listenHTTP = ":1360";
|
#listenHTTP = ":1360";
|
||||||
};
|
};
|
||||||
# certs."immich.zeroq.ru" = {
|
|
||||||
# email = "go.bin043120@gmail.com";
|
|
||||||
# dnsProvider = "cloudflare";
|
|
||||||
# dnsResolver = "1.1.1.1";
|
|
||||||
# environmentFile = "${inputs.zeroq-credentials}/accounts/cloudflare.txt";
|
|
||||||
# webroot = null; # Required in my case
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 8443 ];
|
allowedTCPPorts = [ 8443 ];
|
||||||
allowedUDPPorts = [ 8443 ]; # 41641
|
allowedUDPPorts = [ 8443 ];
|
||||||
#trustedInterfaces = [ "tailscale0" ];
|
#trustedInterfaces = [ "tailscale0" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user