move config to hosts dir

This commit is contained in:
smayzy
2025-06-28 13:03:17 +00:00
parent c071661133
commit d08dd1bed0
4 changed files with 17 additions and 17 deletions
+195
View File
@@ -0,0 +1,195 @@
{ inputs, config, pkgs, lib, ... }:
{
imports =
[
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
../../modules/nix/pipewire.nix
../../modules/nix/locales.nix
../../modules/nix/nvidia.nix
];
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = {
smayzy = import ./home.nix;
};
backupFileExtension = "backup";
};
system.stateVersion = "24.11";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
boot.loader.grub.enable = true;
boot.loader.grub.efiSupport = true;
boot.loader.grub.device = "nodev";
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.extraEntries = ''
menuentry "Archlinux" {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 07CA-4966
chainloader /EFI/BOOT/BOOTX64.EFI
}
'';
networking.hostName = "desktop1";
networking.networkmanager.enable = true;
users.users.smayzy = {
isNormalUser = true;
description = "smayzy";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
users.defaultUserShell = pkgs.zsh;
services.xserver.xkb = {
layout = "fr";
variant = "";
};
console.keyMap = "fr";
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-unwrapped"
"steam-run"
"obsidian"
"nvidia-x11"
"nvidia-settings"
];
programs.steam.enable = true;
environment.systemPackages = with pkgs; [
home-manager
wget
kitty
tldr
fastfetch
tree
mako
wofi
wlogout
waybar
wl-clipboard
libnotify
hyprpaper
font-awesome
dig
btop
webcord
pavucontrol
thunderbird
lf
fzf
qemu
cliphist
file
obsidian
qalculate-qt
baobab
arduino-ide
piper
samrewritten
element-desktop
calibre
vlc
loupe
gimp3
mullvad-vpn
libsForQt5.kdenlive
prismlauncher
floorp
libreoffice-qt6-still
hunspellDicts.fr-any
base16-schemes
tor
wireshark
tshark
komikku
librewolf
freecad-wayland
aegisub
blender
inkscape
audacity
mpv
vim
];
stylix.enable = true;
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/dracula.yaml";
programs.virt-manager.enable = true;
users.groups.libvirtd.members = ["smayzy"];
virtualisation.libvirtd.enable = true;
programs.fzf.keybindings = true;
services.flatpak = {
enable = true;
update.onActivation = true;
packages = [
"com.heroicgameslauncher.hgl"
"com.github.tchx84.Flatseal"
"com.obsproject.Studio"
"com.usebottles.bottles"
"it.mijorus.gearlever"
];
};
programs.firefox.enable = true;
programs.zsh.enable = true;
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 30d --keep 10";
flake = "/home/smayzy/nix-config";
};
programs.nvf = {
enable = true;
settings = {
vim = {
viAlias = false;
vimAlias = true;
lsp = {
enable = true;
};
languages = {
nix.enable = true;
clang.enable = true;
rust.enable = true;
};
theme = {
enable = true;
name = lib.mkDefault "dracula";
};
statusline.lualine.enable = true;
telescope.enable = true;
autocomplete.nvim-cmp.enable = true;
};
};
};
}
+30
View File
@@ -0,0 +1,30 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/976bcf9c-3b56-4aa6-98f8-1c899af2b0f8";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/8E7F-2417";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+101
View File
@@ -0,0 +1,101 @@
{ config, pkgs, inputs, ... }:
{
imports =
[
../../modules/home-manager/webapps.nix
../../modules/home-manager/lf/lf.nix
];
home.username = "smayzy";
home.homeDirectory = "/home/smayzy";
home.stateVersion = "25.05";
home.packages = [
];
home.file = {
".config/fastfetch" = {
source = builtins.toPath ../../dotfiles/fastfetch;
recursive = true;
force = true;
};
".config/kitty/kitty.conf" = {
source = builtins.toPath ../../dotfiles/kitty.conf;
force = true;
};
".config/hypr" = {
source = builtins.toPath ../../dotfiles/hypr-desk;
recursive = true;
force = true;
};
".config/mako/config" = {
source = builtins.toPath ../../dotfiles/mako/config;
force = true;
};
".config/waybar" = {
source = builtins.toPath ../../dotfiles/waybar-desk;
recursive = true;
force = true;
};
".config/wofi" = {
source = builtins.toPath ../../dotfiles/wofi;
recursive = true;
force = true;
};
".config/wlogout" = {
source = builtins.toPath ../../dotfiles/wlogout-desk;
recursive = true;
force = true;
};
"wallpaper" = {
source = builtins.toPath ../../wallpapers;
recursive = true;
force = true;
};
};
home.sessionVariables = {
EDITOR = "vim";
GTK_THEME = "Adwaita:dark";
};
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history.size = 100000;
shellAliases = {
config = "cd ~/nix-config";
};
};
programs.git = {
enable = true;
userName = "smayzy";
userEmail = "smayzy@smayzy.ovh";
extraConfig = {
core.editor = "vim";
core.autocrlf = "input";
};
};
programs.firefox = {
enable = true;
policies = {
OverridePostfix = "no-gtk-theme";
};
};
stylix.autoEnable = false;
programs.home-manager.enable = true;
}