mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 04:13:55 -05:00
ran nixfmt to standardize formatting
This commit is contained in:
parent
a3257404ad
commit
b41949543e
10
flake.nix
10
flake.nix
|
@ -28,17 +28,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
extra-substituters = [
|
extra-substituters = [ "https://nixcache.raffauflabs.com" ];
|
||||||
"https://nixcache.raffauflabs.com"
|
|
||||||
];
|
|
||||||
extra-trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
|
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, nixpkgs-unstable, home-manager-unstable, nixos-hardware, ... }: {
|
outputs = inputs@{ nixpkgs, home-manager, nixpkgs-unstable
|
||||||
|
, home-manager-unstable, nixos-hardware, ... }: {
|
||||||
|
|
||||||
homeConfigurations."aly" = home-manager-unstable.lib.homeManagerConfiguration {
|
homeConfigurations."aly" =
|
||||||
|
home-manager-unstable.lib.homeManagerConfiguration {
|
||||||
pkgs = import nixpkgs-unstable { system = "x86_64-linux"; };
|
pkgs = import nixpkgs-unstable { system = "x86_64-linux"; };
|
||||||
modules = [ ./home/aly.nix ];
|
modules = [ ./home/aly.nix ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@ listener {
|
||||||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||||
}
|
}
|
||||||
|
|
||||||
# listener {
|
listener {
|
||||||
# timeout = 600 # 30min
|
timeout = 600 # 30min
|
||||||
# on-timeout = systemctl suspend # suspend pc
|
on-timeout = [[ $(hostname) != "mauville" ]] && systemctl suspend # suspend pc unless on mauville
|
||||||
# }
|
}
|
||||||
|
|
|
@ -6,9 +6,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
xkb.layout = "us";
|
xkb.layout = "us";
|
||||||
xkb.variant = "";
|
xkb.variant = "";
|
||||||
excludePackages = with pkgs; [
|
excludePackages = with pkgs; [ xterm ];
|
||||||
xterm
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
## Needed for Flatpaks
|
## Needed for Flatpaks
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ # Include X settings.
|
||||||
[ # Include X settings.
|
|
||||||
../desktop.nix
|
../desktop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
# Need to change the order pam loads its modules
|
# Need to change the order pam loads its modules
|
||||||
# to get proper fingerprint behavior on GDM and the lockscreen.
|
# to get proper fingerprint behavior on GDM and the lockscreen.
|
||||||
security.pam.services.login.fprintAuth = false;
|
security.pam.services.login.fprintAuth = false;
|
||||||
security.pam.services.gdm-fingerprint = lib.mkIf (config.services.fprintd.enable) {
|
security.pam.services.gdm-fingerprint =
|
||||||
|
lib.mkIf (config.services.fprintd.enable) {
|
||||||
text = ''
|
text = ''
|
||||||
auth required pam_shells.so
|
auth required pam_shells.so
|
||||||
auth requisite pam_nologin.so
|
auth requisite pam_nologin.so
|
||||||
|
|
|
@ -45,7 +45,10 @@
|
||||||
virtualHosts."nixcache.raffauflabs.com" = {
|
virtualHosts."nixcache.raffauflabs.com" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
|
locations."/".proxyPass =
|
||||||
|
"http://${config.services.nix-serve.bindAddress}:${
|
||||||
|
toString config.services.nix-serve.port
|
||||||
|
}";
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualHosts."plex.raffauflabs.com" = {
|
virtualHosts."plex.raffauflabs.com" = {
|
||||||
|
|
|
@ -6,11 +6,8 @@
|
||||||
ports = [ "0.0.0.0:13378:80" ];
|
ports = [ "0.0.0.0:13378:80" ];
|
||||||
image = "ghcr.io/advplyr/audiobookshelf:latest";
|
image = "ghcr.io/advplyr/audiobookshelf:latest";
|
||||||
environment = { TZ = "America/New_York"; };
|
environment = { TZ = "America/New_York"; };
|
||||||
volumes = [
|
volumes =
|
||||||
"abs_config:/config"
|
[ "abs_config:/config" "abs_metadata:/metadata" "/mnt/Media:/Media" ];
|
||||||
"abs_metadata:/metadata"
|
|
||||||
"/mnt/Media:/Media"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
plex-server = {
|
plex-server = {
|
||||||
ports = [ "0.0.0.0:32400:32400" ];
|
ports = [ "0.0.0.0:32400:32400" ];
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
libvirtd.enable = true;
|
libvirtd.enable = true;
|
||||||
oci-containers = {
|
oci-containers = { backend = "podman"; };
|
||||||
backend = "podman";
|
|
||||||
};
|
|
||||||
podman = {
|
podman = {
|
||||||
# Required for containers under podman-compose to be able to talk to each other.
|
# Required for containers under podman-compose to be able to talk to each other.
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ # Include X settings.
|
||||||
[ # Include X settings.
|
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
hardware.steam-hardware.enable = true;
|
hardware.steam-hardware.enable = true;
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
remotePlay.openFirewall =
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
true; # Open ports in the firewall for Steam Remote Play
|
||||||
|
dedicatedServer.openFirewall =
|
||||||
|
true; # Open ports in the firewall for Source Dedicated Server
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ # Include X settings.
|
||||||
[ # Include X settings.
|
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver.displayManager = {
|
services.xserver.displayManager = { sessionPackages = [ pkgs.sway ]; };
|
||||||
sessionPackages = [ pkgs.sway ];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.light.enable = true; # Brightness and volume control.
|
programs.light.enable = true; # Brightness and volume control.
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue