mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
formated whole config with alejandra
This commit is contained in:
@@ -16,16 +16,21 @@
|
|||||||
# url = "github:nix-community/nixvim/nixos-25.11";
|
# url = "github:nix-community/nixvim/nixos-25.11";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, nixos-grub-themes, ... }@inputs:
|
outputs = {
|
||||||
let
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
nixpkgs-unstable,
|
||||||
|
home-manager,
|
||||||
|
nixos-grub-themes,
|
||||||
|
...
|
||||||
|
} @ inputs: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs-unstable = import nixpkgs-unstable {
|
pkgs-unstable = import nixpkgs-unstable {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = false;
|
config.allowUnfree = false;
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
laptop = nixpkgs.lib.nixosSystem {
|
laptop = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs pkgs-unstable;};
|
specialArgs = {inherit inputs pkgs-unstable;};
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
# Edit this configuration file to define what should be installed on
|
# Edit this configuration file to define what should be installed on
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, pkgs-unstable, libs, inputs, ... }:
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ # Include the results of the hardware scan.
|
pkgs,
|
||||||
|
pkgs-unstable,
|
||||||
|
libs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
../../modules/nixos/battery.nix
|
../../modules/nixos/battery.nix
|
||||||
@@ -15,7 +20,6 @@
|
|||||||
../../modules/nixos/udevsimple.nix
|
../../modules/nixos/udevsimple.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
documentation.man.generateCaches = true; # used for the man script
|
documentation.man.generateCaches = true; # used for the man script
|
||||||
|
|
||||||
# grub theme
|
# grub theme
|
||||||
@@ -23,14 +27,11 @@ boot.loader.grub = {
|
|||||||
theme = inputs.nixos-grub-themes.packages.${pkgs.system}.nixos; # if you want to use nixos grub theme
|
theme = inputs.nixos-grub-themes.packages.${pkgs.system}.nixos; # if you want to use nixos grub theme
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
nix.nixPath = [
|
nix.nixPath = [
|
||||||
"nixpkgs=${inputs.nixpkgs.outPath}"
|
"nixpkgs=${inputs.nixpkgs.outPath}"
|
||||||
"home-manager=${inputs.home-manager.outPath}"
|
"home-manager=${inputs.home-manager.outPath}"
|
||||||
]; #manix is unhappy without this
|
]; #manix is unhappy without this
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
@@ -40,7 +41,6 @@ home-manager = {
|
|||||||
extraSpecialArgs = {inherit pkgs-unstable;};
|
extraSpecialArgs = {inherit pkgs-unstable;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
environment.pathsToLink = [
|
environment.pathsToLink = [
|
||||||
"/share/applications"
|
"/share/applications"
|
||||||
"/share/xdg-desktop-portal"
|
"/share/xdg-desktop-portal"
|
||||||
@@ -84,7 +84,6 @@ services.xserver.excludePackages = [ pkgs.xterm ];
|
|||||||
#};
|
#};
|
||||||
# we use ly as the displayManager. see ../../modules/nixos/ly.nix
|
# we use ly as the displayManager. see ../../modules/nixos/ly.nix
|
||||||
|
|
||||||
|
|
||||||
# enable hyprland WM
|
# enable hyprland WM
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -93,8 +92,6 @@ programs.hyprland = {
|
|||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
@@ -139,7 +136,6 @@ services.upower.enable = true;
|
|||||||
#adds nixos experimental features:
|
#adds nixos experimental features:
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
|
|
||||||
|
|
||||||
# Garbage collector of generations
|
# Garbage collector of generations
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
@@ -153,7 +149,6 @@ services.upower.enable = true;
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = false;
|
nixpkgs.config.allowUnfree = false;
|
||||||
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
@@ -212,6 +207,7 @@ framework-tool-tui
|
|||||||
#some nix tools
|
#some nix tools
|
||||||
manix
|
manix
|
||||||
deadnix
|
deadnix
|
||||||
|
alejandra
|
||||||
];
|
];
|
||||||
|
|
||||||
# fonts
|
# fonts
|
||||||
@@ -245,5 +241,4 @@ nerd-fonts._0xproto
|
|||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
system.stateVersion = "25.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod"];
|
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod"];
|
||||||
@@ -13,13 +17,13 @@
|
|||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/6aa664c2-8b23-4e20-b6e9-1806bf0f8df2";
|
device = "/dev/disk/by-uuid/6aa664c2-8b23-4e20-b6e9-1806bf0f8df2";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/A59A-7AFA";
|
device = "/dev/disk/by-uuid/A59A-7AFA";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
options = ["fmask=0077" "dmask=0077"];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# every import imports a specific module for an app. This module contains the enabling of this app and its settings.
|
# every import imports a specific module for an app. This module contains the enabling of this app and its settings.
|
||||||
# So if you want to add an home-manager app create a module which enables it and configures it and import it.
|
# So if you want to add an home-manager app create a module which enables it and configures it and import it.
|
||||||
imports = [
|
imports = [
|
||||||
@@ -29,9 +32,6 @@ imports = [
|
|||||||
../../modules/home-manager/ripgrep.nix # better grep
|
../../modules/home-manager/ripgrep.nix # better grep
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#programs.nixvim = {
|
#programs.nixvim = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# imports = [ ../../modules/nixvim/neovim.nix ];
|
# imports = [ ../../modules/nixvim/neovim.nix ];
|
||||||
@@ -116,8 +116,6 @@ Host *
|
|||||||
IdentityFile ~/.ssh/id_ed25519
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
home.file = {
|
home.file = {
|
||||||
@@ -133,7 +131,6 @@ home.file = {
|
|||||||
# '';
|
# '';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Home Manager can also manage your environment variables through
|
# Home Manager can also manage your environment variables through
|
||||||
# 'home.sessionVariables'. These will be explicitly sourced when using a
|
# 'home.sessionVariables'. These will be explicitly sourced when using a
|
||||||
# shell provided by Home Manager. If you don't want to manage your shell
|
# shell provided by Home Manager. If you don't want to manage your shell
|
||||||
@@ -157,7 +154,6 @@ home.sessionVariables = {
|
|||||||
TERMINAL = "kitty";
|
TERMINAL = "kitty";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.anki = {
|
programs.anki = {
|
||||||
# we enable system wide with nixpkgs because it offers some addon configuration. We just use this for some config
|
# we enable system wide with nixpkgs because it offers some addon configuration. We just use this for some config
|
||||||
#enable = true;
|
#enable = true;
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.batsignal = {
|
services.batsignal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
hyprcursor.enable = true;
|
hyprcursor.enable = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# Adapted from https://github.com/dacrab/fastfetch-config/blob/main/config.jsonc
|
# Adapted from https://github.com/dacrab/fastfetch-config/blob/main/config.jsonc
|
||||||
programs.fastfetch = {
|
programs.fastfetch = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -12,7 +14,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
|
||||||
# ───────────── Hardware ─────────────
|
# ───────────── Hardware ─────────────
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{ config, pkgs, pkgs-unstable, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
wallpaper = ../../assets/wallpaper1.jpg;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
pkgs-unstable,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
wallpaper = ../../assets/wallpaper1.jpg;
|
||||||
|
in {
|
||||||
#refer to https://wiki.hypr.land/Nix/Hyprland-on-Home-Manager/
|
#refer to https://wiki.hypr.land/Nix/Hyprland-on-Home-Manager/
|
||||||
wayland.windowManager.hyprland.enable = true;
|
wayland.windowManager.hyprland.enable = true;
|
||||||
wayland.windowManager.hyprland.package = pkgs-unstable.hyprland;
|
wayland.windowManager.hyprland.package = pkgs-unstable.hyprland;
|
||||||
@@ -156,7 +156,6 @@ in
|
|||||||
|
|
||||||
#plugins keybindings
|
#plugins keybindings
|
||||||
#"$mod, SPACE, overview:toggle, "
|
#"$mod, SPACE, overview:toggle, "
|
||||||
|
|
||||||
];
|
];
|
||||||
binde = [
|
binde = [
|
||||||
"$mod+Shift, Right, resizeactive, 30 0"
|
"$mod+Shift, Right, resizeactive, 30 0"
|
||||||
@@ -222,7 +221,6 @@ in
|
|||||||
"3, left, move, -col"
|
"3, left, move, -col"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# █░░ ▄▀█ █▄█ █▀█ █░█ ▀█▀ █▀
|
# █░░ ▄▀█ █▄█ █▀█ █░█ ▀█▀ █▀
|
||||||
# █▄▄ █▀█ ░█░ █▄█ █▄█ ░█░ ▄█
|
# █▄▄ █▀█ ░█░ █▄█ █▄█ ░█░ ▄█
|
||||||
|
|
||||||
@@ -323,8 +321,6 @@ in
|
|||||||
"col.inactive_border" = "rgba(f1dca7d9) rgba(ffe1a8d9) 45deg";
|
"col.inactive_border" = "rgba(f1dca7d9) rgba(ffe1a8d9) 45deg";
|
||||||
layout = "dwindle";
|
layout = "dwindle";
|
||||||
resize_on_border = true;
|
resize_on_border = true;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
group = {
|
group = {
|
||||||
"col.border_active" = "rgba(ca6702ff) rgba(ecd3a0ff) 45deg";
|
"col.border_active" = "rgba(ca6702ff) rgba(ecd3a0ff) 45deg";
|
||||||
@@ -356,8 +352,6 @@ in
|
|||||||
"f[1], gapsout:0, gapsin:0"
|
"f[1], gapsout:0, gapsin:0"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# █░█░█ █ █▄░█ █▀▄ █▀█ █░█░█ █▀█ █░█ █░░ █▀▀ █▀
|
# █░█░█ █ █▄░█ █▀▄ █▀█ █░█░█ █▀█ █░█ █░░ █▀▀ █▀
|
||||||
# ▀▄▀▄▀ █ █░▀█ █▄▀ █▄█ ▀▄▀▄▀ █▀▄ █▄█ █▄▄ ██▄ ▄█
|
# ▀▄▀▄▀ █ █░▀█ █▄▀ █▄█ ▀▄▀▄▀ █▀▄ █▄█ █▄▄ ██▄ ▄█
|
||||||
windowrule = [
|
windowrule = [
|
||||||
@@ -432,5 +426,3 @@ layerrule = [
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#font.name = nerd-fonts._0xproto;
|
#font.name = nerd-fonts._0xproto;
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
# adapted from https://github.com/contre95/dotfiles/blob/main/dotfiles/nixos/programs/librewolf.nix
|
# adapted from https://github.com/contre95/dotfiles/blob/main/dotfiles/nixos/programs/librewolf.nix
|
||||||
{ pkgs, config, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
MOZ_ENABLE_WAYLAND = 1;
|
MOZ_ENABLE_WAYLAND = 1;
|
||||||
MOZ_USE_XINPUT2 = 1;
|
MOZ_USE_XINPUT2 = 1;
|
||||||
@@ -114,7 +117,6 @@
|
|||||||
# "browser.fixup.domainwhitelist.internal.contre.io" = true;
|
# "browser.fixup.domainwhitelist.internal.contre.io" = true;
|
||||||
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
||||||
# "keyword.enable" = false; # Disable search when typing unexistent TLD
|
# "keyword.enable" = false; # Disable search when typing unexistent TLD
|
||||||
|
|
||||||
};
|
};
|
||||||
policies = {
|
policies = {
|
||||||
ExtensionSettings = {
|
ExtensionSettings = {
|
||||||
@@ -595,8 +597,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
{ config, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
# same as ./neovim.nix but you vim plug.
|
# same as ./neovim.nix but you vim plug.
|
||||||
# i tried importing my nvim config from fedora to a more nixy way but a lot of settings and plugins didnt work. Maybe i'll fix it latter
|
# i tried importing my nvim config from fedora to a more nixy way but a lot of settings and plugins didnt work. Maybe i'll fix it latter
|
||||||
# the only difference is the we use :PlugInstall or a similar command before doing anything
|
# the only difference is the we use :PlugInstall or a similar command before doing anything
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.oh-my-posh = {
|
programs.oh-my-posh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.zsh.oh-my-zsh = {
|
programs.zsh.oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "jonathan";
|
theme = "jonathan";
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
{ config, pkgs, agenix, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
agenix,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.rclone = {
|
programs.rclone = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.ripgrep = {
|
programs.ripgrep = {
|
||||||
enable = true;
|
enable = true;
|
||||||
arguments = [
|
arguments = [
|
||||||
@@ -13,5 +15,4 @@
|
|||||||
programs.ripgrep-all = {
|
programs.ripgrep-all = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "gruvbox-dark-hard";
|
theme = "gruvbox-dark-hard";
|
||||||
|
|||||||
@@ -1,13 +1,23 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#agentKeys = [
|
matchBlocks."*" = {
|
||||||
# "/home/tomasr/.ssh/id_ed25519"
|
# equivalent to the default config
|
||||||
#];
|
forwardAgent = false;
|
||||||
|
addKeysToAgent = "no";
|
||||||
|
compression = false;
|
||||||
|
serverAliveInterval = 0;
|
||||||
|
serverAliveCountMax = 3;
|
||||||
|
hashKnownHosts = false;
|
||||||
|
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||||
|
controlMaster = "no";
|
||||||
|
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||||
|
controlPersist = "no";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services.ssh-agent.enable = true;
|
services.ssh-agent.enable = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.swaync = {
|
services.swaync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = [
|
settings = [
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
{
|
||||||
let
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
wallpaper = ../../assets/wallpaper1.jpg;
|
wallpaper = ../../assets/wallpaper1.jpg;
|
||||||
lock = ../../assets/lock.png;
|
lock = ../../assets/lock.png;
|
||||||
lock-hover = ../../assets/lock-hover.png;
|
lock-hover = ../../assets/lock-hover.png;
|
||||||
@@ -9,8 +12,7 @@ let
|
|||||||
logout-hover = ../../assets/logout-hover.png;
|
logout-hover = ../../assets/logout-hover.png;
|
||||||
reboot = ../../assets/restart.png;
|
reboot = ../../assets/restart.png;
|
||||||
reboot-hover = ../../assets/restart-hover.png;
|
reboot-hover = ../../assets/restart-hover.png;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
programs.wlogout = {
|
programs.wlogout = {
|
||||||
enable = true;
|
enable = true;
|
||||||
layout = [
|
layout = [
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
@@ -14,8 +16,7 @@ custom-cat() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
fastfetch''\n''
|
fastfetch''\n'';
|
||||||
;
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
".." = "z ..";
|
".." = "z ..";
|
||||||
grep = "rg";
|
grep = "rg";
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
(pkgs.anki.withAddons [
|
(pkgs.anki.withAddons [
|
||||||
(pkgs.ankiAddons.recolor.withConfig {
|
(pkgs.ankiAddons.recolor.withConfig {
|
||||||
@@ -52,5 +54,4 @@
|
|||||||
})
|
})
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,8 @@
|
|||||||
# https://discourse.nixos.org/t/what-is-the-best-option-for-power-management/63406/2
|
# https://discourse.nixos.org/t/what-is-the-best-option-for-power-management/63406/2
|
||||||
{
|
{...}:
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
# we just activate tlp unconditonally
|
# we just activate tlp unconditonally
|
||||||
|
|
||||||
#let
|
#let
|
||||||
# cfg = config.custom;
|
# cfg = config.custom;
|
||||||
|
|
||||||
#hasBattery =
|
#hasBattery =
|
||||||
# lib.any (x: lib.strings.hasPrefix "BAT" x)
|
# lib.any (x: lib.strings.hasPrefix "BAT" x)
|
||||||
# (builtins.attrNames (builtins.readDir "/sys/class/power_supply"));
|
# (builtins.attrNames (builtins.readDir "/sys/class/power_supply"));
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{ ...}:
|
{...}: {
|
||||||
|
|
||||||
{
|
|
||||||
services.displayManager.ly = {
|
services.displayManager.ly = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{... }:
|
{...}: {
|
||||||
{
|
|
||||||
# a minimal ly config as the big config (ly.nix) didnt worked
|
# a minimal ly config as the big config (ly.nix) didnt worked
|
||||||
services.displayManager.ly = {
|
services.displayManager.ly = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# udev are setup for controlling the framework 16 laptop's keyboard
|
# udev are setup for controlling the framework 16 laptop's keyboard
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
## https://github.com/qmk/qmk_firmware/blob/master/util/udev/50-qmk.extraRules
|
## https://github.com/qmk/qmk_firmware/blob/master/util/udev/50-qmk.extraRules
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# udev with only the necessary rules. See udev.nix to get all the rules
|
# udev with only the necessary rules. See udev.nix to get all the rules
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
# adapted from here https://wiki.nixos.org/wiki/Keychron_M6
|
# adapted from here https://wiki.nixos.org/wiki/Keychron_M6
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{ writeShellApplication
|
{
|
||||||
, libnotify
|
writeShellApplication,
|
||||||
, systemd
|
libnotify,
|
||||||
|
systemd,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-olddeprecatedbatterynotify";
|
name = "custom-olddeprecatedbatterynotify";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# taken and adapted https://github.com/miniMinn24/Battery_Notify with MIT License
|
# taken and adapted https://github.com/miniMinn24/Battery_Notify with MIT License
|
||||||
{ writeShellApplication, mplayer, brightnessctl, ... }:
|
{
|
||||||
let
|
writeShellApplication,
|
||||||
|
mplayer,
|
||||||
|
brightnessctl,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
NotifySound = ../../assets/battery_notify.mp3;
|
NotifySound = ../../assets/battery_notify.mp3;
|
||||||
in
|
in
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# taken and adapted https://github.com/miniMinn24/Battery_Notify with MIT License
|
# taken and adapted https://github.com/miniMinn24/Battery_Notify with MIT License
|
||||||
{ writeShellApplication, mplayer, brightnessctl, ... }:
|
{
|
||||||
let
|
writeShellApplication,
|
||||||
|
mplayer,
|
||||||
|
brightnessctl,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
NotifySound = ../../assets/battery_notify.mp3;
|
NotifySound = ../../assets/battery_notify.mp3;
|
||||||
in
|
in
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ writeShellApplication, kitty, bottom,... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
kitty,
|
||||||
|
bottom,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-bottom";
|
name = "custom-bottom";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
|
|
||||||
# useless
|
# useless
|
||||||
# used to come from my old dotfiles which were copied from fedora-hyprdots
|
# used to come from my old dotfiles which were copied from fedora-hyprdots
|
||||||
# just use hyprpicker | tee >(wl-copy) | cliphist store
|
# just use hyprpicker | tee >(wl-copy) | cliphist store
|
||||||
# because hyprpicker and cliphist are inside my configuration.nix
|
# because hyprpicker and cliphist are inside my configuration.nix
|
||||||
# no need to verify their existence
|
# no need to verify their existence
|
||||||
|
{
|
||||||
|
writeShellApplication,
|
||||||
{ writeShellApplication, hyprpicker, libnotify, toybox, wl-clipboard, ... }:
|
hyprpicker,
|
||||||
|
libnotify,
|
||||||
|
toybox,
|
||||||
|
wl-clipboard,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-colorpicker-useless";
|
name = "custom-colorpicker-useless";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{ writeShellApplication, cowsay, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
cowsay,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-cowsay";
|
name = "custom-cowsay";
|
||||||
runtimeInputs = [cowsay];
|
runtimeInputs = [cowsay];
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ writeShellApplication, hyprland, jq, ...}:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
hyprland,
|
||||||
|
jq,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-dontkillsteam";
|
name = "custom-dontkillsteam";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ writeShellApplication, git, libnotify, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
git,
|
||||||
|
libnotify,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-gitnotify";
|
name = "custom-gitnotify";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ writeShellApplication, hyprland, jq, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
hyprland,
|
||||||
|
jq,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-killall";
|
name = "custom-killall";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
# used for the terminal autostart. Needs to get cleared and recall fastfetch so that the bar from oh-my-zsh get resized
|
# used for the terminal autostart. Needs to get cleared and recall fastfetch so that the bar from oh-my-zsh get resized
|
||||||
|
{
|
||||||
{ writeShellApplication, zsh, ... }:
|
writeShellApplication,
|
||||||
|
zsh,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-launch";
|
name = "custom-launch";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
{ writeShellApplication, zsh, kitty, fzf,... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
zsh,
|
||||||
|
kitty,
|
||||||
|
fzf,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-librewolfprofiles";
|
name = "custom-librewolfprofiles";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
{ writeShellApplication, man, ripgrep, fzf, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
let
|
man,
|
||||||
|
ripgrep,
|
||||||
|
fzf,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
cacheTime = "10";
|
cacheTime = "10";
|
||||||
in
|
in
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-man";
|
name = "custom-man";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
{ writeShellApplication, manix, ripgrep, fzf, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
let
|
manix,
|
||||||
|
ripgrep,
|
||||||
|
fzf,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
cacheTime = "10";
|
cacheTime = "10";
|
||||||
in
|
in
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-manix";
|
name = "custom-manix";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ writeShellApplication, rclone, libnotify, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
rclone,
|
||||||
|
libnotify,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-mountkdrive";
|
name = "custom-mountkdrive";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# used for the terminal autostart. Needs to get cleared and recall fastfetch so that the bar from oh-my-zsh get resized
|
# used for the terminal autostart. Needs to get cleared and recall fastfetch so that the bar from oh-my-zsh get resized
|
||||||
|
{
|
||||||
{ writeShellApplication, hyprland, gawk, libnotify, ... }:
|
writeShellApplication,
|
||||||
|
hyprland,
|
||||||
|
gawk,
|
||||||
|
libnotify,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-performance";
|
name = "custom-performance";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ writeShellApplication, kitty, tomato-c,... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
kitty,
|
||||||
|
tomato-c,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-tomato";
|
name = "custom-tomato";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
{ writeShellApplication, socat, swww, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
let
|
socat,
|
||||||
|
swww,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
wallpaper1 = ../../assets/wallpaper1.jpg;
|
wallpaper1 = ../../assets/wallpaper1.jpg;
|
||||||
wallpaper2 = ../../assets/wallpaper2.jpg;
|
wallpaper2 = ../../assets/wallpaper2.jpg;
|
||||||
wallpaper3 = ../../assets/wallpaper3.jpg;
|
wallpaper3 = ../../assets/wallpaper3.jpg;
|
||||||
wallpaper4 = ../../assets/wallpaper4.jpg;
|
wallpaper4 = ../../assets/wallpaper4.jpg;
|
||||||
wallpaper5 = ../../assets/wallpaper5.jpg;
|
wallpaper5 = ../../assets/wallpaper5.jpg;
|
||||||
in
|
in
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-wallpaper";
|
name = "custom-wallpaper";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{ writeShellApplication, curl, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
curl,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-weather";
|
name = "custom-weather";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{ writeShellApplication, curl, ... }:
|
{
|
||||||
|
writeShellApplication,
|
||||||
|
curl,
|
||||||
|
...
|
||||||
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-weatherwaybar";
|
name = "custom-weatherwaybar";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
Reference in New Issue
Block a user