nixfmt
This commit is contained in:
parent
28c7af45d3
commit
3d6dd759c4
99 changed files with 584 additions and 735 deletions
|
@ -34,7 +34,8 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.cyryl = {
|
||||
imports = [ ./nixos/home-manager ./nixos/home-manager/linux.nix ];
|
||||
imports =
|
||||
[ ./nixos/home-manager ./nixos/home-manager/linux.nix ];
|
||||
_module.args.inputs = inputs;
|
||||
};
|
||||
}
|
||||
|
@ -57,9 +58,7 @@
|
|||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.cyryl = {
|
||||
imports = [ ./nixos/home-manager ];
|
||||
};
|
||||
home-manager.users.cyryl = { imports = [ ./nixos/home-manager ]; };
|
||||
|
||||
}
|
||||
];
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
extraArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" ];
|
||||
in
|
||||
{
|
||||
extraArgs =
|
||||
[ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" ];
|
||||
in {
|
||||
|
||||
services = {
|
||||
restic.backups.home-to-bolty = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
|
||||
|
||||
boot = {
|
||||
|
@ -12,6 +11,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_acpi" ];
|
||||
initrd.availableKernelModules =
|
||||
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_acpi" ];
|
||||
initrd.kernelModules = [ "dm-snapshot" ];
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
extraModulePackages = [ ];
|
||||
|
@ -15,17 +15,22 @@
|
|||
fileSystems."/data" = {
|
||||
device = "/dev/disk/by-uuid/78e8e5b5-9068-4381-8e85-b4297607f9ea";
|
||||
fsType = "btrfs";
|
||||
options = [ "autodefrag" "space_cache" "inode_cache" "noatime" "nodiratime" "compress=zstd" ];
|
||||
options = [
|
||||
"autodefrag"
|
||||
"space_cache"
|
||||
"inode_cache"
|
||||
"noatime"
|
||||
"nodiratime"
|
||||
"compress=zstd"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/28afab71-ff3d-4f1a-b7e4-2129572706dd";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/5BFB-9E6B";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, lib, ... }: {
|
||||
imports = [
|
||||
./bolty-boot.nix
|
||||
./real-hardware.nix
|
||||
|
@ -16,7 +15,8 @@
|
|||
enable = true;
|
||||
dataDir = "/data/syncthing";
|
||||
openDefaultPorts = true;
|
||||
package = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
|
||||
package =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
|
||||
};
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
networking = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.i2pd = {
|
||||
enable = true;
|
||||
bandwidth = 1024; # kb/s
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
initialScript = pkgs.writeText "synapse-init.sql" ''
|
||||
|
@ -15,27 +14,23 @@
|
|||
enable = true;
|
||||
server_name = "cyplo.dev";
|
||||
enable_registration = false;
|
||||
listeners = [
|
||||
{
|
||||
listeners = [{
|
||||
port = 8008;
|
||||
bind_address = "bolty.cyplo.github.beta.tailscale.net";
|
||||
type = "http";
|
||||
tls = false;
|
||||
x_forwarded = true;
|
||||
resources = [
|
||||
{
|
||||
resources = [{
|
||||
names = [ "client" "federation" ];
|
||||
compress = false;
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
app_service_config_files = [
|
||||
];
|
||||
}];
|
||||
}];
|
||||
app_service_config_files = [ ];
|
||||
extraConfig = ''
|
||||
experimental_features: { spaces_enabled: true }
|
||||
'';
|
||||
package = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".matrix-synapse;
|
||||
package =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".matrix-synapse;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8008 ];
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
services.nextcloud = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [ 631 6566 ];
|
||||
|
@ -21,7 +20,8 @@
|
|||
description = "Epson XP-540";
|
||||
location = "connected to bolty";
|
||||
name = "epson_xp540";
|
||||
deviceUri = "usb://EPSON/XP-540%20Series?serial=583245393030303936&interface=1";
|
||||
deviceUri =
|
||||
"usb://EPSON/XP-540%20Series?serial=583245393030303936&interface=1";
|
||||
model = "raw";
|
||||
ppdOptions = { PageSize = "A4"; };
|
||||
}];
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, lib, ... }: {
|
||||
networking.firewall.allowedTCPPorts = [ 9100 ];
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, lib, ... }: {
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
services.smartd.enable = true;
|
||||
services.fstrim.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
smartmontools
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ smartmontools ];
|
||||
services.fwupd.enable = true;
|
||||
services.thermald.enable = true;
|
||||
services.haveged.enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [ restic ];
|
||||
networking.firewall.allowedTCPPorts = [ 8000 ];
|
||||
services.restic.server = {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
let
|
||||
tailscale = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in
|
||||
{
|
||||
tailscale =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in {
|
||||
systemd.services.tailscale-autoconnect = {
|
||||
description = "Automatic connection to Tailscale";
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, inputs, nixpkgs-nixos-unstable-and-unfree, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, nixpkgs-nixos-unstable-and-unfree, ... }: {
|
||||
networking.hostName = "fixme";
|
||||
|
||||
imports = [
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
{
|
||||
{ config, lib, pkgs, inputs, ... }: {
|
||||
boot = {
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
|
||||
initrd = {
|
||||
kernelModules = [ "dm-snapshot" ];
|
||||
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
availableKernelModules =
|
||||
[ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
};
|
||||
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
tmux
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
buildLinux = x: super.buildLinux ({
|
||||
buildLinux = x:
|
||||
super.buildLinux ({
|
||||
ignoreConfigErrors = true;
|
||||
enableParallelBuilding = true;
|
||||
} // x);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, inputs, lib, nixpkgs-nixos-unstable-and-unfree, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, lib, nixpkgs-nixos-unstable-and-unfree, ... }: {
|
||||
networking.hostName = "foureighty";
|
||||
|
||||
imports = [
|
||||
|
@ -19,9 +18,7 @@
|
|||
../../tailscale.nix
|
||||
];
|
||||
|
||||
fileSystems."/" = {
|
||||
options = [ "compress=zstd" ];
|
||||
};
|
||||
fileSystems."/" = { options = [ "compress=zstd" ]; };
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
|
@ -43,14 +40,10 @@
|
|||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
|
||||
services.fprintd = {
|
||||
enable = true;
|
||||
};
|
||||
services.fprintd = { enable = true; };
|
||||
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
imports = [
|
||||
../../home-manager/programs/kitty.nix
|
||||
];
|
||||
imports = [ ../../home-manager/programs/kitty.nix ];
|
||||
home.packages = [
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".bisq-desktop
|
||||
];
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
{
|
||||
{ config, lib, pkgs, inputs, ... }: {
|
||||
boot = {
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
|
||||
initrd = {
|
||||
kernelModules = [ "dm-snapshot" ];
|
||||
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
availableKernelModules =
|
||||
[ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
};
|
||||
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
loader.systemd-boot.enable = true;
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/c2deaeaa-cb76-4d29-a603-0cf42f6e829f";
|
||||
boot.initrd.luks.devices."crypt".device =
|
||||
"/dev/disk/by-uuid/c2deaeaa-cb76-4d29-a603-0cf42f6e829f";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/FC06-82E6";
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
libqmi
|
||||
];
|
||||
{ config, pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [ libqmi ];
|
||||
boot.extraModulePackages = with pkgs; [ libqmi ];
|
||||
boot.kernelModules = [ "qmi_wwan" "qcserial" ];
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ let
|
|||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||
exec -a "$0" "$@"
|
||||
'';
|
||||
whichgpu = pkgs.writeShellScriptBin "whichgpu" ''glxinfo | grep vendor'';
|
||||
whichgpu = pkgs.writeShellScriptBin "whichgpu" "glxinfo | grep vendor";
|
||||
nvidiaon = pkgs.writeShellScriptBin "nvidiaon" ''
|
||||
export __NV_PRIME_RENDER_OFFLOAD=1;
|
||||
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0;
|
||||
|
@ -16,8 +16,7 @@ let
|
|||
export __VK_LAYER_NV_optimus=NVIDIA_only;
|
||||
glxinfo | grep vendor; echo OK!;
|
||||
'';
|
||||
in
|
||||
{
|
||||
in {
|
||||
environment.systemPackages = [ nvidia-offload whichgpu nvidiaon ];
|
||||
hardware.opengl.enable = true;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
let
|
||||
tailscale = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in
|
||||
{
|
||||
tailscale =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in {
|
||||
systemd.services.tailscale-autoconnect = {
|
||||
description = "Automatic connection to Tailscale";
|
||||
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
{ config, pkgs, inputs, lib, nixpkgs-nixos-unstable-and-unfree, ... }: {
|
||||
environment.systemPackages = with pkgs; [ vim nixfmt ];
|
||||
|
||||
imports = [
|
||||
../../git
|
||||
../../mercurial
|
||||
];
|
||||
imports = [ ../../git ../../mercurial ];
|
||||
services.nix-daemon.enable = true;
|
||||
nix = {
|
||||
useDaemon = true;
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
];
|
||||
{ config, pkgs, inputs, lib, ... }: {
|
||||
imports = [ ];
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_rpi4;
|
||||
tmpOnTmpfs = true;
|
||||
|
@ -23,9 +21,7 @@
|
|||
boot.loader.generic-extlinux-compatible.enable = true;
|
||||
networking = {
|
||||
hostName = "rpi4-8";
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
};
|
||||
networkmanager = { enable = true; };
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ neovim htop ];
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
networking.hostName = "skinnyv";
|
||||
|
||||
imports = [
|
||||
|
@ -23,9 +22,7 @@
|
|||
|
||||
services.thermald.enable = true;
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
imports = [
|
||||
../../home-manager/programs/kitty.nix
|
||||
];
|
||||
imports = [ ../../home-manager/programs/kitty.nix ];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
@ -16,7 +15,8 @@
|
|||
options = [ "compress=zstd" ];
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/0c192a18-178f-4598-a1ed-5295ef2abdc4";
|
||||
boot.initrd.luks.devices."crypt".device =
|
||||
"/dev/disk/by-uuid/0c192a18-178f-4598-a1ed-5295ef2abdc4";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/0A6A-AAFC";
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
let
|
||||
tailscale = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in
|
||||
{
|
||||
tailscale =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in {
|
||||
systemd.services.tailscale-autoconnect = {
|
||||
description = "Automatic connection to Tailscale";
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
networking.hostName = "thinky";
|
||||
|
||||
imports = [
|
||||
|
@ -28,8 +27,6 @@
|
|||
memoryPercent = 50;
|
||||
};
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
imports = [
|
||||
../../home-manager/programs/termite.nix
|
||||
];
|
||||
imports = [ ../../home-manager/programs/termite.nix ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
{
|
||||
{ config, lib, pkgs, inputs, ... }: {
|
||||
boot = {
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
|
||||
initrd = {
|
||||
kernelModules = [ "dm-snapshot" ];
|
||||
availableKernelModules = [ "ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" ];
|
||||
availableKernelModules =
|
||||
[ "ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" ];
|
||||
};
|
||||
|
||||
loader.grub.enable = true;
|
||||
|
@ -18,7 +18,8 @@
|
|||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d";
|
||||
boot.initrd.luks.devices."crypt".device =
|
||||
"/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317";
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
let
|
||||
tailscale = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in
|
||||
{
|
||||
tailscale =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in {
|
||||
systemd.services.tailscale-autoconnect = {
|
||||
description = "Automatic connection to Tailscale";
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, lib, ... }: {
|
||||
time.timeZone = "Europe/London";
|
||||
|
||||
services.xserver.desktopManager.plasma5.enable = lib.mkForce false;
|
||||
|
@ -8,9 +7,6 @@
|
|||
virtualisation.virtualbox.guest.enable = true;
|
||||
virtualisation.virtualbox.guest.x11 = true;
|
||||
|
||||
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
|
||||
../common.nix
|
||||
];
|
||||
imports =
|
||||
[ <nixpkgs/nixos/modules/installer/virtualbox-demo.nix> ../common.nix ];
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, lib, ... }: {
|
||||
networking.hostName = "vpsfree1";
|
||||
|
||||
imports = [
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
let
|
||||
tailscale = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in
|
||||
{
|
||||
tailscale =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in {
|
||||
systemd.services.tailscale-autoconnect = {
|
||||
description = "Automatic connection to Tailscale";
|
||||
|
||||
|
|
|
@ -8,20 +8,18 @@
|
|||
|
||||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
nameservers = [
|
||||
"1.1.1.1"
|
||||
"2606:4700:4700::1111"
|
||||
];
|
||||
in
|
||||
{
|
||||
let nameservers = [ "1.1.1.1" "2606:4700:4700::1111" ];
|
||||
in {
|
||||
networking.nameservers = lib.mkDefault nameservers;
|
||||
services.resolved = lib.mkDefault { fallbackDns = nameservers; };
|
||||
networking.dhcpcd.extraConfig = "noipv4ll";
|
||||
|
||||
systemd.services.systemd-sysctl.enable = false;
|
||||
systemd.sockets."systemd-journald-audit".enable = false;
|
||||
systemd.mounts = [{ where = "/sys/kernel/debug"; enable = false; }];
|
||||
systemd.mounts = [{
|
||||
where = "/sys/kernel/debug";
|
||||
enable = false;
|
||||
}];
|
||||
systemd.services.systemd-udev-trigger.enable = false;
|
||||
systemd.services.rpc-gssd.enable = false;
|
||||
|
||||
|
@ -29,7 +27,8 @@ in
|
|||
boot.enableContainers = mkDefault true;
|
||||
boot.loader.initScript.enable = true;
|
||||
boot.specialFileSystems."/run/keys".fsType = lib.mkForce "tmpfs";
|
||||
boot.systemdExecutable = mkDefault "systemd systemd.unified_cgroup_hierarchy=0";
|
||||
boot.systemdExecutable =
|
||||
mkDefault "systemd systemd.unified_cgroup_hierarchy=0";
|
||||
|
||||
# Overrides for <nixpkgs/nixos/modules/virtualisation/container-config.nix>
|
||||
documentation.enable = mkOverride 500 true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, lib, ... }: {
|
||||
networking.hostName = "vultr1";
|
||||
|
||||
imports = [
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"fahclient"
|
||||
];
|
||||
{ config, pkgs, lib, ... }: {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) [ "fahclient" ];
|
||||
services.foldingathome = {
|
||||
enable = true;
|
||||
user = "cyplo";
|
||||
};
|
||||
boot.kernel.sysctl = {
|
||||
"kernel.unprivileged_userns_clone" = 1;
|
||||
};
|
||||
boot.kernel.sysctl = { "kernel.unprivileged_userns_clone" = 1; };
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
|
@ -7,22 +6,18 @@
|
|||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."= /.well-known/matrix/server".extraConfig =
|
||||
let
|
||||
server = { "m.server" = "cyplo.dev:443"; };
|
||||
in
|
||||
''
|
||||
let server = { "m.server" = "cyplo.dev:443"; };
|
||||
in ''
|
||||
add_header Content-Type application/json;
|
||||
return 200 '${builtins.toJSON server}';
|
||||
'';
|
||||
|
||||
locations."= /.well-known/matrix/client".extraConfig =
|
||||
let
|
||||
locations."= /.well-known/matrix/client".extraConfig = let
|
||||
client = {
|
||||
"m.homeserver" = { "base_url" = "https://cyplo.dev"; };
|
||||
"m.identity_server" = { "base_url" = "https://vector.im"; };
|
||||
};
|
||||
in
|
||||
''
|
||||
in ''
|
||||
add_header Content-Type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '${builtins.toJSON client}';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
|
@ -13,9 +12,7 @@
|
|||
proxy_send_timeout 60s;
|
||||
proxy_read_timeout 60s;
|
||||
'';
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8888";
|
||||
};
|
||||
locations."/" = { proxyPass = "http://localhost:8888"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, lib, ... }: {
|
||||
containers.snowflake = {
|
||||
autoStart = true;
|
||||
ephemeral = true;
|
||||
|
@ -29,7 +28,8 @@
|
|||
RestrictRealtime = "yes";
|
||||
RestrictSUIDSGID = "yes";
|
||||
SystemCallArchitectures = "native";
|
||||
SystemCallFilter = "~@chown @clock @cpu-emulation @debug @module @mount @obsolete @raw-io @reboot @setuid @swap @privileged @resources";
|
||||
SystemCallFilter =
|
||||
"~@chown @clock @cpu-emulation @debug @module @mount @obsolete @raw-io @reboot @setuid @swap @privileged @resources";
|
||||
CapabilityBoundingSet = "";
|
||||
ProtectProc = "invisible";
|
||||
ProcSubset = "pid";
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
let
|
||||
tailscale = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in
|
||||
{
|
||||
tailscale =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
in {
|
||||
systemd.services.tailscale-autoconnect = {
|
||||
description = "Automatic connection to Tailscale";
|
||||
|
||||
|
|
|
@ -1,8 +1,20 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
boot = {
|
||||
initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "9p" "9pnet_virtio" ];
|
||||
initrd.availableKernelModules = [
|
||||
"ata_piix"
|
||||
"uhci_hcd"
|
||||
"virtio_pci"
|
||||
"sr_mod"
|
||||
"virtio_blk"
|
||||
"virtio_net"
|
||||
"virtio_pci"
|
||||
"virtio_mmio"
|
||||
"virtio_blk"
|
||||
"virtio_scsi"
|
||||
"9p"
|
||||
"9pnet_virtio"
|
||||
];
|
||||
initrd.kernelModules = [ "virtio_balloon" "virtio_console" "virtio_rng" ];
|
||||
|
||||
initrd.postDeviceCommands = ''
|
||||
|
@ -23,12 +35,10 @@
|
|||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
swapDevices = [{
|
||||
device = "/swapfile";
|
||||
size = 2048;
|
||||
}
|
||||
];
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services = {
|
||||
udev.packages = [ pkgs.android-udev-rules ];
|
||||
ratbagd.enable = true;
|
||||
|
@ -11,9 +10,7 @@
|
|||
|
||||
tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"DISK_IOSCHED" = "mq-deadline";
|
||||
};
|
||||
settings = { "DISK_IOSCHED" = "mq-deadline"; };
|
||||
};
|
||||
|
||||
upower.enable = true;
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
let
|
||||
unstable = inputs.nixpkgs-nixos-unstable.legacyPackages.${pkgs.system};
|
||||
in
|
||||
{
|
||||
let unstable = inputs.nixpkgs-nixos-unstable.legacyPackages.${pkgs.system};
|
||||
in {
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
accounts.email.accounts.cyplo = {
|
||||
primary = true;
|
||||
|
@ -54,27 +52,22 @@ in
|
|||
|
||||
programs.mbsync.enable = true;
|
||||
programs.msmtp.enable = true;
|
||||
programs.neomutt = {
|
||||
enable = true;
|
||||
};
|
||||
programs.neomutt = { enable = true; };
|
||||
programs.notmuch = {
|
||||
enable = true;
|
||||
hooks.preNew = "${pkgs.isync}/bin/mbsync -a";
|
||||
};
|
||||
programs.alot = {
|
||||
enable = true;
|
||||
};
|
||||
programs.alot = { enable = true; };
|
||||
|
||||
home.packages = with pkgs; [
|
||||
unstable.protonmail-bridge
|
||||
];
|
||||
home.packages = with pkgs; [ unstable.protonmail-bridge ];
|
||||
|
||||
services.mbsync.enable = true;
|
||||
|
||||
systemd.user.services."proton-bridge" = {
|
||||
Unit.Description = "Bridge to ProtonMail";
|
||||
Install.WantedBy = [ "default.target" "mbsync.service" ];
|
||||
Service.ExecStart = "${unstable.protonmail-bridge}/bin/protonmail-bridge --noninteractive";
|
||||
Service.ExecStart =
|
||||
"${unstable.protonmail-bridge}/bin/protonmail-bridge --noninteractive";
|
||||
Service.Environment = "PATH=${pkgs.pass}/bin:${pkgs.gnupg}/bin";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services = { };
|
||||
|
||||
xsession = {
|
||||
enable = false;
|
||||
};
|
||||
xsession = { enable = false; };
|
||||
|
||||
programs.gnome-terminal = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManager.enlightenment.enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.xserver.videoDrivers = [ "intel" ];
|
||||
|
||||
hardware.opengl = {
|
||||
|
|
|
@ -7,8 +7,7 @@ let
|
|||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||
exec -a "$0" "$@"
|
||||
'';
|
||||
in
|
||||
{
|
||||
in {
|
||||
environment.systemPackages = [ nvidia-offload ];
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
{ config, pkgs, lib, ... }: {
|
||||
home-manager.users.cyryl = { ... }: { imports = [ ./home.nix ]; };
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
|
@ -24,12 +23,14 @@
|
|||
pull.ff = "only";
|
||||
push.default = "simple";
|
||||
};
|
||||
aliases =
|
||||
{
|
||||
tree = "log --show-signature --color --decorate --date=short --all --graph -n 3";
|
||||
newbranch = "!git checkout master && git fetch -p && git reset --hard origin/master && git checkout -b $2";
|
||||
aliases = {
|
||||
tree =
|
||||
"log --show-signature --color --decorate --date=short --all --graph -n 3";
|
||||
newbranch =
|
||||
"!git checkout master && git fetch -p && git reset --hard origin/master && git checkout -b $2";
|
||||
head = "log HEAD -n1";
|
||||
vacuum = "!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs -r git branch -D && git gc --aggressive --auto";
|
||||
vacuum =
|
||||
"!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs -r git branch -D && git gc --aggressive --auto";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./system.nix
|
||||
];
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [ ./system.nix ];
|
||||
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
home-manager.users.cyryl = { ... }: { imports = [ ./home.nix ]; };
|
||||
}
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services = { };
|
||||
|
||||
xsession = {
|
||||
enable = false;
|
||||
};
|
||||
xsession = { enable = false; };
|
||||
|
||||
home.packages = with pkgs; [
|
||||
gnome-usage
|
||||
gnome3.gnome-tweaks
|
||||
];
|
||||
home.packages = with pkgs; [ gnome-usage gnome3.gnome-tweaks ];
|
||||
|
||||
programs.gnome-terminal = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
networking.firewall.allowedTCPPortRanges = [{ from = 1716; to = 1764; }];
|
||||
networking.firewall.allowedUDPPortRanges = [{ from = 1716; to = 1764; }];
|
||||
{ config, pkgs, ... }: {
|
||||
networking.firewall.allowedTCPPortRanges = [{
|
||||
from = 1716;
|
||||
to = 1764;
|
||||
}];
|
||||
networking.firewall.allowedUDPPortRanges = [{
|
||||
from = 1716;
|
||||
to = 1764;
|
||||
}];
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ config, pkgs, discord, inputs, nixpkgs-nixos-unstable-and-unfree, ... }:
|
||||
let
|
||||
unstable = inputs.nixpkgs-nixos-unstable.legacyPackages.${pkgs.system};
|
||||
in
|
||||
{
|
||||
let unstable = inputs.nixpkgs-nixos-unstable.legacyPackages.${pkgs.system};
|
||||
in {
|
||||
programs.firejail.enable = true;
|
||||
programs.firejail.wrappedBinaries = {
|
||||
firefox = {
|
||||
|
@ -32,11 +30,12 @@ in
|
|||
style.package = pkgs.adwaita-qt;
|
||||
};
|
||||
|
||||
imports = [
|
||||
./firejail.nix
|
||||
];
|
||||
imports = [ ./firejail.nix ];
|
||||
|
||||
home.packages = with pkgs; with pkgs.gnome3; with pkgs.python38Packages; [
|
||||
home.packages = with pkgs;
|
||||
with pkgs.gnome3;
|
||||
with pkgs.python38Packages;
|
||||
[
|
||||
anarchism
|
||||
binwalk-full
|
||||
brave
|
||||
|
@ -82,8 +81,7 @@ in
|
|||
yubikey-manager-qt
|
||||
yubikey-personalization
|
||||
yubikey-personalization-gui
|
||||
] ++
|
||||
[
|
||||
] ++ [
|
||||
nixpkgs-nixos-unstable-and-unfree.discord
|
||||
nixpkgs-nixos-unstable-and-unfree.hopper
|
||||
nixpkgs-nixos-unstable-and-unfree.slack
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, lib, ... }: {
|
||||
home.file.".config/firejail/firefox.profile".text = ''
|
||||
include ${pkgs.firejail}/etc/firejail/firefox.profile
|
||||
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
{ config, pkgs, ... }: {
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
(vscode-with-extensions.override {
|
||||
vscodeExtensions = with vscode-extensions; [
|
||||
vscodeExtensions = with vscode-extensions;
|
||||
[
|
||||
ms-python.python
|
||||
(
|
||||
vscode-utils.buildVscodeExtension {
|
||||
(vscode-utils.buildVscodeExtension {
|
||||
vscodeExtUniqueId = "vadimcn.vscode-lldb";
|
||||
name = "vadimcn.vscode-lldb-1.6.10";
|
||||
src = fetchurl {
|
||||
name = "vadimcn.vscode-lldb.zip";
|
||||
url = "https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix";
|
||||
url =
|
||||
"https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix";
|
||||
sha256 = "sha256-QWbpe6ofacjrTCyWSKljwHDWWeHGmKNqi7cpw8Qy5Tw=";
|
||||
};
|
||||
buildInputs = with pkgs; [ llvm lldb python37 autoPatchelfHook ];
|
||||
}
|
||||
)
|
||||
})
|
||||
]
|
||||
|
||||
++
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
(pass.withExtensions (ext: [ ext.pass-otp ext.pass-import ext.pass-genphrase ext.pass-audit ext.pass-update ]))
|
||||
(pass.withExtensions (ext: [
|
||||
ext.pass-otp
|
||||
ext.pass-import
|
||||
ext.pass-genphrase
|
||||
ext.pass-audit
|
||||
ext.pass-update
|
||||
]))
|
||||
aria
|
||||
bfg-repo-cleaner
|
||||
binutils
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
|
||||
news.display = "show";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
home.packages = with pkgs; [ ];
|
||||
|
||||
imports = [
|
||||
./programs/tmux.nix
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
pinentryFlavor = "curses";
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.sessionVariables = {
|
||||
TERMINAL = "alacritty";
|
||||
};
|
||||
{ config, pkgs, ... }: {
|
||||
home.sessionVariables = { TERMINAL = "alacritty"; };
|
||||
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
{ config, pkgs, lib, ... }: {
|
||||
home-manager.users.cyryl = { ... }: { imports = [ ./home.nix ]; };
|
||||
}
|
||||
|
|
|
@ -2,16 +2,9 @@
|
|||
let
|
||||
myEmacs = pkgs.emacs-nox;
|
||||
emacsWithPackages = (pkgs.emacsPackagesGen myEmacs).emacsWithPackages;
|
||||
in
|
||||
emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
|
||||
magit
|
||||
solarized-theme
|
||||
evil
|
||||
])
|
||||
++ (with epkgs.melpaPackages; [
|
||||
xterm-color
|
||||
nix-mode
|
||||
])
|
||||
in emacsWithPackages (epkgs:
|
||||
(with epkgs.melpaStablePackages; [ magit solarized-theme evil ])
|
||||
++ (with epkgs.melpaPackages; [ xterm-color nix-mode ])
|
||||
++ (with epkgs.elpaPackages; [
|
||||
beacon # ; highlight my cursor when scrolling
|
||||
nameless # ; hide current package name everywhere in elisp code
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
home.file.".emacs".text = ''
|
||||
(require 'package)
|
||||
|
||||
|
|
|
@ -13,11 +13,7 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoSha256 = "1p6l64s9smhwka8bh3pamqimamxziad859i62nrmxzqc49nq5s7m";
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
pkgconfig
|
||||
git
|
||||
];
|
||||
buildInputs = [ openssl pkgconfig git ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple yet robust commandline random password generator.";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
shortcut = "a";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
history = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [
|
||||
./scripts/mount-vault.nix
|
||||
./scripts/umount-vault.nix
|
||||
|
|
|
@ -10,7 +10,4 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [ download ];
|
||||
}
|
||||
in { home.packages = with pkgs; [ download ]; }
|
||||
|
|
|
@ -50,8 +50,7 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
in {
|
||||
|
||||
home.packages = with pkgs; [ mount-vault ];
|
||||
}
|
||||
|
|
|
@ -17,7 +17,4 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [ umount-vault ];
|
||||
}
|
||||
in { home.packages = with pkgs; [ umount-vault ]; }
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz;
|
||||
unstableTarball = fetchTarball
|
||||
"https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz";
|
||||
dotfiles = "/home/cyryl/dev/dotfiles";
|
||||
in
|
||||
{
|
||||
in {
|
||||
home.username = "cyryl";
|
||||
home.homeDirectory = "/home/cyryl";
|
||||
home.stateVersion = "21.11";
|
||||
|
@ -12,15 +12,11 @@ in
|
|||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
packageOverrides = pkgs: {
|
||||
unstable = import unstableTarball {
|
||||
config = config.nixpkgs.config;
|
||||
};
|
||||
unstable = import unstableTarball { config = config.nixpkgs.config; };
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
LOCALE_ARCHIVE = /usr/lib/locale/locale-archive;
|
||||
};
|
||||
home.sessionVariables = { LOCALE_ARCHIVE = /usr/lib/locale/locale-archive; };
|
||||
|
||||
targets.genericLinux.enable = true;
|
||||
home.file.".gitconfig".source = ~/dev/dotfiles/.gitconfig.linux.form3;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.autorandr.enable = true;
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
programs.autorandr = {
|
||||
|
@ -25,13 +24,13 @@
|
|||
profiles = {
|
||||
"foureighty-docked" = {
|
||||
fingerprint = {
|
||||
eDP-1 = "00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2";
|
||||
DP-1 = "00ffffffffffff0026cd4e66f3030000271d0104b53c22783ef6d5a7544b9e250d5054bfef80714f8140818081c09500b300d1c001014dd000a0f0703e8030203500544f2100001a000000ff0031313636333933393031303131000000fd00184c1fa03c000a202020202020000000fc00504c3237393255480a202020200176020320f15390050403020716011f121314201511065d5e5f2309070783010000023a801871382d40582c4500544f2100001f011d8018711c1620582c2500544f2100009fa76600a0f0701f8030205500544f2100001ff45100a0f070198030203500544f2100001f565e00a0a0a0295030203500544f2100001b000000000059";
|
||||
eDP-1 =
|
||||
"00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2";
|
||||
DP-1 =
|
||||
"00ffffffffffff0026cd4e66f3030000271d0104b53c22783ef6d5a7544b9e250d5054bfef80714f8140818081c09500b300d1c001014dd000a0f0703e8030203500544f2100001a000000ff0031313636333933393031303131000000fd00184c1fa03c000a202020202020000000fc00504c3237393255480a202020200176020320f15390050403020716011f121314201511065d5e5f2309070783010000023a801871382d40582c4500544f2100001f011d8018711c1620582c2500544f2100009fa76600a0f0701f8030205500544f2100001ff45100a0f070198030203500544f2100001f565e00a0a0a0295030203500544f2100001b000000000059";
|
||||
};
|
||||
config = {
|
||||
eDP-1 = {
|
||||
enable = false;
|
||||
};
|
||||
eDP-1 = { enable = false; };
|
||||
DP-1 = {
|
||||
enable = true;
|
||||
primary = true;
|
||||
|
@ -42,7 +41,8 @@
|
|||
};
|
||||
"foureighty" = {
|
||||
fingerprint = {
|
||||
eDP-1 = "00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2";
|
||||
eDP-1 =
|
||||
"00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2";
|
||||
};
|
||||
config = {
|
||||
eDP-1 = {
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./autorandr.nix
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome3.dconf
|
||||
];
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [ ./autorandr.nix ];
|
||||
environment.systemPackages = with pkgs; [ gnome3.dconf ];
|
||||
programs.dconf.enable = true;
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "cyryl" ];
|
||||
commands = [{ command = "${pkgs.i3}/bin/i3-msg"; options = [ "NOPASSWD" ]; }];
|
||||
commands = [{
|
||||
command = "${pkgs.i3}/bin/i3-msg";
|
||||
options = [ "NOPASSWD" ];
|
||||
}];
|
||||
}
|
||||
{
|
||||
users = [ "cyryl" ];
|
||||
commands = [{ command = "${pkgs.intel-gpu-tools}/bin/intel_gpu_top"; options = [ "NOPASSWD" ]; }];
|
||||
commands = [{
|
||||
command = "${pkgs.intel-gpu-tools}/bin/intel_gpu_top";
|
||||
options = [ "NOPASSWD" ];
|
||||
}];
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -25,9 +26,7 @@
|
|||
allowAnyUser = true;
|
||||
};
|
||||
|
||||
dbus = {
|
||||
packages = with pkgs; [ gnome2.GConf gnome3.dconf ];
|
||||
};
|
||||
dbus = { packages = with pkgs; [ gnome2.GConf gnome3.dconf ]; };
|
||||
|
||||
fractalart.enable = true;
|
||||
colord.enable = true;
|
||||
|
@ -38,10 +37,7 @@
|
|||
};
|
||||
};
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
imports = [ ./home.nix ];
|
||||
home.packages = with pkgs; [ ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
|
||||
home.packages = with pkgs; [ grobi ];
|
||||
services.grobi = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [
|
||||
./i3.nix
|
||||
./i3-status.nix
|
||||
|
@ -9,9 +8,7 @@
|
|||
./xidlehook.nix
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
CM_LAUNCHER = "rofi";
|
||||
};
|
||||
home.sessionVariables = { CM_LAUNCHER = "rofi"; };
|
||||
|
||||
services = {
|
||||
picom = {
|
||||
|
@ -35,9 +32,6 @@
|
|||
longitude = -1.0;
|
||||
};
|
||||
|
||||
xsession = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
xsession = { enable = true; };
|
||||
|
||||
}
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
programs.i3status = {
|
||||
enable = true;
|
||||
enableDefault = false;
|
||||
modules = {
|
||||
"load" = {
|
||||
position = 1;
|
||||
};
|
||||
"load" = { position = 1; };
|
||||
"disk /" = {
|
||||
position = 2;
|
||||
settings = {
|
||||
format = " %avail";
|
||||
};
|
||||
settings = { format = " %avail"; };
|
||||
};
|
||||
"memory" = {
|
||||
settings = {
|
||||
|
@ -32,9 +27,7 @@
|
|||
position = 3;
|
||||
};
|
||||
"time" = {
|
||||
settings = {
|
||||
format = "%a %d/%m %H:%M";
|
||||
};
|
||||
settings = { format = "%a %d/%m %H:%M"; };
|
||||
position = 9;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.kdeconnect = {
|
||||
enable = true;
|
||||
indicator = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.polybar = {
|
||||
enable = true;
|
||||
script = "polybar -r main_bar &";
|
||||
|
@ -41,13 +40,12 @@
|
|||
"module/weather" = {
|
||||
type = "custom/script";
|
||||
interval = 600;
|
||||
exec = "${pkgs.bash}/bin/bash -c 'source ~/dev/dotfiles/nixos/i3/polybar/openweathermap-fullfeatured.sh'";
|
||||
exec =
|
||||
"${pkgs.bash}/bin/bash -c 'source ~/dev/dotfiles/nixos/i3/polybar/openweathermap-fullfeatured.sh'";
|
||||
label-font = 2;
|
||||
};
|
||||
|
||||
"module/i3" = {
|
||||
type = "internal/i3";
|
||||
};
|
||||
"module/i3" = { type = "internal/i3"; };
|
||||
|
||||
"module/cpu" = {
|
||||
type = "internal/cpu";
|
||||
|
@ -58,7 +56,8 @@
|
|||
"module/temperature" = {
|
||||
type = "custom/script";
|
||||
interval = 5;
|
||||
exec = "${pkgs.bash}/bin/bash -c 'source ~/dev/dotfiles/nixos/i3/polybar/cpu-temp.sh'";
|
||||
exec =
|
||||
"${pkgs.bash}/bin/bash -c 'source ~/dev/dotfiles/nixos/i3/polybar/cpu-temp.sh'";
|
||||
};
|
||||
|
||||
"module/memory" = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.xidlehook = {
|
||||
enable = true;
|
||||
not-when-audio = true;
|
||||
|
@ -10,8 +9,8 @@
|
|||
timers = [
|
||||
{
|
||||
delay = 60;
|
||||
command = "xrandr --output \"$PRIMARY_DISPLAY\" --brightness .1";
|
||||
canceller = "xrandr --output \"$PRIMARY_DISPLAY\" --brightness 1";
|
||||
command = ''xrandr --output "$PRIMARY_DISPLAY" --brightness .1'';
|
||||
canceller = ''xrandr --output "$PRIMARY_DISPLAY" --brightness 1'';
|
||||
}
|
||||
{
|
||||
delay = 600;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.sddm = {
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.kernelParams = [ "intel_iommu=on" ];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation.kvmgt.enable = true;
|
||||
users.extraUsers.cyryl.extraGroups = [ "kvm" ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
virtmanager
|
||||
qemu
|
||||
swtpm
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ virtmanager qemu swtpm ];
|
||||
|
||||
}
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
{ config, pkgs, lib, ... }: {
|
||||
home-manager.users.cyryl = { ... }: { imports = [ ./home.nix ]; };
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
programs.mercurial = {
|
||||
enable = true;
|
||||
userName = "Cyryl Płotnicki";
|
||||
|
@ -10,7 +9,6 @@
|
|||
[ui]
|
||||
paginate = never
|
||||
'';
|
||||
aliases =
|
||||
{ };
|
||||
aliases = { };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,17 @@ stdenv.mkDerivation rec {
|
|||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
buildInputs = [ libgee json-glib gnome3.evolution-data-server gnome3.evolution gtk3 webkitgtk glib libsecret libsoup ];
|
||||
buildInputs = [
|
||||
libgee
|
||||
json-glib
|
||||
gnome3.evolution-data-server
|
||||
gnome3.evolution
|
||||
gtk3
|
||||
webkitgtk
|
||||
glib
|
||||
libsecret
|
||||
libsoup
|
||||
];
|
||||
nativeBuildInputs = [ meson ninja vala pkg-config ];
|
||||
configurePhase = "meson build --prefix=$out";
|
||||
buildPhase = "ninja -C build";
|
||||
|
|
|
@ -6,13 +6,15 @@ let
|
|||
version = "1.6.2";
|
||||
src = pythonPackages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bafdd195f10f7c7395f0133bad09746a68e0e6b66da202c9bdb6b1eb4abba5e9";
|
||||
sha256 =
|
||||
"bafdd195f10f7c7395f0133bad09746a68e0e6b66da202c9bdb6b1eb4abba5e9";
|
||||
};
|
||||
doCheck = false;
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/ricmoo/pyscrypt";
|
||||
license = licenses.mit;
|
||||
description = "Pure-Python Implementation of the scrypt password-based key derivation function and scrypt file format library";
|
||||
description =
|
||||
"Pure-Python Implementation of the scrypt password-based key derivation function and scrypt file format library";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -21,7 +23,8 @@ let
|
|||
version = "1.0";
|
||||
src = pythonPackages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b89895ba6438038d0bdf88020ceff876cf3eae0d5c66a69b526fab31125db2c5";
|
||||
sha256 =
|
||||
"b89895ba6438038d0bdf88020ceff876cf3eae0d5c66a69b526fab31125db2c5";
|
||||
};
|
||||
checkInputs = [ python37Packages.pycodestyle ];
|
||||
propagatedBuildInputs = [ python37Packages.six ];
|
||||
|
@ -37,7 +40,8 @@ let
|
|||
version = "2.0.0";
|
||||
src = pythonPackages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "fdcaedc1fb19a63d7d875b0105b0a5b496dd0989330d454a42bcb401fa5454ec";
|
||||
sha256 =
|
||||
"fdcaedc1fb19a63d7d875b0105b0a5b496dd0989330d454a42bcb401fa5454ec";
|
||||
};
|
||||
checkInputs = [ python37Packages.flake8 ];
|
||||
propagatedBuildInputs = [ orderedmultidict python37Packages.six ];
|
||||
|
@ -92,7 +96,8 @@ let
|
|||
version = "2.1.11";
|
||||
src = pythonPackages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02273fcc6ae10e0f74aa12652e24d0001eec8dbf467d54ddb4dfcc2af7d7a5db";
|
||||
sha256 =
|
||||
"02273fcc6ae10e0f74aa12652e24d0001eec8dbf467d54ddb4dfcc2af7d7a5db";
|
||||
};
|
||||
doCheck = false;
|
||||
checkInputs = [
|
||||
|
@ -101,7 +106,8 @@ let
|
|||
python37Packages.pytest-flake8
|
||||
python37Packages.pytestcov
|
||||
];
|
||||
propagatedBuildInputs = [ python37Packages.dateutil python37Packages.vobject ];
|
||||
propagatedBuildInputs =
|
||||
[ python37Packages.dateutil python37Packages.vobject ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://www.radicale.org/";
|
||||
license = licenses.gpl1;
|
||||
|
@ -139,9 +145,7 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
python37.pkgs.buildPythonPackage rec {
|
||||
in python37.pkgs.buildPythonPackage rec {
|
||||
pname = "etesync-dav";
|
||||
version = "0.5.0";
|
||||
src = pythonPackages.fetchPypi {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
systemd.services.cpu-throttling = {
|
||||
enable = true;
|
||||
description = "CPU Throttling Fix";
|
||||
|
@ -8,12 +7,8 @@
|
|||
];
|
||||
path = [ pkgs.msr-tools ];
|
||||
script = "wrmsr -a 0x1a2 0x3000000";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
};
|
||||
wantedBy = [
|
||||
"timers.target"
|
||||
];
|
||||
serviceConfig = { Type = "oneshot"; };
|
||||
wantedBy = [ "timers.target" ];
|
||||
};
|
||||
|
||||
systemd.timers.cpu-throttling = {
|
||||
|
@ -27,8 +22,6 @@
|
|||
OnUnitActiveSec = 60;
|
||||
Unit = "cpu-throttling.service";
|
||||
};
|
||||
wantedBy = [
|
||||
"timers.target"
|
||||
];
|
||||
wantedBy = [ "timers.target" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
boot.kernelPatches = [{
|
||||
name = "cyplo-hardened";
|
||||
patch = null;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
{ config, pkgs, lib, ... }: {
|
||||
nix.allowedUsers = [ "@users" ];
|
||||
security.lockKernelModules = false;
|
||||
security.protectKernelImage = true;
|
||||
|
@ -10,11 +9,8 @@
|
|||
networking.firewall.enable = true;
|
||||
services.clamav.daemon.enable = true;
|
||||
services.clamav.updater.enable = true;
|
||||
boot.kernelParams = [
|
||||
"slub_debug=FZP"
|
||||
"page_poison=1"
|
||||
"page_alloc.shuffle=1"
|
||||
];
|
||||
boot.kernelParams =
|
||||
[ "slub_debug=FZP" "page_poison=1" "page_alloc.shuffle=1" ];
|
||||
|
||||
boot.blacklistedKernelModules = [
|
||||
# Obscure network protocols
|
||||
|
|
|
@ -6,11 +6,8 @@ let
|
|||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwZ4M6lT2yzg8iarCzsLADAuXS4BUkLTt1+mKCECczk nix-builder@brix"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIALNEUIxbENTdhSWzYupGFn/q+AGe0diBOTMyiZAmv7F nix-builder@vultr1"
|
||||
];
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./security.nix
|
||||
];
|
||||
in {
|
||||
imports = [ ./security.nix ];
|
||||
security.acme.email = "admin@cyplo.dev";
|
||||
security.acme.acceptTerms = true;
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
permittedInsecurePackages = [
|
||||
];
|
||||
permittedInsecurePackages = [ ];
|
||||
packageOverrides = pkgs: {
|
||||
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
||||
};
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
mod = "Mod4";
|
||||
in
|
||||
{
|
||||
let mod = "Mod4";
|
||||
in {
|
||||
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.dconf ];
|
||||
services.dbus.socketActivated = true;
|
||||
programs.dconf.enable = true;
|
||||
|
@ -12,9 +10,7 @@ in
|
|||
home-manager.users.cyryl = { ... }: {
|
||||
programs.mako.enable = true;
|
||||
|
||||
imports = [
|
||||
./keybindings.nix
|
||||
];
|
||||
imports = [ ./keybindings.nix ];
|
||||
|
||||
home.sessionVariables = {
|
||||
XDG_CURRENT_DESKTOP = "Unity";
|
||||
|
@ -41,7 +37,8 @@ in
|
|||
|
||||
home.file.".config/wofi/style.css".source = ../../.config/wofi/style.css;
|
||||
home.file.".config/waybar/config".source = ../../.config/waybar/config;
|
||||
home.file.".config/waybar/style.css".source = ../../.config/waybar/style.css;
|
||||
home.file.".config/waybar/style.css".source =
|
||||
../../.config/waybar/style.css;
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
wrapperFeatures.base = true;
|
||||
|
@ -50,8 +47,7 @@ in
|
|||
extraConfig = ''
|
||||
default_border none
|
||||
'';
|
||||
extraSessionCommands = ''
|
||||
'';
|
||||
extraSessionCommands = "";
|
||||
config = {
|
||||
modifier = "${mod}";
|
||||
menu = "${pkgs.wofi}/bin/wofi --show drun,run";
|
||||
|
@ -62,17 +58,19 @@ in
|
|||
titlebar = false;
|
||||
border = 0;
|
||||
};
|
||||
bars = [
|
||||
{
|
||||
bars = [{
|
||||
position = "top";
|
||||
command = "${pkgs.waybar}/bin/waybar";
|
||||
}
|
||||
];
|
||||
}];
|
||||
startup = [
|
||||
{ command = "${pkgs.wl-clipboard}/bin/wl-paste -t text --watch ${pkgs.clipman}/bin/clipman store"; }
|
||||
{
|
||||
command =
|
||||
"${pkgs.wl-clipboard}/bin/wl-paste -t text --watch ${pkgs.clipman}/bin/clipman store";
|
||||
}
|
||||
{ command = "${pkgs.clipman}/bin/clipman restore"; }
|
||||
{
|
||||
command = ''swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off" && systemctl suspend' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 657b83'
|
||||
command = ''
|
||||
swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off" && systemctl suspend' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 657b83'
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
@ -81,9 +79,7 @@ in
|
|||
xkb_layout = "pl";
|
||||
xkb_options = "caps:ctrl_modifier";
|
||||
};
|
||||
input."2:7:SynPS/2_Synaptics_TouchPad" = {
|
||||
tap = "enabled";
|
||||
};
|
||||
input."2:7:SynPS/2_Synaptics_TouchPad" = { tap = "enabled"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,21 +1,25 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
mod = "Mod4";
|
||||
in
|
||||
{
|
||||
let mod = "Mod4";
|
||||
in {
|
||||
wayland.windowManager.sway.config.keybindings = {
|
||||
"${mod}+Shift+e" = "exit";
|
||||
"${mod}+Shift+r" = "reload";
|
||||
"${mod}+Shift+l" = "exec swaylock -c 657b83";
|
||||
"${mod}+Return" = "exec ${pkgs.kitty}/bin/kitty";
|
||||
|
||||
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||
"XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||
"XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||
"XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||
"XF86AudioRaiseVolume" =
|
||||
"exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||
"XF86AudioLowerVolume" =
|
||||
"exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||
"XF86AudioMute" =
|
||||
"exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||
"XF86AudioMicMute" =
|
||||
"exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||
|
||||
"XF86MonBrightnessUp" = "exec light -s sysfs/backlight/intel_backlight -A 5";
|
||||
"XF86MonBrightnessDown" = "exec light -s sysfs/backlight/intel_backlight -U 5";
|
||||
"XF86MonBrightnessUp" =
|
||||
"exec light -s sysfs/backlight/intel_backlight -A 5";
|
||||
"XF86MonBrightnessDown" =
|
||||
"exec light -s sysfs/backlight/intel_backlight -U 5";
|
||||
|
||||
"Print" = "exec ${pkgs.gnome3.gnome-screenshot}/bin/gnome-screenshot -i";
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "cyryl";
|
||||
dataDir = "/home/cyryl/.syncthing";
|
||||
openDefaultPorts = true;
|
||||
package = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
|
||||
package =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
let
|
||||
tailscale = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
tailscale =
|
||||
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
|
||||
|
||||
in
|
||||
{
|
||||
in {
|
||||
environment.systemPackages = [ tailscale ];
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
{ config, lib, ... }: {
|
||||
options.variables = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = { };
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
{ config, pkgs, ... }: {
|
||||
virtualisation.virtualbox.host = {
|
||||
enable = true;
|
||||
enableExtensionPack = true;
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
};
|
||||
{ config, pkgs, ... }: {
|
||||
networking.wireguard = { enable = true; };
|
||||
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
let
|
||||
nixpkgs = import <nixpkgs> { };
|
||||
in
|
||||
with nixpkgs;
|
||||
let nixpkgs = import <nixpkgs> { };
|
||||
in with nixpkgs;
|
||||
stdenv.mkDerivation {
|
||||
name = "legacy_shell";
|
||||
buildInputs = [
|
||||
|
@ -11,6 +9,5 @@ stdenv.mkDerivation {
|
|||
cacert
|
||||
git
|
||||
];
|
||||
shellHook = ''
|
||||
'';
|
||||
shellHook = "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue