2023-10-18 13:50:00 -04:00
|
|
|
{ config
|
|
|
|
, home-manager
|
|
|
|
, lib
|
|
|
|
, nixpkgs
|
2023-10-20 11:22:20 -04:00
|
|
|
, nixpkgs-wayland
|
2023-10-18 13:50:00 -04:00
|
|
|
, nur
|
|
|
|
, nix-melt
|
|
|
|
, nurl
|
|
|
|
, pkgs
|
|
|
|
, ...
|
|
|
|
}: {
|
2023-10-15 14:43:23 -04:00
|
|
|
imports = [
|
|
|
|
home-manager.nixosModules.default
|
2023-10-15 16:05:28 -04:00
|
|
|
./modules/programs.nix
|
2023-10-15 16:47:26 -04:00
|
|
|
./modules/locale.nix
|
2023-10-18 12:35:53 -04:00
|
|
|
./overlays
|
2023-10-18 13:50:00 -04:00
|
|
|
|
|
|
|
./hostvars.nix
|
2023-10-15 14:43:23 -04:00
|
|
|
];
|
|
|
|
|
2023-10-15 13:30:21 -04:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
# Edit nix.conf
|
|
|
|
settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
keep-outputs = true;
|
|
|
|
keep-derivations = true;
|
|
|
|
auto-optimise-store = true;
|
|
|
|
warn-dirty = false;
|
2023-10-20 10:20:12 -04:00
|
|
|
|
|
|
|
# Cachix
|
|
|
|
substituters = [
|
|
|
|
"https://hyprland.cachix.org"
|
|
|
|
"https://nix-gaming.cachix.org"
|
2023-10-20 11:22:20 -04:00
|
|
|
# Nixpkgs-Wayland
|
|
|
|
"https://cache.nixos.org"
|
|
|
|
"https://nixpkgs-wayland.cachix.org"
|
2023-10-20 11:38:12 -04:00
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
# Neovim and stuff
|
|
|
|
"https://nix-community.cachix.org"
|
2023-10-20 10:20:12 -04:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
|
|
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
2023-10-20 11:22:20 -04:00
|
|
|
# Nixpkgs-Wayland
|
|
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
|
|
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
|
2023-10-20 11:38:12 -04:00
|
|
|
# Neovim and stuff
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
2023-10-20 10:20:12 -04:00
|
|
|
];
|
2023-10-15 13:30:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
# Minimize dowloads of indirect nixpkgs flakes
|
|
|
|
registry.nixpkgs = {
|
|
|
|
flake = nixpkgs;
|
|
|
|
exact = false;
|
|
|
|
};
|
|
|
|
};
|
2023-10-20 11:22:20 -04:00
|
|
|
nixpkgs.overlays = [ nixpkgs-wayland.overlay ];
|
2023-10-15 13:30:21 -04:00
|
|
|
|
2023-10-17 17:53:10 -04:00
|
|
|
services.xserver = {
|
|
|
|
layout = "ca";
|
|
|
|
xkbVariant = "multix";
|
|
|
|
};
|
|
|
|
|
2023-10-15 14:30:30 -04:00
|
|
|
home-manager.users = let
|
|
|
|
default = {
|
|
|
|
imports = [
|
2023-10-15 14:43:23 -04:00
|
|
|
nur.hmModules.nur
|
2023-10-15 14:37:57 -04:00
|
|
|
./modules/bash
|
2023-10-18 14:54:24 -04:00
|
|
|
./modules/git.nix
|
2023-10-15 16:41:34 -04:00
|
|
|
./modules/neovim
|
2023-10-18 14:54:24 -04:00
|
|
|
./modules/tmux.nix
|
2023-10-18 13:50:00 -04:00
|
|
|
|
|
|
|
./hostvars.nix
|
|
|
|
({ osConfig, ... }: {
|
|
|
|
services.hostvars = osConfig.services.hostvars;
|
|
|
|
})
|
2023-10-15 14:30:30 -04:00
|
|
|
];
|
2023-10-15 15:31:49 -04:00
|
|
|
|
|
|
|
home.packages = [
|
|
|
|
nix-melt.packages.x86_64-linux.default
|
|
|
|
nurl.packages.x86_64-linux.default
|
|
|
|
] ++
|
|
|
|
|
|
|
|
(with config.nur.repos.rycee; [
|
|
|
|
mozilla-addons-to-nix
|
|
|
|
]) ++
|
|
|
|
|
|
|
|
(with pkgs.nodePackages; [
|
|
|
|
undollar
|
|
|
|
]) ++
|
|
|
|
|
|
|
|
(with pkgs; [
|
2023-10-15 16:47:26 -04:00
|
|
|
dracula-theme
|
2023-10-15 15:31:49 -04:00
|
|
|
neofetch
|
|
|
|
progress
|
|
|
|
wget
|
|
|
|
tree
|
|
|
|
mosh
|
|
|
|
rsync
|
|
|
|
killall
|
|
|
|
imagemagick
|
|
|
|
usbutils
|
|
|
|
]);
|
|
|
|
|
2023-10-15 14:30:30 -04:00
|
|
|
home.stateVersion = lib.mkDefault "23.05";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
root = default;
|
|
|
|
matt = default;
|
|
|
|
};
|
2023-10-15 14:43:23 -04:00
|
|
|
}
|