alejandra, nix lsp

This commit is contained in:
tulg 2025-10-20 22:09:41 +03:00
parent d44a2ff849
commit a4e5b89f0e
3 changed files with 157 additions and 151 deletions

View file

@ -23,15 +23,20 @@
}; };
}; };
outputs = { self, nixpkgs, home-manager, nix-colors, disko, ... } @ inputs: outputs = {
let self,
nixpkgs,
home-manager,
nix-colors,
disko,
...
} @ inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
in in {
{
nixosConfigurations.virgil = nixpkgs.lib.nixosSystem { nixosConfigurations.virgil = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};

View file

@ -1,18 +1,18 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, self, ... }:
{ {
imports = config,
[ # Include the results of the hardware scan. pkgs,
self,
...
}: {
imports = [
# Include the results of the hardware scan.
# ./disko.nix # ./disko.nix
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@ -116,7 +116,6 @@
}; };
}; };
powerManagement.powertop.enable = true; powerManagement.powertop.enable = true;
services = { services = {
power-profiles-daemon.enable = false; power-profiles-daemon.enable = false;
@ -152,5 +151,4 @@
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
services.displayManager.ly.enable = true; services.displayManager.ly.enable = true;
system.stateVersion = "25.05"; # Did you read the comment? system.stateVersion = "25.05"; # Did you read the comment?
} }

View file

@ -1,17 +1,20 @@
{ config, lib, pkgs, inputs, ... }: {
config,
let lib,
pkgs,
inputs,
...
}: let
dots = "${config.home.homeDirectory}/nixdots/config"; dots = "${config.home.homeDirectory}/nixdots/config";
symlink = path: config.lib.file.mkOutOfStoreSymlink path; symlink = path: config.lib.file.mkOutOfStoreSymlink path;
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.system}; spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.system};
in in {
{
imports = [ imports = [
inputs.zen-browser.homeModules.twilight inputs.zen-browser.homeModules.twilight
inputs.spicetify-nix.homeManagerModules.default inputs.spicetify-nix.homeManagerModules.default
]; ];
# Home Manager settings # Home Manager settings
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
home.username = "tulg"; home.username = "tulg";
home.homeDirectory = "/home/tulg"; home.homeDirectory = "/home/tulg";
home.stateVersion = "25.05"; home.stateVersion = "25.05";
@ -21,6 +24,7 @@ in
nwg-look nwg-look
rose-pine-gtk-theme rose-pine-gtk-theme
xfce.thunar xfce.thunar
alejandra
arc-theme arc-theme
tmux tmux
fastfetch fastfetch
@ -32,6 +36,7 @@ in
parsec-bin parsec-bin
file-roller file-roller
hyprpolkitagent hyprpolkitagent
pkgs.nixd
swww swww
grim grim
slurp slurp
@ -94,6 +99,7 @@ in
shellAliases = { shellAliases = {
a = "echo ids"; a = "echo ids";
rb = "nixos-rebuild switch --flake";
}; };
bashrcExtra = '' bashrcExtra = ''
@ -119,11 +125,8 @@ in
name = "Papirus-Dark"; name = "Papirus-Dark";
package = pkgs.papirus-icon-theme; package = pkgs.papirus-icon-theme;
}; };
}; };
home.pointerCursor = { home.pointerCursor = {
gtk.enable = true; gtk.enable = true;
x11.enable = true; x11.enable = true;