format + add alpine

This commit is contained in:
Tristan 2024-02-14 23:35:50 +00:00
parent e9a22d817e
commit 3bf9f9b6d1
8 changed files with 90 additions and 64 deletions

View file

@ -16,7 +16,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import inputs.nixpkgs { pkgs = import inputs.nixpkgs {
inherit system; inherit system;
overlays = [ inputs.hyprland.overlays ]; overlays = [inputs.hyprland.overlays];
}; };
user = "tristan"; user = "tristan";
userFullname = "Tristan Beedell"; userFullname = "Tristan Beedell";
@ -49,6 +49,8 @@
./home/desktop/hyprland/. ./home/desktop/hyprland/.
]; ];
alpine = mkConf [./hardware/alpine.nix] [];
vm-sway = vm-sway =
builtins.trace '' builtins.trace ''
use super+enter to start a terminal. use super+enter to start a terminal.

View file

@ -1,52 +1,70 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
]; pkgs,
modulesPath,
...
}: let
user = config.user;
in {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" ]; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "sd_mod"];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/979fe496-10e8-41be-97d1-3d000cd2b384"; device = "/dev/disk/by-uuid/979fe496-10e8-41be-97d1-3d000cd2b384";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/72d527de-fead-43d5-8f29-e06d2c584a18"; device = "/dev/disk/by-uuid/72d527de-fead-43d5-8f29-e06d2c584a18";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/mnt/disk1" = fileSystems."/mnt/disk1" = {
{ device = "/dev/disk/by-uuid/caba0b6c-00d2-495a-8c04-67ea584f1a63"; device = "/dev/disk/by-uuid/caba0b6c-00d2-495a-8c04-67ea584f1a63";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/mnt/disk2" = fileSystems."/mnt/disk2" = {
{ device = "/dev/disk/by-uuid/e3828580-625e-4f93-974f-9c7fed99dee2"; device = "/dev/disk/by-uuid/e3828580-625e-4f93-974f-9c7fed99dee2";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/mnt/disk3" = fileSystems."/mnt/disk3" = {
{ device = "/dev/disk/by-uuid/28f15a05-d550-4a41-a951-244af6140831"; device = "/dev/disk/by-uuid/28f15a05-d550-4a41-a951-244af6140831";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/mnt/parity1" = fileSystems."/mnt/parity1" = {
{ device = "/dev/disk/by-uuid/09fc062c-1a61-4e1b-802c-60f7178bc713"; device = "/dev/disk/by-uuid/09fc062c-1a61-4e1b-802c-60f7178bc713";
fsType = "ext4"; fsType = "ext4";
}; };
# /etc/fstab # /etc/fstab
# /mnt/disk1:/mnt/disk2:/mnt/disk3 /mnt/storage mergerfs direct_io,use_ino,allow_other,minfreespace=50G,fsname=mergerfs,category.create=mfs,func.mkdir=epall 0 0 # /mnt/disk1:/mnt/disk2:/mnt/disk3 /mnt/storage mergerfs direct_io,use_ino,allow_other,minfreespace=50G,fsname=mergerfs,category.create=mfs,func.mkdir=epall 0 0
fileSystems."/mnt/storage" = {
device = "/mnt/disk1:/mnt/disk2:/mnt/disk3";
fsType = "mergerfs";
depends = ["/mnt/disk1" "/mnt/disk2" "/mnt/disk3"];
options = [
"direct_io"
"use_ino"
"allow_other"
"minfreespace=50G"
"fsname=mergerfs"
"category.create=mfs"
"func.mkdir=epall"
];
};
# auto-generated-config: looks sus # auto-generated-config: looks sus
# fileSystems."/mnt/storage" = # fileSystems."/mnt/storage" =
@ -60,9 +78,9 @@
# options = [ "bind" ]; # options = [ "bind" ];
# }; # };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/27ad4809-211f-4ae9-90da-d17d9c1df271"; } {device = "/dev/disk/by-uuid/27ad4809-211f-4ae9-90da-d17d9c1df271";}
]; ];
# 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
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's
@ -76,6 +94,11 @@
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
system.stateVersion = "24.05"; # don't change. system.stateVersion = "24.05"; # don't change.
home-manager.users.${user}.imports = [
{
home.stateVersion = "24.05";
}
];
services.snapraid = { services.snapraid = {
enable = true; enable = true;
@ -95,7 +118,4 @@
"/mnt/parity1/SnapRAID.parity" "/mnt/parity1/SnapRAID.parity"
]; ];
}; };
} }

View file

@ -197,9 +197,11 @@ in {
window=$(echo "$windows" | ${menu}) window=$(echo "$windows" | ${menu})
hyprctl dispatch focuswindow title:"$window" hyprctl dispatch focuswindow title:"$window"
''; '';
hotkeys = [{ hotkeys = [
key = "tab"; {
}]; key = "tab";
}
];
} }
]; ];

View file

@ -1,6 +1,4 @@
{ {pkgs, ...}: {
pkgs, ...
}: {
home.packages = with pkgs; [wlr-randr nwg-displays]; home.packages = with pkgs; [wlr-randr nwg-displays];
wayland.windowManager.hyprland.settings.source = [ wayland.windowManager.hyprland.settings.source = [

View file

@ -1,4 +1,8 @@
{pkgs,lib, ...}: { {
pkgs,
lib,
...
}: {
imports = [ imports = [
./qutebrowser.nix ./qutebrowser.nix
./pcmanfm.nix ./pcmanfm.nix

View file

@ -19,8 +19,7 @@
}; };
scripts = [ scripts = [
pkgs.mpvScripts.mpris pkgs.mpvScripts.mpris
(pkgs.callPackage ../../pkgs/mpv-skipsilence.nix {inherit ( pkgs.mpvScripts ) buildLua;}) (pkgs.callPackage ../../pkgs/mpv-skipsilence.nix {inherit (pkgs.mpvScripts) buildLua;})
]; ];
}; };
} }

View file

@ -1,12 +1,14 @@
{config, pkgs, ...}: {
let config,
pkgs,
...
}: let
modifier = config.windowManager.modifierKey; modifier = config.windowManager.modifierKey;
pwa = { pwa = {
slack = "mpagibdhafmlkgpemeicgogjnhclenoc"; slack = "mpagibdhafmlkgpemeicgogjnhclenoc";
teams = "cifhbcnohmdccbgoicgdjpfamggdegmo"; teams = "cifhbcnohmdccbgoicgdjpfamggdegmo";
}; };
in in {
{
roles.email = { roles.email = {
enable = true; enable = true;
email = "tristan.beedell@cryoserver.com"; email = "tristan.beedell@cryoserver.com";

View file

@ -1,9 +1,9 @@
{ lib {
, buildLua lib,
, fetchgit buildLua,
, gitUpdater fetchgit,
gitUpdater,
}: }:
buildLua rec { buildLua rec {
pname = "mpv-skipsilence"; pname = "mpv-skipsilence";
version = "1.0"; version = "1.0";
@ -17,8 +17,7 @@ buildLua rec {
meta = with lib; { meta = with lib; {
description = "Increase playback speed during silence - a revolution in attention-deficit induction technology."; description = "Increase playback speed during silence - a revolution in attention-deficit induction technology.";
homepage = "https://github.com/ferreum/mpv-skipsilence"; homepage = "https://github.com/ferreum/mpv-skipsilence";
license = licenses.unlicense; # actually they don't have a license license = licenses.unlicense; # actually they don't have a license
maintainers = [ ]; maintainers = [];
}; };
} }