update, drop --impure

This commit is contained in:
Varris 2023-05-15 22:06:28 +02:00
parent fbde6c080d
commit bd24a0c8ae
17 changed files with 85 additions and 123 deletions

View File

@ -10,8 +10,6 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
hardware.firmware = [ pkgs.customedid ];
boot = { boot = {
kernelParams = kernelParams =
[ [
@ -19,11 +17,6 @@
"net.ifnames=0" "net.ifnames=0"
]; ];
extraModprobeConfig = ''
options iwlmvm power_scheme=1
options iwlwifi power_save=0
'';
loader = { loader = {
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;
@ -87,6 +80,7 @@
}; };
chaotic.mesa-git.enable = true; # requires --impure for now chaotic.mesa-git.enable = true; # requires --impure for now
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
extraPackages = [ pkgs.libvdpau-va-gl ]; extraPackages = [ pkgs.libvdpau-va-gl ];
@ -96,6 +90,8 @@
}; };
hardware.steam-hardware.enable = true; hardware.steam-hardware.enable = true;
programs.steam.enable = true;
chaotic.steam.extraCompatPackages = with pkgs; [ luxtorpeda proton-ge-custom ];
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.sane = { hardware.sane = {
@ -190,7 +186,7 @@
}; };
printing = { printing = {
enable = false; enable = true;
drivers = [ pkgs.cnijfilter2 ]; drivers = [ pkgs.cnijfilter2 ];
}; };

View File

@ -47,11 +47,11 @@
"yuzu-ea-git-src": "yuzu-ea-git-src" "yuzu-ea-git-src": "yuzu-ea-git-src"
}, },
"locked": { "locked": {
"lastModified": 1684156567, "lastModified": 1684180667,
"narHash": "sha256-1Yb3wAj2U8RFaVrjz9LiUJovCH7HP4lty7jR2DT8S64=", "narHash": "sha256-UO54GUkaEN+IsVMa/jWKZqHs3i2/L80aD4B8H6nqXFo=",
"owner": "chaotic-aur", "owner": "chaotic-aur",
"repo": "nyx", "repo": "nyx",
"rev": "098f1d05009e98953ce0fe9a989648d5efe67d3f", "rev": "f4fc92c3559f71fd55c00069f9eafb2ab1938b57",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -149,8 +149,6 @@
visualizerSupport = true; visualizerSupport = true;
}; };
customedid = pkgs.callPackage ./pkgs/custom-edid { };
wxedid = pkgs.callPackage ./pkgs/wxedid { };
}; };
nixosConfigurations.terra = nixpkgs.lib.nixosSystem nixosConfigurations.terra = nixpkgs.lib.nixosSystem
@ -164,7 +162,7 @@
nix.nixPath = [ "nixpkgs=${nixpkgs}" ]; nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
nix.registry = { nixpkgs.flake = nixpkgs; }; nix.registry = { nixpkgs.flake = nixpkgs; };
} }
./system/configuration.nix ./configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager = { home-manager = {

View File

@ -1,18 +0,0 @@
{ stdenvNoCC, lib }:
stdenvNoCC.mkDerivation rec {
pname = "edid-main-monitor";
version = "1";
edid = ./edid.bin;
dontFixup = true;
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/lib/firmware/edid
cp ${edid} $out/lib/firmware/edid/edid-EX2780Q.bin
'';
}

Binary file not shown.

View File

@ -1,16 +0,0 @@
{ lib, stdenv, fetchurl, wxGTK32 }:
stdenv.mkDerivation rec {
pname = "wxedid";
version = "0.0.27";
src = fetchurl {
url = "https://downloads.sourceforge.net/${pname}/${pname}-${version}.tar.gz";
sha256 = "KBIGrzsJ40TEsz+kJQZi9BPPFPITfVRrTlc1FYqdFfo=";
};
postPatch = ''
patchShebangs --build src/rcode/rcd_autogen
'';
buildInputs = [ wxGTK32 ];
}

View File

@ -1,63 +1,58 @@
{ config, pkgs, inputs, ... }: { { config, pkgs, inputs, ... }:
programs.exa = { {
enable = true; programs.exa = {
enableAliases = true; enable = true;
}; enableAliases = true;
programs.fish = {
enable = true;
plugins = [
{
name = "bobthefish";
src = inputs.bobthefish;
}
];
interactiveShellInit = ''
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
set -g theme_color_scheme gruvbox
set -g theme_nerd_fonts yes
set -g theme_display_git_default_branch yes
set -g theme_git_default_branches master main
'';
# loginShellInit = ''
# if test (tty) = "/dev/tty1"
# ${pkgs.sway}/bin/sway &> ~/.sway.log
# end
#'';
functions = {
fish_greeting = "";
ec = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
nvim "+Telescope find_files"
popd
'';
nor = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
doas nixos-rebuild switch --flake .# --impure
popd &> /dev/null
'';
nou = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
nix flake lock --commit-lock-file --update-input nixpkgs --update-input home-manager --update-input hyprland --update-input chaotic-nyx
doas nixos-rebuild switch --upgrade --flake .# --impure
popd &> /dev/null
'';
}; };
shellAliases = {
nf = "${pkgs.pfetch}/bin/pfetch"; programs.fish = {
e = "${pkgs.neovim}/bin/nvim"; enable = true;
plugins = [
{
name = "bobthefish";
src = inputs.bobthefish;
}
];
interactiveShellInit = ''
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
set -g theme_color_scheme gruvbox
set -g theme_nerd_fonts yes
set -g theme_display_git_default_branch yes
set -g theme_git_default_branches master main
'';
functions = {
fish_greeting = "";
ec = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
nvim "+Telescope find_files"
popd
'';
nor = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
doas nixos-rebuild switch --flake .#
popd &> /dev/null
'';
nou = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
nix flake lock --commit-lock-file --update-input nixpkgs --update-input home-manager --update-input hyprland --update-input chaotic-nyx
doas nixos-rebuild switch --upgrade --flake .#
popd &> /dev/null
'';
};
shellAliases = {
nf = "${pkgs.pfetch}/bin/pfetch";
e = "${pkgs.neovim}/bin/nvim";
};
}; };
};
} }

View File

@ -14,6 +14,7 @@
neo-tree-nvim neo-tree-nvim
nvim-notify nvim-notify
nvim-treesitter.withAllGrammars nvim-treesitter.withAllGrammars
which-key-nvim
telescope-nvim telescope-nvim
telescope-fzf-native-nvim telescope-fzf-native-nvim

View File

@ -11,6 +11,7 @@ vim.o.termguicolors = true
vim.o.ignorecase = true vim.o.ignorecase = true
vim.o.smartcase = true vim.o.smartcase = true
vim.o.lazyredraw = true vim.o.lazyredraw = true
vim.o.timeoutlen = 100
vim.wo.number = true vim.wo.number = true
vim.wo.relativenumber = true vim.wo.relativenumber = true
@ -26,9 +27,9 @@ require("lualine").setup({
require("bufferline").setup({ require("bufferline").setup({
options = { options = {
separator_style = "slant",
show_tab_indicators = true, show_tab_indicators = true,
} separator_style = { "", "" },
},
}) })
require("colorizer").setup() require("colorizer").setup()
@ -75,11 +76,16 @@ require("nvim-treesitter.configs").setup({
highlight = { enable = true, }, highlight = { enable = true, },
}) })
require("which-key").setup()
local builtin = require("telescope.builtin") local builtin = require("telescope.builtin")
vim.keymap.set('n', '<leader>ff', builtin.find_files, {}) vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = "Find Files" })
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {}) vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = "Live Grep" })
vim.keymap.set('n', '<leader>fb', builtin.buffers, {}) vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = "List Buffers" })
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {}) vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = "Help Tags" })
vim.keymap.set('n', '<leader>fc', builtin.git_files, { desc = "Find Files (Git)" })
require("telescope").load_extension("fzf")
local cmp = require("cmp") local cmp = require("cmp")
local lspkind = require("lspkind") local lspkind = require("lspkind")

View File

@ -11,6 +11,8 @@ in
font = "JetBrainsMono Nerd Font:pixelsize=12"; font = "JetBrainsMono Nerd Font:pixelsize=12";
box-drawings-uses-font-glyphs = "yes"; box-drawings-uses-font-glyphs = "yes";
pad = "16x16 center"; pad = "16x16 center";
horizontal-letter-offset = "0";
vertical-letter-offset = "0";
}; };
colors = { colors = {

View File

@ -58,11 +58,11 @@ in
{ {
imports = [ imports = [
inputs.hyprland.homeManagerModules.default inputs.hyprland.homeManagerModules.default
./waybar.nix ../waybar
./foot.nix ../foot
./wob.nix ../wob
./fuzzel.nix ../fuzzel
./mako.nix ../mako
]; ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {

View File

@ -7,7 +7,7 @@ in
nix-colors.homeManagerModule nix-colors.homeManagerModule
./configs/beets ./configs/beets
./configs/cava ./configs/cava
./configs/wayland/hyprland.nix ./configs/wayland/hyprland
./configs/fish ./configs/fish
./configs/mpd ./configs/mpd
./configs/mpv ./configs/mpv
@ -48,9 +48,7 @@ in
sc-im sc-im
signal-desktop signal-desktop
sshfs sshfs
steam
steam-run steam-run
steamtinkerlaunch
sxiv sxiv
thunderbird thunderbird
tldr tldr
@ -60,7 +58,6 @@ in
vulkan-validation-layers vulkan-validation-layers
webcord-vencord webcord-vencord
wineWowPackages.stagingFull wineWowPackages.stagingFull
wxedid
xdg-utils xdg-utils
xivlauncher xivlauncher
qbittorrent qbittorrent
@ -70,6 +67,7 @@ in
EDITOR = "nvim"; EDITOR = "nvim";
MESA_DISK_CACHE_SINGLE_FILE = "1"; MESA_DISK_CACHE_SINGLE_FILE = "1";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
NIXPKGS_ALLOW_UNFREE = "1";
RADV_PERFTEST = "gpl"; RADV_PERFTEST = "gpl";
WINEDLLOVERRIDES = "winemenubuilder.exe=d"; WINEDLLOVERRIDES = "winemenubuilder.exe=d";
XDG_SCREENSHOTS_DIR = "~/Screenshots"; XDG_SCREENSHOTS_DIR = "~/Screenshots";