Compare commits
No commits in common. "main" and "backup-before-modularizing" have entirely different histories.
main
...
backup-bef
76
README.md
76
README.md
@ -2,69 +2,23 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
My modular NixOS configuration with Home Manager integration.
|
## Base
|
||||||
|
- NixOs
|
||||||
## Structure
|
- Home Manager as a NixOS module
|
||||||
|
|
||||||
```
|
|
||||||
| nix /
|
|
||||||
|-flake.nix (Where everything starts)
|
|
||||||
|-assets/ (profile pic, sddm background, etc)
|
|
||||||
|-hosts/ (Configs for my machines: desktop, laptop)
|
|
||||||
|-modules/ (Pieces I want to be able to switch in and out)
|
|
||||||
|--system/ (System level configs like bootloader, GPU drivers)
|
|
||||||
|--home/ (Most of the juice is here. Managed by home manager. Program configs and such)
|
|
||||||
```
|
|
||||||
|
|
||||||
## Base setup
|
|
||||||
|
|
||||||
**OS:** NixOS
|
|
||||||
|
|
||||||
**Display Manager:** SDDM with the [Chili Theme](https://github.com/MarianArlt/sddm-chili) and a custom wallpaper to match my theme.
|
|
||||||
|
|
||||||
**Window Manager:** HyprLand
|
|
||||||
|
|
||||||
### Desktop Environment
|
|
||||||
|
|
||||||
Since HyprLand is just a window manager, I had to choose everything else you expect a computer to have. I went with a lot of the KDE
|
|
||||||
tools since they played a lot nicer with stylix for theming as well as just respecting the XDG environment variables.
|
|
||||||
|
|
||||||
- **File Manager**: Thunar
|
|
||||||
- **Image Viewer**: GwenView
|
|
||||||
- **Generic Text Editor**: Kate
|
|
||||||
- **Video Player**: MPV
|
|
||||||
- **PDF Viewer**: Okular
|
|
||||||
- **Audio Player**: Elisa
|
|
||||||
- **Archive/Zip Manager**: Ark
|
|
||||||
- **App Launcher:** Wofi
|
|
||||||
|
|
||||||
### Ecosystem
|
|
||||||
|
|
||||||
- **HyprPanel:** The nice top bar you see in the screenshot
|
|
||||||
- **Hyprpaper:** Just sets my wallpapers
|
|
||||||
|
|
||||||
## System Packages
|
## System Packages
|
||||||
|
- Stylix
|
||||||
|
- Cachix
|
||||||
|
- Nvidia Config
|
||||||
|
- ZSH
|
||||||
|
|
||||||
- **Cachix:** Binary caches for faster builds
|
## Desktop Environment
|
||||||
- **Stylix:** One of the best things to ever happen to nix. Theme everything consistenly with one config
|
|
||||||
|
|
||||||
## Terminal Tools
|
- Hyprland & Ecosystem (Hyprpaper)
|
||||||
|
- Hyprpanel (Top Bar)
|
||||||
|
- Thunar
|
||||||
|
- MPV
|
||||||
|
- Gwenview (Image Viewer)
|
||||||
|
- Kate (Text Editor/Notepad)
|
||||||
|
|
||||||
- Zsh: Funally made the switch after more than a decade of using bash
|
Readme to be continued...
|
||||||
- bat: Better cat
|
|
||||||
- yazi
|
|
||||||
- starship: Cool and customizable terminal prompt
|
|
||||||
- ripgrep
|
|
||||||
|
|
||||||
## Dev tools
|
|
||||||
|
|
||||||
- VsCode
|
|
||||||
- Datagrip
|
|
||||||
|
|
||||||
## Theming
|
|
||||||
|
|
||||||
- Consistent **Gruvbox** color scheme across all applications thanks to stylix
|
|
||||||
|
|
||||||
## Extra Features
|
|
||||||
|
|
||||||
- [Solaar](https://pwr-solaar.github.io/Solaar/) to manage my logitech mouse.
|
|
Binary file not shown.
Before Width: | Height: | Size: 12 MiB |
Binary file not shown.
Before Width: | Height: | Size: 7.3 MiB |
BIN
assets/slums.png
BIN
assets/slums.png
Binary file not shown.
Before Width: | Height: | Size: 7.6 MiB |
Binary file not shown.
Before Width: | Height: | Size: 19 MiB |
189
configuration.nix
Executable file
189
configuration.nix
Executable file
@ -0,0 +1,189 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./system/nvidia.nix
|
||||||
|
# ./system/de/gdm.nix
|
||||||
|
./system/de/sddm.nix
|
||||||
|
./system/de/hypr/hyprland.nix
|
||||||
|
./system/nfs.nix
|
||||||
|
./system/fonts.nix
|
||||||
|
inputs.home-manager.nixosModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
# Configure network proxy if necessary
|
||||||
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
|
# Enable networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
|
LC_NAME = "en_US.UTF-8";
|
||||||
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
|
LC_PAPER = "en_US.UTF-8";
|
||||||
|
LC_TELEPHONE = "en_US.UTF-8";
|
||||||
|
LC_TIME = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
# Flatpak (Basically just for discord)
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
systemd.services.flatpak-repo = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
path = [ pkgs.flatpak ];
|
||||||
|
script = ''
|
||||||
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable sound with pipewire.
|
||||||
|
services.pulseaudio.enable = false;
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
# If you want to use JACK applications, uncomment this
|
||||||
|
#jack.enable = true;
|
||||||
|
|
||||||
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||||
|
# no need to redefine it in your config for now)
|
||||||
|
#media-session.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
|
# services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.javi = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "javi";
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
useDefaultShell = true;
|
||||||
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# Set up my user icon
|
||||||
|
environment.etc."avatars/javi.png".source = ./assets/user-icon.png;
|
||||||
|
system.activationScripts.avatar = ''
|
||||||
|
mkdir -p /var/lib/AccountsService/icons
|
||||||
|
ln -sf /etc/avatars/javi.png /var/lib/AccountsService/icons/javi
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
# $ nix search wget
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
brave
|
||||||
|
git
|
||||||
|
openssh
|
||||||
|
pkgs.ntfs3g
|
||||||
|
xdg-user-dirs-gtk # This helps with Nautilus integration
|
||||||
|
cachix
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.settings = {
|
||||||
|
substituters = [
|
||||||
|
"https://cache.nixos.org/"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
startAgent = true;
|
||||||
|
extraConfig = "
|
||||||
|
Host myhost
|
||||||
|
Hostname gitgud.foo
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
|
# More thunar support
|
||||||
|
programs.xfconf = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Mount my second drive
|
||||||
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
fileSystems."/mnt/working-files" = {
|
||||||
|
device = "/dev/disk/by-uuid/BE8EBBDA8EBB8A03";
|
||||||
|
fsType = "ntfs";
|
||||||
|
options = [
|
||||||
|
"uid=1000" # your user ID (check with `id -u`)
|
||||||
|
"gid=100" # your primary group ID (check with `id -g`)
|
||||||
|
"dmask=022" # dir permissions
|
||||||
|
"fmask=133" # file permissions
|
||||||
|
"nofail"
|
||||||
|
|
||||||
|
# make Nautilus show it with a friendly name/icon
|
||||||
|
"x-gvfs-show"
|
||||||
|
"x-gvfs-name=Working Files"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Theme
|
||||||
|
stylix = {
|
||||||
|
enable = true;
|
||||||
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark.yaml";
|
||||||
|
# image = "/home/javi/Documents/wallpapers/Fantasy-Mountain.png";
|
||||||
|
polarity = "dark";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable zshell
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
# Enable home manager
|
||||||
|
home-manager = {
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
users = {
|
||||||
|
"javi" = {
|
||||||
|
imports = [
|
||||||
|
inputs.hyprshell.homeManagerModules.default
|
||||||
|
./home.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
545
flake.lock
generated
545
flake.lock
generated
@ -1,38 +1,5 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"aquamarine": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprutils": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprutils"
|
|
||||||
],
|
|
||||||
"hyprwayland-scanner": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprwayland-scanner"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1755946532,
|
|
||||||
"narHash": "sha256-POePremlUY5GyA1zfbtic6XLxDaQcqHN6l+bIxdT5gc=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "aquamarine",
|
|
||||||
"rev": "81584dae2df6ac79f6b6dae0ecb7705e95129ada",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "aquamarine",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"base16": {
|
"base16": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"fromYaml": "fromYaml"
|
"fromYaml": "fromYaml"
|
||||||
@ -148,38 +115,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_3": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1747046372,
|
|
||||||
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat_4": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1696426674,
|
|
||||||
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
@ -243,24 +178,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_3"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1705309234,
|
|
||||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fromYaml": {
|
"fromYaml": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -279,8 +196,8 @@
|
|||||||
},
|
},
|
||||||
"git-hooks": {
|
"git-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_2",
|
||||||
"gitignore": "gitignore_2",
|
"gitignore": "gitignore",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"neovim-nightly-overlay",
|
"neovim-nightly-overlay",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
@ -301,28 +218,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gitignore": {
|
"gitignore": {
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"pre-commit-hooks",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709087332,
|
|
||||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gitignore_2": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"neovim-nightly-overlay",
|
"neovim-nightly-overlay",
|
||||||
@ -403,218 +298,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hyprcursor": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprlang": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprlang"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1753964049,
|
|
||||||
"narHash": "sha256-lIqabfBY7z/OANxHoPeIrDJrFyYy9jAM4GQLzZ2feCM=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprcursor",
|
|
||||||
"rev": "44e91d467bdad8dcf8bbd2ac7cf49972540980a5",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprcursor",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprgraphics": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprutils": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprutils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1755678602,
|
|
||||||
"narHash": "sha256-uEC5O/NIUNs1zmc1aH1+G3GRACbODjk2iS0ET5hXtuk=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprgraphics",
|
|
||||||
"rev": "157cc52065a104fc3b8fa542ae648b992421d1c7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprgraphics",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprland": {
|
|
||||||
"inputs": {
|
|
||||||
"aquamarine": "aquamarine",
|
|
||||||
"hyprcursor": "hyprcursor",
|
|
||||||
"hyprgraphics": "hyprgraphics",
|
|
||||||
"hyprland-protocols": "hyprland-protocols",
|
|
||||||
"hyprland-qtutils": "hyprland-qtutils",
|
|
||||||
"hyprlang": "hyprlang",
|
|
||||||
"hyprutils": "hyprutils",
|
|
||||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"pre-commit-hooks": "pre-commit-hooks",
|
|
||||||
"systems": "systems",
|
|
||||||
"xdph": "xdph"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1756656879,
|
|
||||||
"narHash": "sha256-QCNUXw1J0BaykSKSb9jp5h1v4YVBLVcekhrxnivlgY4=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "Hyprland",
|
|
||||||
"rev": "5bb8adbc3228901d199e8d22d6f712bd1d7d4e15",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "Hyprland",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprland-protocols": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1749046714,
|
|
||||||
"narHash": "sha256-kymV5FMnddYGI+UjwIw8ceDjdeg7ToDVjbHCvUlhn14=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-protocols",
|
|
||||||
"rev": "613878cb6f459c5e323aaafe1e6f388ac8a36330",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-protocols",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprland-qt-support": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprlang": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprland-qtutils",
|
|
||||||
"hyprlang"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprland-qtutils",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprland-qtutils",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1749154592,
|
|
||||||
"narHash": "sha256-DO7z5CeT/ddSGDEnK9mAXm1qlGL47L3VAHLlLXoCjhE=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-qt-support",
|
|
||||||
"rev": "4c8053c3c888138a30c3a6c45c2e45f5484f2074",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-qt-support",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprland-qtutils": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprland-qt-support": "hyprland-qt-support",
|
|
||||||
"hyprlang": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprlang"
|
|
||||||
],
|
|
||||||
"hyprutils": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprland-qtutils",
|
|
||||||
"hyprlang",
|
|
||||||
"hyprutils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1753819801,
|
|
||||||
"narHash": "sha256-tHe6XeNeVeKapkNM3tcjW4RuD+tB2iwwoogWJOtsqTI=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-qtutils",
|
|
||||||
"rev": "b308a818b9dcaa7ab8ccab891c1b84ebde2152bc",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-qtutils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprlang": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprutils": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprutils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1753622892,
|
|
||||||
"narHash": "sha256-0K+A+gmOI8IklSg5It1nyRNv0kCNL51duwnhUO/B8JA=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprlang",
|
|
||||||
"rev": "23f0debd2003f17bd65f851cd3f930cff8a8c809",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprlang",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprshell": {
|
"hyprshell": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754802608,
|
"lastModified": 1754802608,
|
||||||
@ -630,76 +316,14 @@
|
|||||||
"url": "https://gitgud.foo/thegrind/hypr-shell.git"
|
"url": "https://gitgud.foo/thegrind/hypr-shell.git"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hyprutils": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1756117388,
|
|
||||||
"narHash": "sha256-oRDel6pNl/T2tI+nc/USU9ZP9w08dxtl7hiZxa0C/Wc=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprutils",
|
|
||||||
"rev": "b2ae3204845f5f2f79b4703b441252d8ad2ecfd0",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprutils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprwayland-scanner": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1755184602,
|
|
||||||
"narHash": "sha256-RCBQN8xuADB0LEgaKbfRqwm6CdyopE1xIEhNc67FAbw=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprwayland-scanner",
|
|
||||||
"rev": "b3b0f1f40ae09d4447c20608e5a4faf8bf3c492d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprwayland-scanner",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"my-assets": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"path": "./assets",
|
|
||||||
"type": "path"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"path": "./assets",
|
|
||||||
"type": "path"
|
|
||||||
},
|
|
||||||
"parent": []
|
|
||||||
},
|
|
||||||
"neovim-nightly-overlay": {
|
"neovim-nightly-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"git-hooks": "git-hooks",
|
"git-hooks": "git-hooks",
|
||||||
"hercules-ci-effects": "hercules-ci-effects",
|
"hercules-ci-effects": "hercules-ci-effects",
|
||||||
"neovim-src": "neovim-src",
|
"neovim-src": "neovim-src",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -733,22 +357,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1756266583,
|
|
||||||
"narHash": "sha256-cr748nSmpfvnhqSXPiCfUPxRz2FJnvf/RjJGvFfaCsM=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "8a6d5427d99ec71c64f0b93d45778c889005d9c2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754725699,
|
"lastModified": 1754725699,
|
||||||
"narHash": "sha256-iAcj9T/Y+3DBy2J0N+yF9XQQQ8IEb5swLFzs23CdP88=",
|
"narHash": "sha256-iAcj9T/Y+3DBy2J0N+yF9XQQQ8IEb5swLFzs23CdP88=",
|
||||||
@ -764,7 +372,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754800730,
|
"lastModified": 1754800730,
|
||||||
"narHash": "sha256-HfVZCXic9XLBgybP0318ym3cDnGwBs/+H5MgxFVYF4I=",
|
"narHash": "sha256-HfVZCXic9XLBgybP0318ym3cDnGwBs/+H5MgxFVYF4I=",
|
||||||
@ -780,7 +388,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754498491,
|
"lastModified": 1754498491,
|
||||||
"narHash": "sha256-erbiH2agUTD0Z30xcVSFcDHzkRvkRXOQ3lb887bcVrs=",
|
"narHash": "sha256-erbiH2agUTD0Z30xcVSFcDHzkRvkRXOQ3lb887bcVrs=",
|
||||||
@ -796,22 +404,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1708161998,
|
|
||||||
"narHash": "sha256-6KnemmUorCvlcAvGziFosAVkrlWZGIc6UNT9GUYr0jQ=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "84d981bae8b5e783b3b548de505b22880559515f",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-23.11",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nur": {
|
"nur": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": [
|
"flake-parts": [
|
||||||
@ -837,39 +429,13 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pre-commit-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1755960406,
|
|
||||||
"narHash": "sha256-RF7j6C1TmSTK9tYWO6CdEMtg6XZaUKcvZwOCD2SICZs=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"rev": "e891a93b193fcaf2fc8012d890dc7f0befe86ec2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
|
||||||
"hyprshell": "hyprshell",
|
"hyprshell": "hyprshell",
|
||||||
"my-assets": "my-assets",
|
|
||||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"stylix": "stylix",
|
"stylix": "stylix"
|
||||||
"zig": "zig"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stylix": {
|
"stylix": {
|
||||||
@ -885,7 +451,7 @@
|
|||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"systems": "systems_2",
|
"systems": "systems",
|
||||||
"tinted-foot": "tinted-foot",
|
"tinted-foot": "tinted-foot",
|
||||||
"tinted-kitty": "tinted-kitty",
|
"tinted-kitty": "tinted-kitty",
|
||||||
"tinted-schemes": "tinted-schemes",
|
"tinted-schemes": "tinted-schemes",
|
||||||
@ -907,36 +473,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1689347949,
|
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default-linux",
|
|
||||||
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default-linux",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_3": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
@ -1052,67 +588,6 @@
|
|||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"xdph": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprland-protocols": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprland-protocols"
|
|
||||||
],
|
|
||||||
"hyprlang": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprlang"
|
|
||||||
],
|
|
||||||
"hyprutils": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprutils"
|
|
||||||
],
|
|
||||||
"hyprwayland-scanner": [
|
|
||||||
"hyprland",
|
|
||||||
"hyprwayland-scanner"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1755354946,
|
|
||||||
"narHash": "sha256-zdov5f/GcoLQc9qYIS1dUTqtJMeDqmBmo59PAxze6e4=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "xdg-desktop-portal-hyprland",
|
|
||||||
"rev": "a10726d6a8d0ef1a0c645378f983b6278c42eaa0",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "xdg-desktop-portal-hyprland",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"zig": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_4",
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": "nixpkgs_5"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1755864794,
|
|
||||||
"narHash": "sha256-hgnov6RLA+DD4Uocs/vCbiH3/3sKvqiJOKHpdhGyVAI=",
|
|
||||||
"owner": "mitchellh",
|
|
||||||
"repo": "zig-overlay",
|
|
||||||
"rev": "5cd601f8760d2383210b7b8c8a45fc79388f3ddf",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "mitchellh",
|
|
||||||
"repo": "zig-overlay",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
65
flake.nix
65
flake.nix
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
description = "Javi's computer configuration";
|
description = "Javi's computer configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
@ -7,83 +8,33 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
hyprshell.url = "git+https://gitgud.foo/thegrind/hypr-shell.git";
|
hyprshell.url = "git+https://gitgud.foo/thegrind/hypr-shell.git";
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
|
||||||
# hyprland-plugins = {
|
|
||||||
# url = "github:hyprwm/hyprland-plugins";
|
|
||||||
# inputs.hyprland.follows = "hyprland";
|
|
||||||
# };
|
|
||||||
stylix = {
|
stylix = {
|
||||||
url = "github:danth/stylix";
|
url = "github:danth/stylix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||||
zig.url = "github:mitchellh/zig-overlay";
|
|
||||||
|
|
||||||
my-assets = {
|
|
||||||
url = "path:./assets";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
my-assets,
|
|
||||||
zig,
|
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
# Common overlays for all hosts
|
|
||||||
overlays = [
|
overlays = [
|
||||||
inputs.neovim-nightly-overlay.overlays.default
|
inputs.neovim-nightly-overlay.overlays.default
|
||||||
inputs.zig.overlays.default
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Helper function to create a host configuration
|
|
||||||
mkHost =
|
|
||||||
hostname: modules:
|
|
||||||
nixpkgs.lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
specialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
inherit hostname; # Pass hostname to modules
|
|
||||||
assets = my-assets;
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
# Common modules for all hosts
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
inputs.stylix.nixosModules.stylix
|
|
||||||
|
|
||||||
# Apply overlays to all hosts
|
|
||||||
(
|
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
nixpkgs.overlays = overlays;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
# Host config
|
|
||||||
./modules/system/common/fonts.nix
|
|
||||||
./modules/system/common/xdg.nix
|
|
||||||
./hosts/${hostname}
|
|
||||||
]
|
|
||||||
++ modules; # Additional modules passed to mkHost
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
|
||||||
desktop = mkHost "desktop" [
|
specialArgs = { inherit inputs; };
|
||||||
./modules/system/nvidia.nix
|
modules = [
|
||||||
./modules/system/nfs.nix
|
inputs.home-manager.nixosModules.default
|
||||||
./modules/system/display-manager/sddm.nix
|
inputs.stylix.nixosModules.stylix
|
||||||
./modules/system/gaming.nix
|
./configuration.nix
|
||||||
];
|
|
||||||
|
|
||||||
laptop = mkHost "laptop" [
|
|
||||||
./modules/system/display-manager/sddm.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
146
home.nix
Executable file
146
home.nix
Executable file
@ -0,0 +1,146 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./home/kitty.nix
|
||||||
|
./home/shell.nix
|
||||||
|
./home/starship.nix
|
||||||
|
./home/git.nix
|
||||||
|
./home/hyprland.nix
|
||||||
|
./home/util/darkmode.nix
|
||||||
|
./home/neovim.nix
|
||||||
|
];
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
|
# manage.
|
||||||
|
home.username = "javi";
|
||||||
|
home.homeDirectory = "/home/javi";
|
||||||
|
|
||||||
|
# This value determines the Home Manager release that your configuration is
|
||||||
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||||
|
# introduces backwards incompatible changes.
|
||||||
|
#
|
||||||
|
# You should not change this value, even if you update Home Manager. If you do
|
||||||
|
# want to update the value, then make sure to first check the Home Manager
|
||||||
|
# release notes.
|
||||||
|
home.stateVersion = "25.05"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
# The home.packages option allows you to install Nix packages into your
|
||||||
|
# environment.
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# Basics
|
||||||
|
quickshell
|
||||||
|
|
||||||
|
# Terminal tools
|
||||||
|
yazi
|
||||||
|
ripgrep
|
||||||
|
fzf
|
||||||
|
bat
|
||||||
|
eza
|
||||||
|
jq
|
||||||
|
|
||||||
|
# Dev tools
|
||||||
|
jetbrains.datagrip
|
||||||
|
vscode
|
||||||
|
nixfmt # Nix formatting
|
||||||
|
pkgs.libsForQt5.full # QML formatting (for working on quickshell)
|
||||||
|
|
||||||
|
# System tools
|
||||||
|
btop
|
||||||
|
fastfetch
|
||||||
|
gnumake
|
||||||
|
|
||||||
|
# Langs
|
||||||
|
php
|
||||||
|
php84Packages.composer
|
||||||
|
laravel
|
||||||
|
go
|
||||||
|
nodejs_22
|
||||||
|
bun
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.btop = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
keymap = {
|
||||||
|
manager.prepend_keymap = [
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
"b"
|
||||||
|
"g"
|
||||||
|
];
|
||||||
|
run = "shell 'hyprctl hyprpaper preload \"$0\" && hyprctl hyprpaper wallpaper \", $0\"'";
|
||||||
|
desc = "Set as wallpaper";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
stylix = {
|
||||||
|
enable = true;
|
||||||
|
targets = {
|
||||||
|
btop.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "code";
|
||||||
|
BROWSER = "brave";
|
||||||
|
TERMINAL = "kitty";
|
||||||
|
NVD_BACKEND = "wayland";
|
||||||
|
OZONE_PLATFORM = "wayland";
|
||||||
|
OZONE_PLATFORM_HINT = "auto";
|
||||||
|
XDG_CACHE_HOME = "${config.home.homeDirectory}/.cache";
|
||||||
|
XDG_CONFIG_HOME = "${config.home.homeDirectory}/.config";
|
||||||
|
XDG_DATA_HOME = "${config.home.homeDirectory}/.local/share";
|
||||||
|
XDG_STATE_HOME = "${config.home.homeDirectory}/.local/state";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Configure all the xdg stuff so apps work correctly
|
||||||
|
xdg = {
|
||||||
|
enable = true;
|
||||||
|
# Normal expected directories
|
||||||
|
userDirs = {
|
||||||
|
enable = true;
|
||||||
|
createDirectories = true;
|
||||||
|
desktop = "${config.home.homeDirectory}/Desktop";
|
||||||
|
documents = "${config.home.homeDirectory}/Documents";
|
||||||
|
download = "${config.home.homeDirectory}/Downloads";
|
||||||
|
music = "${config.home.homeDirectory}/Music";
|
||||||
|
pictures = "${config.home.homeDirectory}/Pictures";
|
||||||
|
publicShare = "${config.home.homeDirectory}/Public";
|
||||||
|
templates = "${config.home.homeDirectory}/Templates";
|
||||||
|
videos = "${config.home.homeDirectory}/Videos";
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: Move the http handler to a browser.nix
|
||||||
|
# # File/app associations
|
||||||
|
# mimeApps = {
|
||||||
|
# enable = true;
|
||||||
|
# defaultApplications = {
|
||||||
|
# "text/html" = "brave.desktop";
|
||||||
|
# "x-scheme-handler/http" = "brave.desktop";
|
||||||
|
# "x-scheme-handler/https" = "brave.desktop";
|
||||||
|
# "x-scheme-handler/about" = "brave.desktop";
|
||||||
|
# "x-scheme-handler/unknown" = "brave.desktop";
|
||||||
|
# "application/pdf" = "org.gnome.Evince.desktop";
|
||||||
|
# "text/plain" = "code.desktop";
|
||||||
|
# "application/json" = "code.desktop";
|
||||||
|
# "application/javascript" = "code.desktop";
|
||||||
|
# "text/x-php" = "code.desktop";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
|
# Let Home Manager install and manage itself.
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
}
|
@ -9,8 +9,6 @@
|
|||||||
./gnome/keybinds.nix
|
./gnome/keybinds.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
window
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gnomeExtensions.blur-my-shell
|
gnomeExtensions.blur-my-shell
|
||||||
gnomeExtensions.dash-to-dock
|
gnomeExtensions.dash-to-dock
|
103
home/hyprland.nix
Normal file
103
home/hyprland.nix
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Configs
|
||||||
|
./hyprland/binds.nix
|
||||||
|
# Ecosystem
|
||||||
|
./hyprland/hyprpaper.nix
|
||||||
|
# Desktop environment
|
||||||
|
./hyprland/hyprpanel.nix
|
||||||
|
./wofi.nix
|
||||||
|
./hyprland/desktop-env.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# Running apps
|
||||||
|
# wofi
|
||||||
|
|
||||||
|
# Notifications
|
||||||
|
libnotify
|
||||||
|
|
||||||
|
# Screenshots
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
wl-clipboard
|
||||||
|
hyprshot
|
||||||
|
|
||||||
|
# Desktop env
|
||||||
|
hyprpanel
|
||||||
|
|
||||||
|
# Utility
|
||||||
|
wl-clipboard
|
||||||
|
];
|
||||||
|
|
||||||
|
# Important for certain apps working
|
||||||
|
# and dark mode being respected
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = [
|
||||||
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
pkgs.xdg-desktop-portal-hyprland
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.enable = true;
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
input = {
|
||||||
|
repeat_delay = 200;
|
||||||
|
repeat_rate = 20;
|
||||||
|
};
|
||||||
|
|
||||||
|
monitor = [
|
||||||
|
"DP-5, 3440x1440@179.99, 0x0, 1"
|
||||||
|
];
|
||||||
|
|
||||||
|
general = {
|
||||||
|
layout = "master";
|
||||||
|
gaps_out = 0;
|
||||||
|
gaps_in = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
workspace = [
|
||||||
|
"1, persistent:true"
|
||||||
|
"2, persistent:true"
|
||||||
|
"3, persistent:true"
|
||||||
|
"4, persistent:true"
|
||||||
|
"5, persistent:true"
|
||||||
|
"6, persistent:true"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Window rules
|
||||||
|
windowrulev2 = [
|
||||||
|
"opacity 0.85, class:^(Code)$"
|
||||||
|
];
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
blur = {
|
||||||
|
enabled = false;
|
||||||
|
size = 8;
|
||||||
|
passes = 2;
|
||||||
|
};
|
||||||
|
|
||||||
|
active_opacity = 1.0;
|
||||||
|
inactive_opacity = 1.0;
|
||||||
|
};
|
||||||
|
|
||||||
|
exec-once = [
|
||||||
|
# "quickshell -c hyprshell"
|
||||||
|
"hyprpanel"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.plugins = [
|
||||||
|
# inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
Before Width: | Height: | Size: 7.3 MiB After Width: | Height: | Size: 7.3 MiB |
@ -23,18 +23,17 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
# "$mod, a, hyprexpo:expo, toggle"
|
|
||||||
# Start programs
|
# Start programs
|
||||||
"$mod, q, exec, $terminal"
|
"$mod, q, exec, $terminal"
|
||||||
"$mod SHIFT, o, exec, $browser"
|
"$mod SHIFT, o, exec, $browser"
|
||||||
"$mod SHIFT, p, exec, $browser --incognito"
|
"$mod SHIFT, p, exec, $browser --incognito"
|
||||||
"$mod, e, exec, $file_browser"
|
"$mod, e, exec, $file_browser"
|
||||||
"$mod SHIFT, n, exec, code ~/nix"
|
"$mod SHIFT, n, exec, $terminal --start-as=normal -- bash -ic 'code ~/nix && exit'"
|
||||||
"$mod SHIFT, ESC, exec, $terminal --start-as=normal -- bash -ic 'btop'"
|
"$mod SHIFT, ESC, exec, $terminal --start-as=normal -- bash -ic 'btop'"
|
||||||
# "$mod ALT, p, exec, $terminal --start-as=normal -- bash -ic 'proj'"
|
# "$mod ALT, p, exec, $terminal --start-as=normal -- bash -ic 'proj'"
|
||||||
|
|
||||||
"$mod ALT, p, exec, eza -ld $HOME/projects/* --color=never | awk '{print $7}' | wofi --dmenu --prompt \"Open project:\" | xargs -I{} code {} -n && exit"
|
"$mod ALT, p, exec, eza -ld $HOME/projects/* --color=never | awk '{print $7}' | wofi --dmenu --prompt \"Open project:\" | xargs -I{} code {} -n && exit"
|
||||||
"$mod, RETURN, exec, $webapphttps://claude.ai"
|
"$mod, RETURN, exec, $webapphttps://chatgpt.com"
|
||||||
|
|
||||||
# Window and workspace navigation
|
# Window and workspace navigation
|
||||||
# Move between windows with vim keys
|
# Move between windows with vim keys
|
||||||
@ -53,19 +52,17 @@
|
|||||||
|
|
||||||
"$mod, f, fullscreen, 0"
|
"$mod, f, fullscreen, 0"
|
||||||
"$mod, v, togglefloating, active"
|
"$mod, v, togglefloating, active"
|
||||||
# "$mod, SPACE, exec, wofi --show drun"
|
"$mod, SPACE, exec, wofi --show drun"
|
||||||
"$mod, SPACE, exec, waycast"
|
|
||||||
"$mod, d, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji"
|
"$mod, d, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji"
|
||||||
|
|
||||||
"$mod SHIFT, s, exec, flameshot gui"
|
"$mod SHIFT, s, exec, hyprshot --mode region"
|
||||||
", PRINT, exec, hyprshot --mode output"
|
", PRINT, exec, hyprshot --mode output"
|
||||||
|
|
||||||
"$mod SHIFT, c, togglespecialworkspace, comms"
|
"$mod SHIFT, c, togglespecialworkspace, comms"
|
||||||
"$mod SHIFT, a, togglespecialworkspace, research"
|
"$mod SHIFT, a, togglespecialworkspace, research"
|
||||||
"$mod SHIFT ALT, x, exec, hyprctl dispatch exit"
|
"$mod SHIFT ALT, x, exec, hyprctl dispatch exit"
|
||||||
"$mod SHIFT ALT, l, exec, hyprlock"
|
"SHIFT, Print, exec, grimblast copy area"
|
||||||
# "SHIFT, Print, exec, grimblast copy area"
|
"CTRL, Print, exec, grimblast copy active"
|
||||||
# "CTRL, Print, exec, grimblast copy active"
|
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
# workspaces
|
# workspaces
|
||||||
@ -84,4 +81,9 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.plugins = [
|
||||||
|
# inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
@ -52,11 +52,6 @@
|
|||||||
# onlyoffice-bin # Alternative office suite
|
# onlyoffice-bin # Alternative office suite
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile."Thunar/thunarrc".text = ''
|
|
||||||
[Configuration]
|
|
||||||
DefaultView=ThunarDetailsView
|
|
||||||
'';
|
|
||||||
|
|
||||||
# XDG MIME associations for seamless integration
|
# XDG MIME associations for seamless integration
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -103,14 +98,10 @@
|
|||||||
"application/x-rar" = "org.kde.ark.desktop";
|
"application/x-rar" = "org.kde.ark.desktop";
|
||||||
|
|
||||||
# Directory
|
# Directory
|
||||||
"inode/directory" = "thunar.desktop";
|
"inode/directory" = "org.kde.dolphin.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
FILE_MANAGER = "thunar";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure specific programs
|
# Configure specific programs
|
||||||
programs = {
|
programs = {
|
||||||
# Configure mpv for advanced video playback
|
# Configure mpv for advanced video playback
|
57
home/hyprland/hyprpanel.nix
Normal file
57
home/hyprland/hyprpanel.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{ inputs, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.hyprpanel = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
bar = {
|
||||||
|
layouts = {
|
||||||
|
"0" = {
|
||||||
|
left = [
|
||||||
|
"dashboard"
|
||||||
|
"workspaces"
|
||||||
|
"cpu"
|
||||||
|
"ram"
|
||||||
|
"systray"
|
||||||
|
];
|
||||||
|
middle = [
|
||||||
|
"clock"
|
||||||
|
];
|
||||||
|
right = [
|
||||||
|
"media"
|
||||||
|
"volume"
|
||||||
|
"network"
|
||||||
|
"notifications"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
bar.launcher.autoDetectIcon = true;
|
||||||
|
bar.workspaces.show_icons = true;
|
||||||
|
|
||||||
|
menus.clock = {
|
||||||
|
time = {
|
||||||
|
military = false;
|
||||||
|
hideSeconds = true;
|
||||||
|
};
|
||||||
|
weather.unit = "imperial";
|
||||||
|
};
|
||||||
|
|
||||||
|
menus.dashboard.directories.enabled = false;
|
||||||
|
menus.dashboard.stats.enable_gpu = true;
|
||||||
|
|
||||||
|
theme = import ./hyprpanel/theme-gruvbox.nix;
|
||||||
|
|
||||||
|
# theme.bar.transparent = {
|
||||||
|
# transparent = false;
|
||||||
|
# buttons.style = "wave";
|
||||||
|
# };
|
||||||
|
|
||||||
|
# theme.font = {
|
||||||
|
# name = "CaskaydiaCove NF";
|
||||||
|
# size = "14px";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -2,27 +2,28 @@
|
|||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
assets,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
basePath = "/home/javi/Documents/wallpapers";
|
||||||
|
wallpaper = "Fantasy-Mountain.png";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.hyprpaper
|
pkgs.hyprpaper
|
||||||
];
|
];
|
||||||
# Home Manager
|
|
||||||
xdg.configFile."wallpaper.png".source = "${assets}/slums.png";
|
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
ipc = "on";
|
ipc = "on";
|
||||||
splash = false;
|
splash = false;
|
||||||
preload = [
|
preload = [
|
||||||
"/home/javi/.config/wallpaper.png"
|
"${basePath}/${wallpaper}"
|
||||||
];
|
];
|
||||||
|
|
||||||
wallpaper = [
|
wallpaper = [
|
||||||
", /home/javi/.config/wallpaper.png"
|
", ${basePath}/${wallpaper}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
@ -14,8 +14,7 @@
|
|||||||
shellAliases = {
|
shellAliases = {
|
||||||
sudo = "sudo ";
|
sudo = "sudo ";
|
||||||
# Nix
|
# Nix
|
||||||
rb = "git add . && sudo nixos-rebuild switch --flake $HOME/nix#desktop";
|
rb = "git add . && sudo nixos-rebuild switch --flake $HOME/nix#default";
|
||||||
rbl = "git add . && sudo nixos-rebuild switch --flake $HOME/nix#laptop";
|
|
||||||
|
|
||||||
eza = "eza";
|
eza = "eza";
|
||||||
ls = "eza -lh --group-directories-first --icons";
|
ls = "eza -lh --group-directories-first --icons";
|
||||||
@ -61,9 +60,6 @@
|
|||||||
gr = "go run .";
|
gr = "go run .";
|
||||||
gmt = "go mod tidy";
|
gmt = "go mod tidy";
|
||||||
|
|
||||||
# Zig
|
|
||||||
zb = "zig build";
|
|
||||||
zbr = "zig build run";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Additional bash configuration
|
# Additional bash configuration
|
||||||
@ -134,8 +130,4 @@
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionPath = [
|
|
||||||
"$HOME/.config/composer/vendor/bin"
|
|
||||||
];
|
|
||||||
}
|
}
|
53
home/util/darkmode.nix
Normal file
53
home/util/darkmode.nix
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# {
|
||||||
|
# home.packages = with pkgs; [
|
||||||
|
# papirus-icon-theme
|
||||||
|
# papirus-folders
|
||||||
|
# ];
|
||||||
|
# gtk = {
|
||||||
|
# enable = true;
|
||||||
|
# theme = {
|
||||||
|
# name = "Breeze-Dark";
|
||||||
|
# package = pkgs.libsForQt5.breeze-gtk;
|
||||||
|
# };
|
||||||
|
# iconTheme = {
|
||||||
|
# name = "Papirus-Dark";
|
||||||
|
# };
|
||||||
|
# gtk3 = {
|
||||||
|
# extraConfig.gtk-application-prefer-dark-theme = true;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
# dconf.settings = {
|
||||||
|
# "org/gnome/desktop/interface" = {
|
||||||
|
# gtk-theme = "Breeze-Dark";
|
||||||
|
# color-scheme = "prefer-dark";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
# qt = {
|
||||||
|
# enable = true;
|
||||||
|
# platformTheme = "gtk";
|
||||||
|
# style = {
|
||||||
|
# name = "gtk2";
|
||||||
|
# package = pkgs.libsForQt5.breeze-qt5;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
# # Make Qt apps follow dark mode
|
||||||
|
# home.sessionVariables = {
|
||||||
|
# QT_QPA_PLATFORMTHEME = "gtk2";
|
||||||
|
# QT_STYLE_OVERRIDE = "gtk2";
|
||||||
|
# };
|
||||||
|
# }
|
11
home/vscode.nix
Executable file
11
home/vscode.nix
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.vscode;
|
||||||
|
};
|
||||||
|
}
|
@ -1,191 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
hostname,
|
|
||||||
assets,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
# Bootloader.
|
|
||||||
boot = {
|
|
||||||
loader = {
|
|
||||||
systemd-boot = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
efi = {
|
|
||||||
canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Mount my second drive
|
|
||||||
supportedFilesystems = [ "ntfs" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = hostname;
|
|
||||||
|
|
||||||
networkmanager = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
time = {
|
|
||||||
timeZone = "America/New_York";
|
|
||||||
};
|
|
||||||
|
|
||||||
i18n = {
|
|
||||||
defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
||||||
LC_MEASUREMENT = "en_US.UTF-8";
|
|
||||||
LC_MONETARY = "en_US.UTF-8";
|
|
||||||
LC_NAME = "en_US.UTF-8";
|
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
|
||||||
LC_PAPER = "en_US.UTF-8";
|
|
||||||
LC_TELEPHONE = "en_US.UTF-8";
|
|
||||||
LC_TIME = "en_US.UTF-8";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
printing = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Flatpak is here just for discord pretty much
|
|
||||||
flatpak = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
pulseaudio = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
openssh = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.flatpak-repo = {
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = [ pkgs.flatpak ];
|
|
||||||
script = ''
|
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
security = {
|
|
||||||
rtkit = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
systemPackages = with pkgs; [
|
|
||||||
brave
|
|
||||||
git
|
|
||||||
openssh
|
|
||||||
xdg-user-dirs-gtk # This helps with Nautilus integration
|
|
||||||
cachix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Set up my user icon
|
|
||||||
etc = {
|
|
||||||
"avatars/javi.png".source = "${assets}/user-icon.png";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.javi = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "javi";
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
useDefaultShell = true;
|
|
||||||
extraGroups = [
|
|
||||||
"networkmanager"
|
|
||||||
"wheel"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
system = {
|
|
||||||
stateVersion = "25.05"; # Did you read the comment?
|
|
||||||
activationScripts.avatar = ''
|
|
||||||
mkdir -p /var/lib/AccountsService/icons
|
|
||||||
ln -sf /etc/avatars/javi.png /var/lib/AccountsService/icons/javi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
nix.settings = {
|
|
||||||
substituters = [
|
|
||||||
"https://cache.nixos.org/"
|
|
||||||
];
|
|
||||||
trusted-public-keys = [
|
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
hyprland.enable = true;
|
|
||||||
ssh = {
|
|
||||||
startAgent = true;
|
|
||||||
extraConfig = "
|
|
||||||
Host myhost
|
|
||||||
Hostname gitgud.foo
|
|
||||||
";
|
|
||||||
};
|
|
||||||
|
|
||||||
# More thunar support
|
|
||||||
xfconf = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
zsh.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Theme
|
|
||||||
stylix = {
|
|
||||||
enable = true;
|
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
|
||||||
# image = "/home/javi/Documents/wallpapers/Fantasy-Mountain.png";
|
|
||||||
polarity = "dark";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable home manager
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
zigpkg = pkgs.zigpkgs.master;
|
|
||||||
assets = assets;
|
|
||||||
};
|
|
||||||
users = {
|
|
||||||
"javi" = {
|
|
||||||
imports = [
|
|
||||||
../modules/home/home.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,47 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
hostname,
|
|
||||||
assets,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
../common-config.nix
|
|
||||||
../../modules/system/nix-valet.nix
|
|
||||||
../../modules/system/device-management/logitech.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Mount second hard drive
|
|
||||||
boot = {
|
|
||||||
supportedFilesystems = [
|
|
||||||
"ntfs"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home/javi/working-files" = {
|
|
||||||
device = "/dev/disk/by-uuid/BE8EBBDA8EBB8A03";
|
|
||||||
fsType = "ntfs";
|
|
||||||
options = [
|
|
||||||
"uid=1000" # your user ID (check with `id -u`)
|
|
||||||
"gid=100" # your primary group ID (check with `id -g`)
|
|
||||||
"dmask=022" # dir permissions
|
|
||||||
"fmask=022" # file permissions
|
|
||||||
"nofail"
|
|
||||||
"exec"
|
|
||||||
|
|
||||||
# make Nautilus show it with a friendly name/icon
|
|
||||||
"x-gvfs-show"
|
|
||||||
"x-gvfs-name=Working Files"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
systemPackages = with pkgs; [
|
|
||||||
pkgs.ntfs3g
|
|
||||||
zigpkgs.master
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
hostname,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
../common-config.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
services.xserver.libinput.enable = true;
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
programs.fzf = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,427 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
zigpkg,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.vscode = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.vscode; # or pkgs.vscodium for the open-source version
|
|
||||||
|
|
||||||
# Extensions
|
|
||||||
extensions =
|
|
||||||
with pkgs.vscode-extensions;
|
|
||||||
[
|
|
||||||
# Misc
|
|
||||||
vscodevim.vim
|
|
||||||
eamodio.gitlens
|
|
||||||
christian-kohler.path-intellisense
|
|
||||||
catppuccin.catppuccin-vsc-icons
|
|
||||||
foxundermoon.shell-format
|
|
||||||
gruntfuggly.todo-tree
|
|
||||||
jdinhlife.gruvbox
|
|
||||||
redhat.ansible
|
|
||||||
redhat.vscode-yaml
|
|
||||||
shd101wyy.markdown-preview-enhanced
|
|
||||||
ms-vsliveshare.vsliveshare
|
|
||||||
pkief.material-icon-theme
|
|
||||||
tamasfe.even-better-toml
|
|
||||||
# PHP
|
|
||||||
bmewburn.vscode-intelephense-client
|
|
||||||
# Html/Front End Support
|
|
||||||
bradlc.vscode-tailwindcss
|
|
||||||
formulahendry.auto-close-tag
|
|
||||||
formulahendry.auto-rename-tag
|
|
||||||
svelte.svelte-vscode
|
|
||||||
vue.volar
|
|
||||||
# Go
|
|
||||||
golang.go
|
|
||||||
mikestead.dotenv
|
|
||||||
# Python
|
|
||||||
ms-python.debugpy
|
|
||||||
ms-python.python
|
|
||||||
ms-python.vscode-pylance
|
|
||||||
# Zig
|
|
||||||
# ziglang.vscode-zig
|
|
||||||
# C++
|
|
||||||
ms-vscode.cpptools
|
|
||||||
ms-vscode.cmake-tools
|
|
||||||
# delgan.qml-format
|
|
||||||
# Nix
|
|
||||||
mkhl.direnv
|
|
||||||
jnoortheen.nix-ide
|
|
||||||
# adpyke.vscode-sql-formatter
|
|
||||||
# adrianwilczynski.alpine-js-intellisense
|
|
||||||
# anthropic.claude-code
|
|
||||||
# cierra.livewire-vscode
|
|
||||||
# neilbrayfield.php-docblocker
|
|
||||||
# zignd.html-css-class-completion
|
|
||||||
]
|
|
||||||
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
|
||||||
# Extensions not in nixpkgs
|
|
||||||
{
|
|
||||||
name = "base16-tinted-themes";
|
|
||||||
publisher = "TintedTheming";
|
|
||||||
version = "0.27.0";
|
|
||||||
sha256 = "7wLBwfaXEoumAfp9kK5Mv1VaGffuGdoYMGZ+ZjN9G8Q=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "vscode-laravel";
|
|
||||||
publisher = "laravel";
|
|
||||||
version = "1.0.14";
|
|
||||||
sha256 = "DEHr8kAGm6ShdQCThh7MUhv24Ghwg10mGDhZgUIojrY=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "phpstorm-snippets";
|
|
||||||
publisher = "phiter";
|
|
||||||
version = "1.1.2";
|
|
||||||
sha256 = "EHEzM4YKYR+2r6RVun8tSjGYDsbriBPATNwxczEuqjQ=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "laravel-blade";
|
|
||||||
publisher = "onecentlin";
|
|
||||||
version = "1.37.0";
|
|
||||||
sha256 = "q5CTRj746404yM9mhOWYAGTzt/8CJ7Fx4QUQSJ+LdLs=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "vscode-antlers";
|
|
||||||
publisher = "stillat-llc";
|
|
||||||
version = "2.6.22";
|
|
||||||
sha256 = "3JtT5AxtbxciivfG6JaUYNPL74+8ydhDeB7SCE/92ko=";
|
|
||||||
}
|
|
||||||
# Qt Extension Pack
|
|
||||||
{
|
|
||||||
name = "qt-qml";
|
|
||||||
publisher = "TheQtCompany";
|
|
||||||
version = "1.7.0";
|
|
||||||
sha256 = "QjfvZIcE4LcJU93YiYN/zykEluHtR7zVOwYiPL0k+cQ=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "qt-ui";
|
|
||||||
publisher = "TheQtCompany";
|
|
||||||
version = "1.7.0";
|
|
||||||
sha256 = "XDOIyCZIUYPGfcszZMUkR9MHH+zrXZgympKNhcQwITY=";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "qt-core";
|
|
||||||
publisher = "TheQtCompany";
|
|
||||||
version = "1.7.0";
|
|
||||||
sha256 = "2413vMpvxSYBKpaD14sMgI92W8NtCYa/sJ7PZO62WfY=";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# User settings
|
|
||||||
userSettings = {
|
|
||||||
# Disable the fucking copilot chat
|
|
||||||
"github.copilot.chat.showChatPanel" = false;
|
|
||||||
"github.copilot.enable" = false;
|
|
||||||
"window.titleBarStyle" = "custom";
|
|
||||||
"window.customTitleBarVisibility" = "auto";
|
|
||||||
"workbench.colorTheme" = lib.mkForce "Stylix";
|
|
||||||
"git.autofetch" = true;
|
|
||||||
"editor.fontSize" = lib.mkForce 18;
|
|
||||||
"editor.snippetSuggestions" = "top";
|
|
||||||
"editor.formatOnPaste" = true;
|
|
||||||
"editor.formatOnSave" = true;
|
|
||||||
"qt-qml.qmlls.useQmlImportPathEnvVar" = true;
|
|
||||||
"[qml]" = {
|
|
||||||
"editor.defaultFormatter" = "Delgan.qml-format";
|
|
||||||
"editor.formatOnSave" = true;
|
|
||||||
};
|
|
||||||
"[yaml]" = {
|
|
||||||
"editor.formatOnSave" = false;
|
|
||||||
};
|
|
||||||
"[astro]" = {
|
|
||||||
"editor.formatOnSave" = false;
|
|
||||||
};
|
|
||||||
"[dockerfile]" = {
|
|
||||||
"editor.formatOnSave" = false;
|
|
||||||
"editor.formatOnPaste" = false;
|
|
||||||
"editor.formatOnType" = false;
|
|
||||||
"editor.defaultFormatter" = "ms-azuretools.vscode-containers";
|
|
||||||
};
|
|
||||||
"tailwindCSS.includeLanguages" = {
|
|
||||||
"templ" = "html";
|
|
||||||
};
|
|
||||||
"emmet.triggerExpansionOnTab" = true;
|
|
||||||
"editor.autoIndent" = "full";
|
|
||||||
"files.eol" = "\n";
|
|
||||||
"emmet.excludeLanguages" = [ ];
|
|
||||||
"emmet.includeLanguages" = {
|
|
||||||
"blade" = "html";
|
|
||||||
"templ" = "html";
|
|
||||||
"markdown" = "html";
|
|
||||||
};
|
|
||||||
"explorer.openEditors.visible" = 0;
|
|
||||||
"editor.tabCompletion" = "on";
|
|
||||||
"workbench.editor.highlightModifiedTabs" = true;
|
|
||||||
"git.enableSmartCommit" = true;
|
|
||||||
"extensions.ignoreRecommendations" = true;
|
|
||||||
"blade.format.enable" = true;
|
|
||||||
"editor.autoClosingBrackets" = "always";
|
|
||||||
"material-icon-theme.folders.theme" = "specific";
|
|
||||||
"security.workspace.trust.untrustedFiles" = "open";
|
|
||||||
"editor.unusualLineTerminators" = "auto";
|
|
||||||
"files.associations" = { };
|
|
||||||
"intelephense.environment.phpVersion" = "8.1.0";
|
|
||||||
"git.useEditorAsCommitInput" = false;
|
|
||||||
"editor.inlineSuggest.enabled" = true;
|
|
||||||
"[xml]" = {
|
|
||||||
"editor.defaultFormatter" = "redhat.vscode-xml";
|
|
||||||
};
|
|
||||||
"terminal.integrated.fontSize" = lib.mkForce 18;
|
|
||||||
"explorer.confirmDragAndDrop" = false;
|
|
||||||
"editor.unicodeHighlight.nonBasicASCII" = false;
|
|
||||||
"markdown-preview-enhanced.previewTheme" = "github-dark.css";
|
|
||||||
"window.commandCenter" = false;
|
|
||||||
"workbench.editor.editorActionsLocation" = "hidden";
|
|
||||||
"workbench.layoutControl.enabled" = false;
|
|
||||||
"editor.minimap.enabled" = false;
|
|
||||||
"workbench.activityBar.location" = "hidden";
|
|
||||||
"editor.fontFamily" = lib.mkForce "'Fira Code Retina'";
|
|
||||||
"editor.fontLigatures" = true;
|
|
||||||
"keyboard.dispatch" = "keyCode";
|
|
||||||
"workbench.iconTheme" = "catppuccin-frappe";
|
|
||||||
"search.useIgnoreFiles" = false;
|
|
||||||
"search.exclude" = {
|
|
||||||
# Hide everything in /vendor; except the "laravel" and "livewire" folder.
|
|
||||||
"**/vendor/{[^l];?[^ai]}*" = true;
|
|
||||||
# Hide everything in /public; except "index.php"
|
|
||||||
"**/public/{[^i];?[^n]}*" = true;
|
|
||||||
"**/node_modules" = true;
|
|
||||||
"**/dist" = true;
|
|
||||||
"**/_ide_helper.php" = true;
|
|
||||||
"**/composer.lock" = true;
|
|
||||||
"**/package-lock.json" = true;
|
|
||||||
"storage" = true;
|
|
||||||
".phpunit.result.cache" = true;
|
|
||||||
};
|
|
||||||
"scm.diffDecorations" = "none";
|
|
||||||
"editor.hover.enabled" = false;
|
|
||||||
"editor.matchBrackets" = "never";
|
|
||||||
"workbench.tips.enabled" = false;
|
|
||||||
"editor.colorDecorators" = false;
|
|
||||||
"git.decorations.enabled" = false;
|
|
||||||
"workbench.startupEditor" = "none";
|
|
||||||
"editor.lightbulb.enabled" = "off";
|
|
||||||
"editor.selectionHighlight" = false;
|
|
||||||
"editor.overviewRulerBorder" = false;
|
|
||||||
"editor.renderLineHighlight" = "none";
|
|
||||||
"editor.occurrencesHighlight" = "off";
|
|
||||||
"problems.decorations.enabled" = false;
|
|
||||||
"editor.renderControlCharacters" = false;
|
|
||||||
"editor.hideCursorInOverviewRuler" = true;
|
|
||||||
"editor.gotoLocation.multipleReferences" = "goto";
|
|
||||||
"editor.gotoLocation.multipleDefinitions" = "goto";
|
|
||||||
"editor.gotoLocation.multipleDeclarations" = "goto";
|
|
||||||
"workbench.editor.enablePreviewFromQuickOpen" = false;
|
|
||||||
"editor.gotoLocation.multipleImplementations" = "goto";
|
|
||||||
"editor.gotoLocation.multipleTypeDefinitions" = "goto";
|
|
||||||
"editor.cursorSurroundingLines" = 200;
|
|
||||||
"workbench.editor.pinnedTabsOnSeparateRow" = true;
|
|
||||||
"C_Cpp.default.compileCommands" = "\${workspaceFolder}/build/compile_commands.json";
|
|
||||||
"C_Cpp.default.configurationProvider" = "ms-vscode.cmake-tools";
|
|
||||||
"antlersLanguageServer.languageVersion" = "runtime";
|
|
||||||
"[antlers]" = {
|
|
||||||
"editor.defaultFormatter" = "html";
|
|
||||||
};
|
|
||||||
"window.menuBarVisibility" = "compact";
|
|
||||||
"vim.leader" = "<space>";
|
|
||||||
"vim.normalModeKeyBindings" = [
|
|
||||||
{
|
|
||||||
"before" = [
|
|
||||||
"g"
|
|
||||||
"r"
|
|
||||||
];
|
|
||||||
"commands" = [ "editor.action.goToReferences" ];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"before" = [
|
|
||||||
"g"
|
|
||||||
"v"
|
|
||||||
];
|
|
||||||
"commands" = [ "editor.action.revealDefinitionAside" ];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"before" = [
|
|
||||||
"<leader>"
|
|
||||||
"o"
|
|
||||||
];
|
|
||||||
"commands" = [ "workbench.action.quickOpen" ];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"before" = [
|
|
||||||
"<leader>"
|
|
||||||
"p"
|
|
||||||
];
|
|
||||||
"commands" = [ "workbench.action.showCommands" ];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"before" = [
|
|
||||||
"<leader>"
|
|
||||||
"i"
|
|
||||||
];
|
|
||||||
"commands" = [ "workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup" ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
"vim.insertModeKeyBindings" = [
|
|
||||||
{
|
|
||||||
"before" = [
|
|
||||||
"j"
|
|
||||||
"j"
|
|
||||||
];
|
|
||||||
"after" = [ "<Esc>" ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
"vim.visualModeKeyBindings" = [
|
|
||||||
{
|
|
||||||
"before" = [ "<Enter>" ];
|
|
||||||
"after" = [ "<Esc>" ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
"workbench.editor.showTabs" = "none";
|
|
||||||
"ansible.lightspeed.enabled" = false;
|
|
||||||
"ansible.lightspeed.suggestions.enabled" = false;
|
|
||||||
"[sql]" = {
|
|
||||||
"editor.formatOnSave" = false;
|
|
||||||
};
|
|
||||||
"svelte.enable-ts-plugin" = true;
|
|
||||||
"workbench.sideBar.location" = "right";
|
|
||||||
"workbench.panel.defaultLocation" = "right";
|
|
||||||
"zig.zls.enabled" = "on";
|
|
||||||
"zig.path" = "${zigpkg}/bin/zig";
|
|
||||||
"zig.zls.path" = "${pkgs.zls}/bin/zls";
|
|
||||||
"zig.zls.zigLibPath" = "${zigpkg}/lib";
|
|
||||||
"zig.zls.completionLabelDetails" = false;
|
|
||||||
"zig.zls.enableArgumentPlaceholders" = false;
|
|
||||||
"zig.zls.inlayHintsShowParameterName" = false;
|
|
||||||
"zig.zls.inlayHintsShowVariableTypeHints" = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Keybindings
|
|
||||||
keybindings = [
|
|
||||||
{
|
|
||||||
"key" = "ctrl+k";
|
|
||||||
"command" = "git.commitAll";
|
|
||||||
"when" = "!inDebugMode && !terminalFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+k";
|
|
||||||
"command" = "git.pushTo";
|
|
||||||
"when" = "!inDebugMode && !terminalFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+n";
|
|
||||||
"command" = "workbench.action.quickOpen";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "shift+escape";
|
|
||||||
"command" = "workbench.action.terminal.toggleTerminal";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+`";
|
|
||||||
"command" = "workbench.action.closeAllEditors";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+1";
|
|
||||||
"command" = "workbench.files.action.collapseExplorerFolders";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+e";
|
|
||||||
"command" = "workbench.view.explorer";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+e";
|
|
||||||
"command" = "workbench.action.toggleSidebarVisibility";
|
|
||||||
"when" = "!editorFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+1";
|
|
||||||
"command" = "workbench.action.toggleSidebarVisibility";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+a";
|
|
||||||
"command" = "explorer.newFile";
|
|
||||||
"when" = "explorerViewletVisible && filesExplorerFocus && !inputFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+a";
|
|
||||||
"command" = "explorer.newFolder";
|
|
||||||
"when" = "explorerViewletVisible && filesExplorerFocus && !inputFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+d";
|
|
||||||
"command" = "deleteFile";
|
|
||||||
"when" = "explorerViewletVisible && filesExplorerFocus && !inputFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+\\";
|
|
||||||
"command" = "workbench.action.splitEditorRight";
|
|
||||||
"when" = "editorFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+h";
|
|
||||||
"command" = "workbench.action.navigateLeft";
|
|
||||||
"when" = "editorFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+l";
|
|
||||||
"command" = "workbench.action.navigateRight";
|
|
||||||
"when" = "editorFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+*";
|
|
||||||
"command" = "workbench.action.increaseViewSize";
|
|
||||||
"when" = "editorFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+/";
|
|
||||||
"command" = "workbench.action.decreaseViewSize";
|
|
||||||
"when" = "editorFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+w";
|
|
||||||
"command" = "workbench.action.joinAllGroups";
|
|
||||||
"when" = "editorFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+alt+p";
|
|
||||||
"command" = "editor.emmet.action.wrapWithAbbreviation";
|
|
||||||
"when" = "editorTextFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+alt+i";
|
|
||||||
"command" = "editor.emmet.action.balanceIn";
|
|
||||||
"when" = "editorTextFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+alt+o";
|
|
||||||
"command" = "editor.emmet.action.balanceOut";
|
|
||||||
"when" = "editorTextFocus";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "alt+n";
|
|
||||||
"command" = "workbench.action.quickOpenSelectNext";
|
|
||||||
"when" = "inQuickOpen";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "alt+p";
|
|
||||||
"command" = "workbench.action.quickOpenSelectPrevious";
|
|
||||||
"when" = "inQuickOpen";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "alt+0";
|
|
||||||
"command" = "workbench.action.closeQuickOpen";
|
|
||||||
"when" = "inQuickOpen";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"key" = "ctrl+shift+\\";
|
|
||||||
"command" = "workbench.action.toggleAuxiliaryBar";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
programs.yazi = {
|
|
||||||
enable = true;
|
|
||||||
keymap = {
|
|
||||||
manager.prepend_keymap = [
|
|
||||||
{
|
|
||||||
on = [
|
|
||||||
"b"
|
|
||||||
"g"
|
|
||||||
];
|
|
||||||
run = "shell 'hyprctl hyprpaper preload \"$0\" && hyprctl hyprpaper wallpaper \", $0\"'";
|
|
||||||
desc = "Set as wallpaper";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,152 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./common/git.nix
|
|
||||||
./common/kitty.nix
|
|
||||||
./common/neovim.nix
|
|
||||||
./common/shell.nix
|
|
||||||
./common/starship.nix
|
|
||||||
./common/yazi.nix
|
|
||||||
./common/fzf.nix
|
|
||||||
./common/vscode.nix
|
|
||||||
./hyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# gtk = {
|
|
||||||
# enable = true;
|
|
||||||
# iconTheme = {
|
|
||||||
# name = "Papirus";
|
|
||||||
# package = pkgs.papirus-icon-theme;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
home = {
|
|
||||||
username = "javi";
|
|
||||||
homeDirectory = "/home/javi";
|
|
||||||
stateVersion = "25.05"; # Home manager version. Do not update carelessly
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Basics
|
|
||||||
quickshell
|
|
||||||
zoom-us
|
|
||||||
obsidian
|
|
||||||
kdePackages.kdenlive
|
|
||||||
ffmpeg
|
|
||||||
|
|
||||||
# Terminal tools
|
|
||||||
ripgrep
|
|
||||||
bat
|
|
||||||
eza
|
|
||||||
jq
|
|
||||||
|
|
||||||
# Dev tools
|
|
||||||
jetbrains.datagrip
|
|
||||||
vscode
|
|
||||||
nixfmt # Nix formatting
|
|
||||||
pkgs.libsForQt5.full # QML formatting (for working on quickshell)
|
|
||||||
claude-code
|
|
||||||
xsel
|
|
||||||
nss.tools
|
|
||||||
ansible
|
|
||||||
|
|
||||||
# System tools
|
|
||||||
btop
|
|
||||||
fastfetch
|
|
||||||
gnumake
|
|
||||||
dig
|
|
||||||
lsof
|
|
||||||
|
|
||||||
# Langs
|
|
||||||
php
|
|
||||||
php84Packages.composer
|
|
||||||
laravel
|
|
||||||
go
|
|
||||||
nodejs_22
|
|
||||||
bun
|
|
||||||
zls # Zig language server
|
|
||||||
];
|
|
||||||
|
|
||||||
sessionVariables = {
|
|
||||||
EDITOR = "code";
|
|
||||||
BROWSER = "brave";
|
|
||||||
TERMINAL = "kitty";
|
|
||||||
NVD_BACKEND = "wayland";
|
|
||||||
OZONE_PLATFORM = "wayland";
|
|
||||||
OZONE_PLATFORM_HINT = "auto";
|
|
||||||
XDG_CACHE_HOME = "${config.home.homeDirectory}/.cache";
|
|
||||||
XDG_CONFIG_HOME = "${config.home.homeDirectory}/.config";
|
|
||||||
XDG_DATA_HOME = "${config.home.homeDirectory}/.local/share";
|
|
||||||
XDG_STATE_HOME = "${config.home.homeDirectory}/.local/state";
|
|
||||||
QT_QPA_PLATFORM = "wayland";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Programs home manager should manage
|
|
||||||
programs = {
|
|
||||||
btop = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
direnv = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
stylix = {
|
|
||||||
enable = true;
|
|
||||||
targets = {
|
|
||||||
btop.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg = {
|
|
||||||
enable = true;
|
|
||||||
configFile."user-dirs.conf" = {
|
|
||||||
text = ''
|
|
||||||
enabled=True
|
|
||||||
filename_encoding=UTF-8
|
|
||||||
'';
|
|
||||||
force = true; # This forces overwrite of existing content
|
|
||||||
};
|
|
||||||
userDirs = {
|
|
||||||
enable = true;
|
|
||||||
createDirectories = true;
|
|
||||||
desktop = "${config.home.homeDirectory}/Desktop";
|
|
||||||
documents = "${config.home.homeDirectory}/Documents";
|
|
||||||
download = "${config.home.homeDirectory}/Downloads";
|
|
||||||
music = "${config.home.homeDirectory}/Music";
|
|
||||||
pictures = "${config.home.homeDirectory}/Pictures";
|
|
||||||
publicShare = "${config.home.homeDirectory}/Public";
|
|
||||||
templates = "${config.home.homeDirectory}/Templates";
|
|
||||||
videos = "${config.home.homeDirectory}/Videos";
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO: Move the http handler to a browser.nix
|
|
||||||
# # File/app associations
|
|
||||||
# mimeApps = {
|
|
||||||
# enable = true;
|
|
||||||
# defaultApplications = {
|
|
||||||
# "text/html" = "brave.desktop";
|
|
||||||
# "x-scheme-handler/http" = "brave.desktop";
|
|
||||||
# "x-scheme-handler/https" = "brave.desktop";
|
|
||||||
# "x-scheme-handler/about" = "brave.desktop";
|
|
||||||
# "x-scheme-handler/unknown" = "brave.desktop";
|
|
||||||
# "application/pdf" = "org.gnome.Evince.desktop";
|
|
||||||
# "text/plain" = "code.desktop";
|
|
||||||
# "application/json" = "code.desktop";
|
|
||||||
# "application/javascript" = "code.desktop";
|
|
||||||
# "text/x-php" = "code.desktop";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
|
@ -1,118 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./binds.nix
|
|
||||||
./hyprpaper.nix
|
|
||||||
./hyprpanel.nix
|
|
||||||
./hyprlock.nix
|
|
||||||
./wofi.nix
|
|
||||||
./desktop-env.nix
|
|
||||||
./screenshots.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
home = {
|
|
||||||
sessionVariables = {
|
|
||||||
NIXOS_OZON_WL = "1";
|
|
||||||
|
|
||||||
HYPR_PLUGIN_DIR = pkgs.symlinkJoin {
|
|
||||||
name = "hyprland-plugins";
|
|
||||||
paths = with pkgs.hyprlandPlugins; [
|
|
||||||
hyprexpo
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Notifications
|
|
||||||
libnotify
|
|
||||||
# Desktop env
|
|
||||||
hyprpanel
|
|
||||||
hyprpolkitagent
|
|
||||||
# Utility
|
|
||||||
wl-clipboard
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Important for certain apps working
|
|
||||||
# and dark mode being respected
|
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
|
||||||
extraPortals = [
|
|
||||||
pkgs.xdg-desktop-portal-gtk
|
|
||||||
pkgs.xdg-desktop-portal-hyprland
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
iconTheme = {
|
|
||||||
name = "Papirus";
|
|
||||||
package = pkgs.papirus-icon-theme;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
plugins = with pkgs.hyprlandPlugins; [
|
|
||||||
hyprexpo
|
|
||||||
];
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
|
|
||||||
input = {
|
|
||||||
repeat_delay = 200;
|
|
||||||
repeat_rate = 20;
|
|
||||||
};
|
|
||||||
|
|
||||||
monitor = [
|
|
||||||
"DP-5, 3440x1440@179.99, 0x0, 1"
|
|
||||||
];
|
|
||||||
|
|
||||||
general = {
|
|
||||||
layout = "master";
|
|
||||||
gaps_out = 0;
|
|
||||||
gaps_in = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
workspace = [
|
|
||||||
"1, persistent:true"
|
|
||||||
"2, persistent:true"
|
|
||||||
"3, persistent:true"
|
|
||||||
"4, persistent:true"
|
|
||||||
"5, persistent:true"
|
|
||||||
"6, persistent:true"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Window rules
|
|
||||||
windowrulev2 = [
|
|
||||||
"opacity 0.85, class:^(Code)$"
|
|
||||||
];
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
blur = {
|
|
||||||
enabled = false;
|
|
||||||
size = 8;
|
|
||||||
passes = 2;
|
|
||||||
};
|
|
||||||
|
|
||||||
active_opacity = 1.0;
|
|
||||||
inactive_opacity = 1.0;
|
|
||||||
};
|
|
||||||
|
|
||||||
exec-once = [
|
|
||||||
# "quickshell -c hyprshell"
|
|
||||||
"hyprpanel"
|
|
||||||
"hypridle"
|
|
||||||
"systemctl --user start hyprpolkitagent"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,87 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
assets,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
programs.hyprlock = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
# Variables
|
|
||||||
"$font" = "Monospace";
|
|
||||||
|
|
||||||
general = {
|
|
||||||
hide_cursor = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
animations = {
|
|
||||||
enabled = true;
|
|
||||||
bezier = "linear, 1, 1, 0, 0";
|
|
||||||
animation = [
|
|
||||||
"fadeIn, 1, 5, linear"
|
|
||||||
"fadeOut, 1, 5, linear"
|
|
||||||
"inputFieldDots, 1, 2, linear"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
background = lib.mkForce [
|
|
||||||
{
|
|
||||||
monitor = "";
|
|
||||||
path = "/etc/lockscreen.png";
|
|
||||||
blur_passes = 1;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# input-field = [
|
|
||||||
# {
|
|
||||||
# monitor = "";
|
|
||||||
# size = "20%, 5%";
|
|
||||||
# fade_on_empty = false;
|
|
||||||
# rounding = 15;
|
|
||||||
# font_family = "$font";
|
|
||||||
# placeholder_text = "Input password...";
|
|
||||||
# fail_text = "$PAMFAIL";
|
|
||||||
# # Uncomment to use a letter instead of a dot to indicate the typed password
|
|
||||||
# # dots_text_format = "*";
|
|
||||||
# # dots_size = 0.4;
|
|
||||||
# dots_spacing = 0.3;
|
|
||||||
# # Uncomment to use an input indicator that does not show the password length
|
|
||||||
# # hide_input = true;
|
|
||||||
# position = "0, -20";
|
|
||||||
# halign = "center";
|
|
||||||
# valign = "center";
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# Labels are defined as a list since there are multiple
|
|
||||||
label = [
|
|
||||||
# TIME
|
|
||||||
{
|
|
||||||
monitor = "";
|
|
||||||
text = "$TIME"; # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution
|
|
||||||
font_size = 90;
|
|
||||||
font_family = "$font";
|
|
||||||
position = "-30, 0";
|
|
||||||
halign = "right";
|
|
||||||
valign = "top";
|
|
||||||
}
|
|
||||||
# DATE
|
|
||||||
{
|
|
||||||
monitor = "";
|
|
||||||
text = ''cmd[update:60000] date +"%A, %d %B %Y"''; # update every 60 seconds
|
|
||||||
font_size = 25;
|
|
||||||
font_family = "$font";
|
|
||||||
position = "-30, -150";
|
|
||||||
halign = "right";
|
|
||||||
valign = "top";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
stylix.targets.hyprlock = {
|
|
||||||
useWallpaper = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,85 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
themeDirectory = "${config.programs.hyprpanel.package}/share/themes";
|
|
||||||
currentTheme = "gruvbox_vivid";
|
|
||||||
raw = lib.importJSON "${themeDirectory}/${currentTheme}.json";
|
|
||||||
selectedTheme = if raw ? theme then raw.theme else raw;
|
|
||||||
|
|
||||||
# We need to turn the theme json into a nested attribute set. Otherwise we
|
|
||||||
# end up with an incorrect configuration that looks like:
|
|
||||||
# theme: {theme.bar.transparent: "value", theme.foo.bar: "another value"}
|
|
||||||
# when what we really want is: theme: {bar: ..., buttons: ...}
|
|
||||||
# ----
|
|
||||||
# turn "foo.bar.baz" and value into { foo = { bar = { baz = value; }; }; }
|
|
||||||
nestAttr = path: value: lib.attrsets.setAttrByPath (lib.splitString "." path) value;
|
|
||||||
|
|
||||||
# merge a flat attrset into nested
|
|
||||||
unflatten =
|
|
||||||
flat:
|
|
||||||
lib.foldlAttrs (
|
|
||||||
acc: k: v:
|
|
||||||
lib.recursiveUpdate acc (nestAttr k v)
|
|
||||||
) { } flat;
|
|
||||||
|
|
||||||
themeAttrs = unflatten selectedTheme;
|
|
||||||
base = themeAttrs.theme;
|
|
||||||
themeOverrides = {
|
|
||||||
font.size = "14px";
|
|
||||||
bar.background = "#000000";
|
|
||||||
};
|
|
||||||
|
|
||||||
finalTheme = lib.recursiveUpdate base themeOverrides;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs.hyprpanel = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
bar = {
|
|
||||||
layouts = {
|
|
||||||
"0" = {
|
|
||||||
left = [
|
|
||||||
"dashboard"
|
|
||||||
"workspaces"
|
|
||||||
"cpu"
|
|
||||||
"ram"
|
|
||||||
"systray"
|
|
||||||
];
|
|
||||||
middle = [
|
|
||||||
"clock"
|
|
||||||
];
|
|
||||||
right = [
|
|
||||||
"media"
|
|
||||||
"volume"
|
|
||||||
"network"
|
|
||||||
"notifications"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
bar.launcher.autoDetectIcon = true;
|
|
||||||
bar.workspaces.show_icons = true;
|
|
||||||
|
|
||||||
menus.clock = {
|
|
||||||
time = {
|
|
||||||
military = false;
|
|
||||||
hideSeconds = true;
|
|
||||||
};
|
|
||||||
weather.unit = "imperial";
|
|
||||||
};
|
|
||||||
|
|
||||||
menus.dashboard.directories.enabled = false;
|
|
||||||
menus.dashboard.stats.enable_gpu = true;
|
|
||||||
|
|
||||||
# theme = builtins.fromJSON (builtins.readFile "${themeDirectory}/${currentTheme}.json");
|
|
||||||
theme = finalTheme;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
|
||||||
flameshot = pkgs.flameshot.override {
|
|
||||||
enableWlrSupport = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
flameshot
|
|
||||||
grim
|
|
||||||
slurp
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
|
|
||||||
# Configure all the xdg stuff so apps work correctly
|
|
||||||
xdg = {
|
|
||||||
portal = {
|
|
||||||
enable = true;
|
|
||||||
extraPortals = [
|
|
||||||
pkgs.xdg-desktop-portal-gtk
|
|
||||||
pkgs.xdg-desktop-portal-hyprland
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
boot = {
|
|
||||||
kernelModules = [ "uinput" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
systemPackages = with pkgs; [
|
|
||||||
solaar # Manage logitech mouse
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
logitech = {
|
|
||||||
wireless.enable = true;
|
|
||||||
wireless.enableGraphical = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.javi.extraGroups = [
|
|
||||||
"input"
|
|
||||||
"plugdev"
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,64 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
assets,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
basePath = "/home/javi/Documents/wallpapers";
|
|
||||||
wallpaper = "Fantasy-Mountain.png";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
environment = {
|
|
||||||
etc = {
|
|
||||||
"sddm-wallpaper.png".source = "${assets}/sddm-background.png";
|
|
||||||
"lockscreen.png".source = "${assets}/lockscreen.png";
|
|
||||||
"gtk-3.0/settings.ini".text = ''
|
|
||||||
[Settings]
|
|
||||||
gtk-icon-theme-name=Papirus
|
|
||||||
gtk-theme-name=Adwaita
|
|
||||||
gtk-cursor-theme-name=Adwaita
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
systemPackages = with pkgs; [
|
|
||||||
papirus-icon-theme
|
|
||||||
(sddm-chili-theme.override {
|
|
||||||
themeConfig = {
|
|
||||||
background = "/etc/sddm-wallpaper.png";
|
|
||||||
ScreenWidth = "3440";
|
|
||||||
ScreenHeight = "1440";
|
|
||||||
recursiveBlurLoops = 1;
|
|
||||||
recursiveBlurRadius = 10;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
libsForQt5.qt5.qtgraphicaleffects
|
|
||||||
];
|
|
||||||
|
|
||||||
pathsToLink = [
|
|
||||||
"/share/icons"
|
|
||||||
];
|
|
||||||
|
|
||||||
variables = {
|
|
||||||
GTK_ICON_THEME = "Papirus";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
|
|
||||||
services.displayManager.sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
theme = "chili";
|
|
||||||
autoNumlock = true;
|
|
||||||
package = pkgs.libsForQt5.sddm;
|
|
||||||
extraPackages = with pkgs.libsForQt5.qt5; [
|
|
||||||
qtgraphicaleffects
|
|
||||||
qtquickcontrols2
|
|
||||||
qtquickcontrols
|
|
||||||
qtsvg
|
|
||||||
qtdeclarative # QtQuick core
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Install Steam
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
|
||||||
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
gamemode
|
|
||||||
];
|
|
||||||
|
|
||||||
# In your configuration.nix
|
|
||||||
hardware.opengl = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
}
|
|
@ -1,201 +0,0 @@
|
|||||||
/*
|
|
||||||
This module gives the same functionality as laravel valet or valet linux.
|
|
||||||
|
|
||||||
Set up DNSMasq to point all *.test domains to caddy.
|
|
||||||
|
|
||||||
Caddy will look for a folder with the same name in ~/projects and serve it.
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
services = {
|
|
||||||
# Enable dnsmasq
|
|
||||||
dnsmasq = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
# Point all .test domains to localhost
|
|
||||||
address = "/.test/127.0.0.1";
|
|
||||||
# Don't forward .test queries to upstream DNS
|
|
||||||
# server = "/test/";
|
|
||||||
# Listen on localhost only
|
|
||||||
listen-address = "127.0.0.1";
|
|
||||||
# Bind to interface
|
|
||||||
bind-interfaces = true;
|
|
||||||
# Cache size
|
|
||||||
cache-size = 1000;
|
|
||||||
# Don't read /etc/hosts
|
|
||||||
no-hosts = true;
|
|
||||||
# Don't poll /etc/resolv.conf
|
|
||||||
no-poll = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable PHP-FPM
|
|
||||||
# phpfpm = {
|
|
||||||
# pools.www = {
|
|
||||||
# user = "javi";
|
|
||||||
# group = "users";
|
|
||||||
# settings = {
|
|
||||||
# "listen.owner" = "javi";
|
|
||||||
# "listen.group" = "users";
|
|
||||||
# "listen.mode" = "0660";
|
|
||||||
# "pm" = "dynamic";
|
|
||||||
# "pm.max_children" = 32;
|
|
||||||
# "pm.start_servers" = 2;
|
|
||||||
# "pm.min_spare_servers" = 2;
|
|
||||||
# "pm.max_spare_servers" = 4;
|
|
||||||
# "pm.max_requests" = 500;
|
|
||||||
# };
|
|
||||||
# phpEnv."PATH" = lib.makeBinPath [ pkgs.php ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Enable Caddy
|
|
||||||
caddy = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.frankenphp;
|
|
||||||
globalConfig = ''
|
|
||||||
auto_https off
|
|
||||||
frankenphp
|
|
||||||
debug
|
|
||||||
order php_server before file_server
|
|
||||||
'';
|
|
||||||
/*
|
|
||||||
WORKING CONFIG
|
|
||||||
map {host} {pname} {
|
|
||||||
~^(.+)\.test$ $1
|
|
||||||
default "unknown"
|
|
||||||
}
|
|
||||||
root * /home/javi/projects/{pname}/public
|
|
||||||
|
|
||||||
# Add file server directive with browse enabled for debugging
|
|
||||||
file_server browse
|
|
||||||
|
|
||||||
# Or for PHP apps, add try_files
|
|
||||||
try_files {path} {path}/ /index.php?{query}
|
|
||||||
|
|
||||||
php_server
|
|
||||||
*/
|
|
||||||
extraConfig = ''
|
|
||||||
# Specific subdomain first (more specific routes come first)
|
|
||||||
http://caddytest.test {
|
|
||||||
respond "fuck"
|
|
||||||
}
|
|
||||||
|
|
||||||
http://*.test, http://*.*.test {
|
|
||||||
map {host} {project_dir} {
|
|
||||||
~^(.+)\.test$ $1
|
|
||||||
default "unknown"
|
|
||||||
}
|
|
||||||
|
|
||||||
vars base_path "/home/javi/projects/{project_dir}"
|
|
||||||
|
|
||||||
@laravel file {
|
|
||||||
root {vars.base_path}/public
|
|
||||||
try_files index.php
|
|
||||||
}
|
|
||||||
|
|
||||||
@jigsaw file {
|
|
||||||
root {vars.base_path}/build_local
|
|
||||||
try_files index.html
|
|
||||||
}
|
|
||||||
|
|
||||||
handle @laravel {
|
|
||||||
root * {vars.base_path}/public
|
|
||||||
php_server
|
|
||||||
file_server
|
|
||||||
|
|
||||||
try_files {path} {path}/ /index.php?{query}
|
|
||||||
}
|
|
||||||
|
|
||||||
handle @jigsaw {
|
|
||||||
root * {vars.base_path}/build_local
|
|
||||||
try_files {path} {path}/ /index.html
|
|
||||||
file_server
|
|
||||||
}
|
|
||||||
|
|
||||||
handle {
|
|
||||||
respond "Unknown project type"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure system to use local dnsmasq for .test domains
|
|
||||||
resolved = {
|
|
||||||
enable = true;
|
|
||||||
domains = [ "~test" ];
|
|
||||||
fallbackDns = [
|
|
||||||
"10.89.0.1"
|
|
||||||
# "8.8.8.8"
|
|
||||||
# "1.1.1.1"
|
|
||||||
];
|
|
||||||
extraConfig = ''
|
|
||||||
DNS=127.0.0.1#53
|
|
||||||
Domains=~test
|
|
||||||
DNSSEC=false
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Install PHP and related packages
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
# Add common PHP extensions you might need
|
|
||||||
php84Extensions.mbstring
|
|
||||||
php84Extensions.xml
|
|
||||||
php84Extensions.curl
|
|
||||||
php84Extensions.zip
|
|
||||||
php84Extensions.gd
|
|
||||||
php84Extensions.intl
|
|
||||||
php84Extensions.bcmath
|
|
||||||
php84Extensions.soap
|
|
||||||
php84Extensions.mysqli
|
|
||||||
php84Extensions.pdo_mysql
|
|
||||||
php84Extensions.pgsql
|
|
||||||
php84Extensions.pdo_sqlite
|
|
||||||
];
|
|
||||||
|
|
||||||
# Create a dedicated caddy config directory
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d /var/lib/caddy 0755 javi users -"
|
|
||||||
];
|
|
||||||
|
|
||||||
systemd.services.caddy = {
|
|
||||||
serviceConfig = {
|
|
||||||
User = lib.mkForce "javi";
|
|
||||||
Group = lib.mkForce "users";
|
|
||||||
|
|
||||||
ProtectHome = lib.mkForce false; # This is key!
|
|
||||||
ProtectSystem = lib.mkForce false;
|
|
||||||
PrivateTmp = lib.mkForce false;
|
|
||||||
|
|
||||||
# More comprehensive capabilities
|
|
||||||
AmbientCapabilities = [
|
|
||||||
"CAP_NET_BIND_SERVICE"
|
|
||||||
"CAP_SETUID"
|
|
||||||
"CAP_SETGID"
|
|
||||||
];
|
|
||||||
CapabilityBoundingSet = [
|
|
||||||
"CAP_NET_BIND_SERVICE"
|
|
||||||
"CAP_SETUID"
|
|
||||||
"CAP_SETGID"
|
|
||||||
];
|
|
||||||
# Keep it simple - just set the config directory
|
|
||||||
Environment = [ "XDG_CONFIG_HOME=/var/lib/caddy" ];
|
|
||||||
# Ensure the working directory is accessible
|
|
||||||
WorkingDirectory = "/var/lib/caddy";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# And make sure your user is in the caddy group
|
|
||||||
users.users.javi = {
|
|
||||||
extraGroups = [
|
|
||||||
"users"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
1
result
Symbolic link
1
result
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/nix/store/cy863mrchnaj8v0y419jc7hnwrll43z9-walker-0.13.14
|
16
system/de/hypr/hyprland.nix
Normal file
16
system/de/hypr/hyprland.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Install hyprland and all the stuff it needs
|
||||||
|
programs.hyprland.enable = true;
|
||||||
|
environment.sessionVariables.NIXOS_OZON_WL = "1";
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
hyprlock
|
||||||
|
];
|
||||||
|
}
|
49
system/de/sddm.nix
Normal file
49
system/de/sddm.nix
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
basePath = "/home/javi/Documents/wallpapers";
|
||||||
|
wallpaper = "Fantasy-Mountain.png";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.etc."sddm-wallpaper.png".source = ../../assets/sddm-background.png;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
(sddm-chili-theme.override {
|
||||||
|
themeConfig = {
|
||||||
|
background = "/etc/sddm-wallpaper.png";
|
||||||
|
ScreenWidth = "3440";
|
||||||
|
ScreenHeight = "1440";
|
||||||
|
recursiveBlurLoops = 1;
|
||||||
|
recursiveBlurRadius = 10;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
libsForQt5.qt5.qtgraphicaleffects
|
||||||
|
papirus-icon-theme
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
environment.etc."gtk-3.0/settings.ini".text = ''
|
||||||
|
[Settings]
|
||||||
|
gtk-icon-theme-name=Papirus
|
||||||
|
gtk-theme-name=Adwaita
|
||||||
|
gtk-cursor-theme-name=Adwaita
|
||||||
|
'';
|
||||||
|
|
||||||
|
services.displayManager.sddm = {
|
||||||
|
enable = true;
|
||||||
|
wayland.enable = true;
|
||||||
|
theme = "chili";
|
||||||
|
autoNumlock = true;
|
||||||
|
package = pkgs.libsForQt5.sddm;
|
||||||
|
extraPackages = with pkgs.libsForQt5.qt5; [
|
||||||
|
qtgraphicaleffects
|
||||||
|
qtquickcontrols2
|
||||||
|
qtquickcontrols
|
||||||
|
qtsvg
|
||||||
|
qtdeclarative # QtQuick core
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
nasIp = "10.89.0.15";
|
nasIp = "10.89.0.15";
|
||||||
@ -7,11 +7,10 @@ let
|
|||||||
"backups"
|
"backups"
|
||||||
"container-data"
|
"container-data"
|
||||||
"javi"
|
"javi"
|
||||||
"xrandr"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
configureShare = share: {
|
configureShare = share: {
|
||||||
name = "/home/javi/network-shares/${share}";
|
name = "/mnt/${share}";
|
||||||
value = {
|
value = {
|
||||||
device = "${nasIp}:${baseMnt}/${share}";
|
device = "${nasIp}:${baseMnt}/${share}";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
@ -20,6 +19,11 @@ let
|
|||||||
"noauto"
|
"noauto"
|
||||||
"rw"
|
"rw"
|
||||||
"vers=4"
|
"vers=4"
|
||||||
|
|
||||||
|
# make Nautilus/Dolphin/Any File Manager show it with a friendly name/icon
|
||||||
|
"x-gvfs-show"
|
||||||
|
"x-gvfs-name=NAS — ${share}"
|
||||||
|
"x-gvfs-icon=network-server"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -29,19 +33,7 @@ let
|
|||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Enable NFS client support
|
services.gvfs.enable = true;
|
||||||
boot.supportedFilesystems = [ "nfs" ];
|
services.udisks2.enable = true;
|
||||||
services = {
|
|
||||||
rpcbind.enable = true; # Required for NFS
|
|
||||||
gvfs.enable = true;
|
|
||||||
udisks2.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Add NFS utilities
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
nfs-utils
|
|
||||||
];
|
|
||||||
|
|
||||||
fileSystems = fsConfig;
|
fileSystems = fsConfig;
|
||||||
systemd.tmpfiles.rules = map (share: "d /mnt/${share} 0755 root root -") shares;
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user