nixfmt fix
This commit is contained in:
parent
46cdbd8a09
commit
6ec6eb239a
42
base.nix
42
base.nix
@ -1,12 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, inputs, outputs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
./modules/apps.nix
|
./modules/apps.nix
|
||||||
@ -19,9 +11,7 @@
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
inherit inputs outputs;
|
|
||||||
};
|
|
||||||
users.jawz = import ./home-manager.nix;
|
users.jawz = import ./home-manager.nix;
|
||||||
};
|
};
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
@ -31,9 +21,7 @@
|
|||||||
};
|
};
|
||||||
i18n = {
|
i18n = {
|
||||||
defaultLocale = "en_CA.UTF-8";
|
defaultLocale = "en_CA.UTF-8";
|
||||||
extraLocaleSettings = {
|
extraLocaleSettings = { LC_MONETARY = "es_MX.UTF-8"; };
|
||||||
LC_MONETARY = "es_MX.UTF-8";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
console = {
|
console = {
|
||||||
font = "Lat2-Terminus16";
|
font = "Lat2-Terminus16";
|
||||||
@ -46,14 +34,12 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
wheelNeedsPassword = false;
|
wheelNeedsPassword = false;
|
||||||
};
|
};
|
||||||
pam.loginLimits = [
|
pam.loginLimits = [{
|
||||||
{
|
domain = "*";
|
||||||
domain = "*";
|
type = "soft";
|
||||||
type = "soft";
|
item = "nofile";
|
||||||
item = "nofile";
|
value = "8192";
|
||||||
value = "8192";
|
}];
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
nix = {
|
nix = {
|
||||||
optimise.automatic = true;
|
optimise.automatic = true;
|
||||||
@ -63,10 +49,7 @@
|
|||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
experimental-features = [
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://nix-gaming.cachix.org"
|
"https://nix-gaming.cachix.org"
|
||||||
"https://nixpkgs-python.cachix.org"
|
"https://nixpkgs-python.cachix.org"
|
||||||
@ -85,9 +68,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
documentation = {
|
documentation = { enable = false; };
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
users.groups.piracy.gid = 985;
|
users.groups.piracy.gid = 985;
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [ wget ];
|
systemPackages = with pkgs; [ wget ];
|
||||||
@ -100,6 +81,7 @@
|
|||||||
XDG_STATE_HOME = "\${HOME}/.local/state";
|
XDG_STATE_HOME = "\${HOME}/.local/state";
|
||||||
|
|
||||||
# DEV PATH
|
# DEV PATH
|
||||||
|
CARGO_HOME = "${XDG_DATA_HOME}/cargo";
|
||||||
GEM_HOME = "${XDG_DATA_HOME}/ruby/gems";
|
GEM_HOME = "${XDG_DATA_HOME}/ruby/gems";
|
||||||
GEM_PATH = "${XDG_DATA_HOME}/ruby/gems";
|
GEM_PATH = "${XDG_DATA_HOME}/ruby/gems";
|
||||||
GEM_SPEC_CACHE = "${XDG_DATA_HOME}/ruby/specs";
|
GEM_SPEC_CACHE = "${XDG_DATA_HOME}/ruby/specs";
|
||||||
|
|||||||
40
gnome.nix
40
gnome.nix
@ -17,30 +17,27 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.gnome.excludePackages =
|
environment.gnome.excludePackages = (with pkgs; [
|
||||||
(with pkgs; [
|
gnome-photos
|
||||||
gnome-photos
|
gnome-tour
|
||||||
gnome-tour
|
gnome-text-editor
|
||||||
gnome-text-editor
|
gnome-connections
|
||||||
gnome-connections
|
# gnome-shell-extensions
|
||||||
# gnome-shell-extensions
|
baobab
|
||||||
baobab
|
]) ++ (with pkgs.gnome; [
|
||||||
])
|
# totem
|
||||||
++ (with pkgs.gnome; [
|
gnome-music
|
||||||
# totem
|
epiphany
|
||||||
gnome-music
|
gnome-characters
|
||||||
epiphany
|
yelp
|
||||||
gnome-characters
|
gnome-font-viewer
|
||||||
yelp
|
cheese
|
||||||
gnome-font-viewer
|
]);
|
||||||
cheese
|
|
||||||
]);
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
style = "adwaita";
|
style = "adwaita";
|
||||||
};
|
};
|
||||||
users.users.jawz.packages =
|
users.users.jawz.packages = with pkgs;
|
||||||
with pkgs;
|
|
||||||
([
|
([
|
||||||
# ffmpegthumbnailer # generate thumbnails
|
# ffmpegthumbnailer # generate thumbnails
|
||||||
adw-gtk3 # theme legacy applications
|
adw-gtk3 # theme legacy applications
|
||||||
@ -49,8 +46,7 @@
|
|||||||
# gradience # theme customizer, allows you to modify adw-gtk3 themes
|
# gradience # theme customizer, allows you to modify adw-gtk3 themes
|
||||||
# lm_sensors # for extension, displays cpu temp
|
# lm_sensors # for extension, displays cpu temp
|
||||||
libgda # for pano shell extension
|
libgda # for pano shell extension
|
||||||
])
|
]) ++ (with pkgs.gnomeExtensions; [
|
||||||
++ (with pkgs.gnomeExtensions; [
|
|
||||||
appindicator # applets for open applications
|
appindicator # applets for open applications
|
||||||
reading-strip # like putting a finger on every line I read
|
reading-strip # like putting a finger on every line I read
|
||||||
tactile # window manager
|
tactile # window manager
|
||||||
|
|||||||
@ -1,22 +1,10 @@
|
|||||||
{
|
{ config, lib, pkgs, inputs, outputs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
historyFile = "\${XDG_STATE_HOME}/bash/history";
|
historyFile = "\${XDG_STATE_HOME}/bash/history";
|
||||||
historyControl = [
|
historyControl = [ "erasedups" "ignorespace" "ignoredups" ];
|
||||||
"erasedups"
|
|
||||||
"ignorespace"
|
|
||||||
"ignoredups"
|
|
||||||
];
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
cp = "cp -i";
|
cp = "cp -i";
|
||||||
mv = "mv -i";
|
mv = "mv -i";
|
||||||
@ -63,9 +51,7 @@
|
|||||||
templates = "${config.xdg.dataHome}/Templates";
|
templates = "${config.xdg.dataHome}/Templates";
|
||||||
videos = "${config.home.homeDirectory}/Videos";
|
videos = "${config.home.homeDirectory}/Videos";
|
||||||
};
|
};
|
||||||
configFile = {
|
configFile = { "wgetrc".source = ../dotfiles/wget/wgetrc; };
|
||||||
"wgetrc".source = ../dotfiles/wget/wgetrc;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
helix.enable = true;
|
helix.enable = true;
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
# <agenix/modules/age.nix>
|
# <agenix/modules/age.nix>
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
@ -55,46 +49,40 @@
|
|||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "workstation";
|
hostName = "workstation";
|
||||||
firewall =
|
firewall = let
|
||||||
let
|
openPorts = [
|
||||||
openPorts = [
|
6674 # ns-usbloader
|
||||||
6674 # ns-usbloader
|
];
|
||||||
];
|
openPortRanges = [{
|
||||||
openPortRanges = [
|
from = 1714; # kdeconnect
|
||||||
{
|
to = 1764; # kdeconnect
|
||||||
from = 1714; # kdeconnect
|
}];
|
||||||
to = 1764; # kdeconnect
|
in {
|
||||||
}
|
allowedTCPPorts = openPorts;
|
||||||
];
|
allowedUDPPorts = openPorts;
|
||||||
in
|
allowedTCPPortRanges = openPortRanges;
|
||||||
{
|
allowedUDPPortRanges = openPortRanges;
|
||||||
allowedTCPPorts = openPorts;
|
};
|
||||||
allowedUDPPorts = openPorts;
|
|
||||||
allowedTCPPortRanges = openPortRanges;
|
|
||||||
allowedUDPPortRanges = openPortRanges;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nix =
|
nix = let
|
||||||
let
|
featuresList = [
|
||||||
featuresList = [
|
"nixos-test"
|
||||||
"nixos-test"
|
"benchmark"
|
||||||
"benchmark"
|
"big-parallel"
|
||||||
"big-parallel"
|
"kvm"
|
||||||
"kvm"
|
"gccarch-znver3"
|
||||||
"gccarch-znver3"
|
"gccarch-skylake"
|
||||||
"gccarch-skylake"
|
"gccarch-alderlake"
|
||||||
"gccarch-alderlake"
|
];
|
||||||
];
|
in {
|
||||||
in
|
distributedBuilds = true;
|
||||||
{
|
settings = {
|
||||||
distributedBuilds = true;
|
cores = 16;
|
||||||
settings = {
|
trusted-users = [ "nixremote" ];
|
||||||
cores = 16;
|
system-features = featuresList;
|
||||||
trusted-users = [ "nixremote" ];
|
|
||||||
system-features = featuresList;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
@ -104,14 +92,11 @@
|
|||||||
users = {
|
users = {
|
||||||
groups.nixremote.gid = 555;
|
groups.nixremote.gid = 555;
|
||||||
users = {
|
users = {
|
||||||
jawz.packages = (
|
jawz.packages = (with pkgs; [
|
||||||
with pkgs;
|
gocryptfs # encrypted filesystem! shhh!!!
|
||||||
[
|
torrenttools # create torrent files from the terminal!
|
||||||
gocryptfs # encrypted filesystem! shhh!!!
|
vcsi # video thumbnails for torrents, can I replace it with ^?
|
||||||
torrenttools # create torrent files from the terminal!
|
]);
|
||||||
vcsi # video thumbnails for torrents, can I replace it with ^?
|
|
||||||
]
|
|
||||||
);
|
|
||||||
nixremote = {
|
nixremote = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
|||||||
@ -1,15 +1,9 @@
|
|||||||
{
|
{ config, pkgs, modulesPath, lib, ... }: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
modulesPath,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
hardware = {
|
hardware = {
|
||||||
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
cpu.amd.updateMicrocode =
|
||||||
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.General = {
|
settings.General = {
|
||||||
@ -55,73 +49,57 @@
|
|||||||
preLVM = true;
|
preLVM = true;
|
||||||
};
|
};
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = [
|
availableKernelModules =
|
||||||
"xhci_pci"
|
[ "xhci_pci" "ahci" "usbhid" "nvme" "usb_storage" "sd_mod" ];
|
||||||
"ahci"
|
|
||||||
"usbhid"
|
|
||||||
"nvme"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
];
|
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems =
|
fileSystems = let
|
||||||
let
|
nfsMount = (server: nfsDisk: {
|
||||||
nfsMount = (
|
device = "${server}:/${nfsDisk}";
|
||||||
server: nfsDisk: {
|
fsType = "nfs";
|
||||||
device = "${server}:/${nfsDisk}";
|
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
|
||||||
fsType = "nfs";
|
});
|
||||||
options = [
|
btrfsMount = subvol: {
|
||||||
"x-systemd.automount"
|
device = "/dev/mapper/nvme";
|
||||||
"noauto"
|
fsType = "btrfs";
|
||||||
"x-systemd.idle-timeout=600"
|
options = [
|
||||||
];
|
"subvol=${subvol}"
|
||||||
}
|
"ssd"
|
||||||
);
|
"compress=lzo"
|
||||||
btrfsMount = subvol: {
|
"x-systemd.device-timeout=0"
|
||||||
device = "/dev/mapper/nvme";
|
"space_cache=v2"
|
||||||
fsType = "btrfs";
|
"commit=120"
|
||||||
options = [
|
"datacow"
|
||||||
"subvol=${subvol}"
|
] ++ (if subvol == "nixos" then [ "noatime" ] else [ ]);
|
||||||
"ssd"
|
|
||||||
"compress=lzo"
|
|
||||||
"x-systemd.device-timeout=0"
|
|
||||||
"space_cache=v2"
|
|
||||||
"commit=120"
|
|
||||||
"datacow"
|
|
||||||
] ++ (if subvol == "nixos" then [ "noatime" ] else [ ]);
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"/" = btrfsMount "nixos" // { };
|
|
||||||
"/home" = btrfsMount "home" // { };
|
|
||||||
"/mnt/games" = btrfsMount "games" // { };
|
|
||||||
"/mnt/miniserver/pool" = nfsMount "miniserver" "pool" // { };
|
|
||||||
"/mnt/miniserver/jawz" = nfsMount "miniserver" "jawz" // { };
|
|
||||||
#"/mnt/server/pool" = nfsMount "server" "pool" // { };
|
|
||||||
#"/mnt/server/jawz" = nfsMount "server" "jawz" // { };
|
|
||||||
# "/mnt/miniserver/btrfs" = nfsMount "btrfs" // { };
|
|
||||||
"/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/ac6d349a-96b9-499e-9009-229efd7743a5";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
"/boot/efi" = {
|
|
||||||
device = "/dev/disk/by-uuid/B05D-B5FB";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
swapDevices = [
|
in {
|
||||||
{
|
"/" = btrfsMount "nixos" // { };
|
||||||
device = "/dev/disk/by-partuuid/c1bd22d7-e62c-440a-88d1-6464be1aa1b0";
|
"/home" = btrfsMount "home" // { };
|
||||||
randomEncryption = {
|
"/mnt/games" = btrfsMount "games" // { };
|
||||||
enable = true;
|
"/mnt/miniserver/pool" = nfsMount "miniserver" "pool" // { };
|
||||||
cipher = "aes-xts-plain64";
|
"/mnt/miniserver/jawz" = nfsMount "miniserver" "jawz" // { };
|
||||||
keySize = 512;
|
#"/mnt/server/pool" = nfsMount "server" "pool" // { };
|
||||||
sectorSize = 4096;
|
#"/mnt/server/jawz" = nfsMount "server" "jawz" // { };
|
||||||
};
|
# "/mnt/miniserver/btrfs" = nfsMount "btrfs" // { };
|
||||||
}
|
"/boot" = {
|
||||||
];
|
device = "/dev/disk/by-uuid/ac6d349a-96b9-499e-9009-229efd7743a5";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
"/boot/efi" = {
|
||||||
|
device = "/dev/disk/by-uuid/B05D-B5FB";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/dev/disk/by-partuuid/c1bd22d7-e62c-440a-88d1-6464be1aa1b0";
|
||||||
|
randomEncryption = {
|
||||||
|
enable = true;
|
||||||
|
cipher = "aes-xts-plain64";
|
||||||
|
keySize = 512;
|
||||||
|
sectorSize = 4096;
|
||||||
|
};
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.apps.office.enable = lib.mkEnableOption "enable";
|
options.my.apps.office.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.apps.office.enable {
|
config = lib.mkIf config.my.apps.office.enable {
|
||||||
users.users.jawz.packages = with pkgs; [
|
users.users.jawz.packages = with pkgs; [
|
||||||
@ -17,8 +11,6 @@
|
|||||||
# wike # gtk wikipedia wow!
|
# wike # gtk wikipedia wow!
|
||||||
# denaro # manage your finances
|
# denaro # manage your finances
|
||||||
];
|
];
|
||||||
environment.variables = {
|
environment.variables = { CALIBRE_USE_SYSTEM_THEME = "1"; };
|
||||||
CALIBRE_USE_SYSTEM_THEME = "1";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,16 +1,8 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.dev.docker.enable = lib.mkEnableOption "enable";
|
options.my.dev.docker.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.dev.docker.enable {
|
config = lib.mkIf config.my.dev.docker.enable {
|
||||||
users.users.jawz.packages =
|
users.users.jawz.packages = (with pkgs; [ dockfmt ])
|
||||||
(with pkgs; [ dockfmt ]) ++ (with pkgs.nodePackages; [ dockerfile-language-server-nodejs ]);
|
++ (with pkgs.nodePackages; [ dockerfile-language-server-nodejs ]);
|
||||||
};
|
environment.variables.DOCKER_CONFIG = "\${XDG_CONFIG_HOME}/docker";
|
||||||
environment.variables = {
|
|
||||||
DOCKER_CONFIG = "${XDG_CONFIG_HOME}/docker";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.dev.haskell.enable = lib.mkEnableOption "enable";
|
options.my.dev.haskell.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.dev.haskell.enable {
|
config = lib.mkIf config.my.dev.haskell.enable {
|
||||||
users.users.jawz.packages = with pkgs; ([
|
users.users.jawz.packages = with pkgs; ([
|
||||||
@ -12,9 +6,8 @@
|
|||||||
haskell-language-server # lsp
|
haskell-language-server # lsp
|
||||||
]);
|
]);
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
CABAL_DIR = "${XDG_CACHE_HOME}/cabal";
|
CABAL_DIR = "\${XDG_CACHE_HOME}/cabal";
|
||||||
CARGO_HOME = "${XDG_DATA_HOME}/cargo";
|
STACK_ROOT = "\${XDG_DATA_HOME}/stack";
|
||||||
STACK_ROOT = "${XDG_DATA_HOME}/stack";
|
|
||||||
GHCUP_USE_XDG_DIRS = "true";
|
GHCUP_USE_XDG_DIRS = "true";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,28 +1,17 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.dev.javascript.enable = lib.mkEnableOption "enable";
|
options.my.dev.javascript.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.dev.javascript.enable {
|
config = lib.mkIf config.my.dev.javascript.enable {
|
||||||
home-manager.users.jawz.programs.xdg.configFile = {
|
home-manager.users.jawz.programs.xdg.configFile = {
|
||||||
"npm/npmrc".source = ../dotfiles/npm/npmrc;
|
"npm/npmrc".source = ../dotfiles/npm/npmrc;
|
||||||
"configstore/update-notifier-npm-check.json".source = ../dotfiles/npm/update-notifier-npm-check.json;
|
"configstore/update-notifier-npm-check.json".source =
|
||||||
|
../dotfiles/npm/update-notifier-npm-check.json;
|
||||||
};
|
};
|
||||||
users.users.jawz.packages = (with pkgs; [ nodejs ]) ++ (with pkgs.nodePackages; [ pnpm ]);
|
users.users.jawz.packages = (with pkgs; [ nodejs ])
|
||||||
|
++ (with pkgs.nodePackages; [ pnpm ]);
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
NPM_CONFIG_USERCONFIG = "${XDG_CONFIG_HOME}/npm/npmrc";
|
NPM_CONFIG_USERCONFIG = "\${XDG_CONFIG_HOME}/npm/npmrc";
|
||||||
PNPM_HOME = "${XDG_DATA_HOME}/pnpm";
|
PNPM_HOME = "\${XDG_DATA_HOME}/pnpm";
|
||||||
PATH = [
|
PATH = [ "\${XDG_DATA_HOME}/npm/bin" "\${XDG_DATA_HOME}/pnpm" ];
|
||||||
"${XDG_DATA_HOME}/npm/bin"
|
|
||||||
"${XDG_DATA_HOME}/pnpm"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
environment.variables = {
|
|
||||||
VISUAL = "emacsclient -ca emacs";
|
|
||||||
PATH = [ "${XDG_CONFIG_HOME}/emacs/bin" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.dev.nix.enable = lib.mkEnableOption "enable";
|
options.my.dev.nix.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.dev.nix.enable {
|
config = lib.mkIf config.my.dev.nix.enable {
|
||||||
users.users.jawz.packages = with pkgs; ([
|
users.users.jawz.packages = with pkgs; ([
|
||||||
|
|||||||
@ -1,38 +1,28 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.dev.python.enable = lib.mkEnableOption "enable";
|
options.my.dev.python.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.dev.python.enable {
|
config = lib.mkIf config.my.dev.python.enable {
|
||||||
home-manager.users.jawz.programs.xdg.configFile = {
|
home-manager.users.jawz.programs.xdg.configFile = {
|
||||||
"python/pythonrc".source = ../dotfiles/pythonrc;
|
"python/pythonrc".source = ../dotfiles/pythonrc;
|
||||||
};
|
};
|
||||||
users.users.jawz.packages =
|
users.users.jawz.packages = (with pkgs; ([
|
||||||
(with pkgs; ([
|
pipenv # python development workflow for humans
|
||||||
pipenv # python development workflow for humans
|
(python3.withPackages (ps:
|
||||||
(python3.withPackages (
|
with ps; [
|
||||||
ps: with ps; [
|
black # Python code formatter
|
||||||
black # Python code formatter
|
editorconfig # follow rules of contributin
|
||||||
editorconfig # follow rules of contributin
|
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
||||||
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
isort # sort Python imports
|
||||||
isort # sort Python imports
|
pyflakes # checks source code for errors
|
||||||
pyflakes # checks source code for errors
|
pylint # bug and style checker for python
|
||||||
pylint # bug and style checker for python
|
speedtest-cli # check internet speed from the comand line
|
||||||
speedtest-cli # check internet speed from the comand line
|
# nose # testing and running python scripts
|
||||||
# nose # testing and running python scripts
|
# poetry # dependency management made easy
|
||||||
# poetry # dependency management made easy
|
# pytest # framework for writing tests
|
||||||
# pytest # framework for writing tests
|
]))
|
||||||
]
|
])) ++ (with pkgs.nodePackages;
|
||||||
))
|
[
|
||||||
]))
|
|
||||||
++ (with pkgs.nodePackages; [
|
|
||||||
pyright # LSP
|
pyright # LSP
|
||||||
]);
|
]);
|
||||||
environment.variables = {
|
environment.variables.PYTHONSTARTUP = "\${XDG_CONFIG_HOME}/python/pythonrc";
|
||||||
PYTHONSTARTUP = "${XDG_CONFIG_HOME}/python/pythonrc";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,18 +1,10 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.dev.sh.enable = lib.mkEnableOption "enable";
|
options.my.dev.sh.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.dev.sh.enable {
|
config = lib.mkIf config.my.dev.sh.enable {
|
||||||
users.users.jawz.packages =
|
users.users.jawz.packages = (with pkgs; [
|
||||||
(with pkgs; [
|
bashdb # autocomplete
|
||||||
bashdb # autocomplete
|
shellcheck # linting
|
||||||
shellcheck # linting
|
shfmt # a shell parser and formatter
|
||||||
shfmt # a shell parser and formatter
|
]) ++ (with pkgs.nodePackages; [ bash-language-server ]);
|
||||||
])
|
|
||||||
++ (with pkgs.nodePackages; [ bash-language-server ]);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.emacs.enable = lib.mkEnableOption "enable";
|
options.my.emacs.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.emacs.enable {
|
config = lib.mkIf config.my.emacs.enable {
|
||||||
home-manager.users.jawz = {
|
home-manager.users.jawz = {
|
||||||
@ -14,35 +8,33 @@
|
|||||||
};
|
};
|
||||||
services.lorri.enable = true;
|
services.lorri.enable = true;
|
||||||
};
|
};
|
||||||
users.users.jawz.packages =
|
users.users.jawz.packages = (with pkgs; ([
|
||||||
(with pkgs; ([
|
fd # modern find, faster searches
|
||||||
fd # modern find, faster searches
|
fzf # fuzzy finder! super cool and useful
|
||||||
fzf # fuzzy finder! super cool and useful
|
ripgrep # modern grep
|
||||||
ripgrep # modern grep
|
tree-sitter # code parsing based on symbols and shit, I do not get it
|
||||||
tree-sitter # code parsing based on symbols and shit, I do not get it
|
graphviz # graphs
|
||||||
graphviz # graphs
|
tetex # export pdf
|
||||||
tetex # export pdf
|
languagetool # proofreader for English
|
||||||
languagetool # proofreader for English
|
|
||||||
|
|
||||||
# doom everywhere
|
# doom everywhere
|
||||||
xorg.xwininfo
|
xorg.xwininfo
|
||||||
xdotool
|
xdotool
|
||||||
xclip
|
xclip
|
||||||
|
|
||||||
# lsps
|
# lsps
|
||||||
yaml-language-server
|
yaml-language-server
|
||||||
markdownlint-cli
|
markdownlint-cli
|
||||||
]))
|
])) ++ (with pkgs.nodePackages; [
|
||||||
++ (with pkgs.nodePackages; [
|
vscode-json-languageserver
|
||||||
vscode-json-languageserver
|
# linters
|
||||||
# linters
|
prettier
|
||||||
prettier
|
]);
|
||||||
]);
|
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package =
|
package = with pkgs;
|
||||||
with pkgs;
|
((emacsPackagesFor emacs-gtk).emacsWithPackages
|
||||||
((emacsPackagesFor emacs-gtk).emacsWithPackages (epkgs: with epkgs; ([ vterm ])));
|
(epkgs: with epkgs; ([ vterm ])));
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
};
|
};
|
||||||
home-manager.users.jawz.programs.bash.initExtra = ''
|
home-manager.users.jawz.programs.bash.initExtra = ''
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ./base.nix ];
|
imports = [ ./base.nix ];
|
||||||
config = {
|
config = {
|
||||||
home-manager.users.jawz = {
|
home-manager.users.jawz = {
|
||||||
@ -14,8 +8,10 @@
|
|||||||
};
|
};
|
||||||
bash = {
|
bash = {
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
comic = ''download -u jawz -i "$(cat $LC | fzf --multi --exact -i)"'';
|
comic =
|
||||||
gallery = ''download -u jawz -i "$(cat $LW | fzf --multi --exact -i)"'';
|
''download -u jawz -i "$(cat $LC | fzf --multi --exact -i)"'';
|
||||||
|
gallery =
|
||||||
|
''download -u jawz -i "$(cat $LW | fzf --multi --exact -i)"'';
|
||||||
dl = "download -u jawz -i";
|
dl = "download -u jawz -i";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
@ -34,19 +30,14 @@
|
|||||||
install = true;
|
install = true;
|
||||||
service = false;
|
service = false;
|
||||||
name = "download";
|
name = "download";
|
||||||
package =
|
package = with pkgs.python3Packages;
|
||||||
with pkgs.python3Packages;
|
|
||||||
(buildPythonApplication rec {
|
(buildPythonApplication rec {
|
||||||
pname = "download";
|
pname = "download";
|
||||||
version = "2.5";
|
version = "2.5";
|
||||||
src = ../../scripts/download/.;
|
src = ../../scripts/download/.;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
buildInputs = [ setuptools ];
|
buildInputs = [ setuptools ];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [ pyyaml types-pyyaml yt-dlp ];
|
||||||
pyyaml
|
|
||||||
types-pyyaml
|
|
||||||
yt-dlp
|
|
||||||
];
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,18 +1,11 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ./base.nix ];
|
imports = [ ./base.nix ];
|
||||||
config.my.scripts.find-dup-episodes = {
|
config.my.scripts.find-dup-episodes = {
|
||||||
enable = true;
|
enable = true;
|
||||||
install = true;
|
install = true;
|
||||||
service = false;
|
service = false;
|
||||||
name = "find-dup-episodes";
|
name = "find-dup-episodes";
|
||||||
package = pkgs.writeScriptBin "find-dup-episodes" (
|
package = pkgs.writeScriptBin "find-dup-episodes"
|
||||||
builtins.readFile ../../scripts/find-dup-episodes.sh
|
(builtins.readFile ../../scripts/find-dup-episodes.sh);
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ./base.nix ];
|
imports = [ ./base.nix ];
|
||||||
config.my.scripts.manage-library = {
|
config.my.scripts.manage-library = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -13,6 +7,7 @@
|
|||||||
name = "manage-library";
|
name = "manage-library";
|
||||||
timer = "00:30";
|
timer = "00:30";
|
||||||
description = "scans the library directory and sorts files";
|
description = "scans the library directory and sorts files";
|
||||||
package = pkgs.writeScriptBin "manage-library" (builtins.readFile ../../scripts/manage-library.sh);
|
package = pkgs.writeScriptBin "manage-library"
|
||||||
|
(builtins.readFile ../../scripts/manage-library.sh);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ./base.nix ];
|
imports = [ ./base.nix ];
|
||||||
config.my.scripts.nextcloud-cronjob = {
|
config.my.scripts.nextcloud-cronjob = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -13,8 +7,7 @@
|
|||||||
timer = "*:0/10";
|
timer = "*:0/10";
|
||||||
name = "nextcloud-cronjob";
|
name = "nextcloud-cronjob";
|
||||||
description = "runs tasks for nextcloud";
|
description = "runs tasks for nextcloud";
|
||||||
package = pkgs.writeScriptBin "nextcloud-cronjob" (
|
package = pkgs.writeScriptBin "nextcloud-cronjob"
|
||||||
builtins.readFile ../../scripts/nextcloud-cronjob.sh
|
(builtins.readFile ../../scripts/nextcloud-cronjob.sh);
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,16 +1,11 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ./base.nix ];
|
imports = [ ./base.nix ];
|
||||||
config.my.scripts.run = {
|
config.my.scripts.run = {
|
||||||
enable = true;
|
enable = true;
|
||||||
install = true;
|
install = true;
|
||||||
service = false;
|
service = false;
|
||||||
name = "run";
|
name = "run";
|
||||||
package = pkgs.writeScriptBin "run" (builtins.readFile ../../scripts/run.sh);
|
package =
|
||||||
|
pkgs.writeScriptBin "run" (builtins.readFile ../../scripts/run.sh);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ./base.nix ];
|
imports = [ ./base.nix ];
|
||||||
config.my.scripts.sub-sync = {
|
config.my.scripts.sub-sync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -13,6 +7,7 @@
|
|||||||
name = "sub-sync";
|
name = "sub-sync";
|
||||||
timer = "22:00";
|
timer = "22:00";
|
||||||
description = "Syncronixes subtitles downloaded and modified the last day";
|
description = "Syncronixes subtitles downloaded and modified the last day";
|
||||||
package = pkgs.writeScriptBin "sub-sync" (builtins.readFile ../../scripts/sub-sync.sh);
|
package = pkgs.writeScriptBin "sub-sync"
|
||||||
|
(builtins.readFile ../../scripts/sub-sync.sh);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ./base.nix ];
|
imports = [ ./base.nix ];
|
||||||
config.my.scripts.update-dns = {
|
config.my.scripts.update-dns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -13,6 +7,7 @@
|
|||||||
name = "update-dns";
|
name = "update-dns";
|
||||||
timer = "*:0/30";
|
timer = "*:0/30";
|
||||||
description = "Updates the IP of all my domains";
|
description = "Updates the IP of all my domains";
|
||||||
package = pkgs.writeScriptBin "update-dns" (builtins.readFile ../../scripts/update-dns.sh);
|
package = pkgs.writeScriptBin "update-dns"
|
||||||
|
(builtins.readFile ../../scripts/update-dns.sh);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
options.my.shell.tools.enable = lib.mkEnableOption "enable";
|
options.my.shell.tools.enable = lib.mkEnableOption "enable";
|
||||||
config = lib.mkIf config.my.shell.tools.enable {
|
config = lib.mkIf config.my.shell.tools.enable {
|
||||||
home-manager.users.jawz.programs = {
|
home-manager.users.jawz.programs = {
|
||||||
@ -28,9 +22,7 @@
|
|||||||
uniq --count | sort -rn'';
|
uniq --count | sort -rn'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.configFile = {
|
xdg.configFile = { "htop/htoprc".source = ../dotfiles/htop/htoprc; };
|
||||||
"htop/htoprc".source = ../dotfiles/htop/htoprc;
|
|
||||||
};
|
|
||||||
hstr.enable = true;
|
hstr.enable = true;
|
||||||
htop = {
|
htop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -77,10 +69,10 @@
|
|||||||
trash-cli # oop! did not meant to delete that
|
trash-cli # oop! did not meant to delete that
|
||||||
jq # linting
|
jq # linting
|
||||||
];
|
];
|
||||||
};
|
environment.variables = {
|
||||||
environment.variables = {
|
HISTFILE = "\${XDG_STATE_HOME}/bash/history";
|
||||||
HISTFILE = "${XDG_STATE_HOME}/bash/history";
|
LESSHISTFILE = "-";
|
||||||
LESSHISTFILE = "-";
|
RIPGREP_CONFIG_PATH = "\${XDG_CONFIG_HOME}/ripgrep/ripgreprc";
|
||||||
RIPGREP_CONFIG_PATH = "${XDG_CONFIG_HOME}/ripgrep/ripgreprc";
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,16 +1,9 @@
|
|||||||
{
|
{ pkgs, lib, config, ... }:
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let cfg = config.programs.obs-studio;
|
||||||
cfg = config.programs.obs-studio;
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
options.programs.obs-studio = {
|
options.programs.obs-studio = {
|
||||||
enable = mkEnableOption "OBS Studio program";
|
enable = mkEnableOption "OBS Studio program";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user