diff options
Diffstat (limited to '')
| -rw-r--r-- | home-manager/electron_overlay.nix | 25 | ||||
| -rw-r--r-- | home-manager/flake.lock | 117 | ||||
| -rw-r--r-- | home-manager/flake.nix | 59 | ||||
| -rw-r--r-- | home-manager/fmod/default.nix | 29 | ||||
| -rw-r--r-- | home-manager/home.nix | 218 | ||||
| -rw-r--r-- | home-manager/home/default.nix | 17 | ||||
| -rw-r--r-- | home-manager/home/session_vars.nix | 15 | ||||
| -rw-r--r-- | home-manager/home/theming.nix (renamed from home-manager/theming.nix) | 1 | ||||
| -rw-r--r-- | home-manager/kitty.nix | 0 | ||||
| -rw-r--r-- | home-manager/modules/apps/default.nix | 54 | ||||
| -rw-r--r-- | home-manager/modules/apps/desktop/default.nix | 3 | ||||
| -rw-r--r-- | home-manager/modules/apps/desktop/hyprland.nix (renamed from home-manager/hyprland.nix) | 11 | ||||
| -rw-r--r-- | home-manager/modules/apps/nvim/default.nix | 4 | ||||
| -rw-r--r-- | home-manager/modules/apps/zsh.nix | 24 | ||||
| -rw-r--r-- | home-manager/modules/default.nix | 8 | ||||
| -rw-r--r-- | home-manager/modules/services/default.nix | 3 | ||||
| -rw-r--r-- | home-manager/modules/services/syncthing.nix (renamed from home-manager/syncthing.nix) | 0 | ||||
| -rw-r--r-- | home-manager/neovim.nix | 94 | ||||
| -rw-r--r-- | home-manager/xdg.nix | 9 |
19 files changed, 313 insertions, 378 deletions
diff --git a/home-manager/electron_overlay.nix b/home-manager/electron_overlay.nix deleted file mode 100644 index d91eba0..0000000 --- a/home-manager/electron_overlay.nix +++ /dev/null @@ -1,25 +0,0 @@ -self: -let - enableWayland = drv: bin: drv.overrideAttrs ( - old: { - nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ self.makeWrapper ]; - postFixup = (old.postFixup or "") + '' - wrapProgram $out/bin/${bin} \ - --add-flags "--enable-features=UseOzonePlatform" \ - --add-flags "--ozone-platform=wayland" - ''; - } - ); -in -super: - { - # slack = enableWayland super.slack "slack"; - discord = enableWayland super.discord "discord"; - vencord = enableWayland super.vesktop "vesktop"; - # vscode = enableWayland super.vscode "code"; - # google-chrome-beta = ( - # super.google-chrome-beta.override { - # commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland"; - # } - # ); - } diff --git a/home-manager/flake.lock b/home-manager/flake.lock new file mode 100644 index 0000000..0f1ec4d --- /dev/null +++ b/home-manager/flake.lock @@ -0,0 +1,117 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1742655702, + "narHash": "sha256-jbqlw4sPArFtNtA1s3kLg7/A4fzP4GLk9bGbtUJg0JQ=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "0948aeedc296f964140d9429223c7e4a0702a1ff", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "release-24.11", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1742751704, + "narHash": "sha256-rBfc+H1dDBUQ2mgVITMGBPI1PGuCznf9rcWX/XIULyE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "f0946fa5f1fb876a9dc2e1850d9d3a4e3f914092", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1742751704, + "narHash": "sha256-rBfc+H1dDBUQ2mgVITMGBPI1PGuCznf9rcWX/XIULyE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "f0946fa5f1fb876a9dc2e1850d9d3a4e3f914092", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1742889210, + "narHash": "sha256-hw63HnwnqU3ZQfsMclLhMvOezpM7RSB0dMAtD5/sOiw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "698214a32beb4f4c8e3942372c694f40848b360d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "home-manager": "home-manager", + "nixpkgs": "nixpkgs", + "nixpkgs-stable": "nixpkgs-stable", + "nixpkgs-unstable": "nixpkgs-unstable" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/home-manager/flake.nix b/home-manager/flake.nix new file mode 100644 index 0000000..f68b20f --- /dev/null +++ b/home-manager/flake.nix @@ -0,0 +1,59 @@ +{ + description = "Home-manager configuration"; + + nixConfig = { + experimental-feature = ["nix-command" "flakes"]; + }; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.11"; + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + home-manager = { + url = "github:nix-community/home-manager/release-24.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + + + outputs = {self, nixpkgs, nixpkgs-stable, nixpkgs-unstable, flake-utils, home-manager, ... }@inputs: + let + inherit (self) outputs; + + pkgsForSystem = system: nixpkgsSource: import nixpkgsSource { + inherit system; + }; + HomeConfiguration = args: + let + nixpkgs = args.nixpkgs or nixpkgs-stable; + in + home-manager.lib.homeManagerConfiguration { + modules = [ + (import ./home ) + (import ./modules ) + ]; + extraSpecialArgs = { + inherit (args) nixpkgs; + } // args.extraSpecialArgs; + pkgs = pkgsForSystem (args.system or "x86_64-linux") nixpkgs; + }; + + + in flake-utils.lib.eachSystem [ + "x86_64-linux" + ] (system: { + legacyPackages = pkgsForSystem system nixpkgs; + }) // { + # overlays = import ./overlays {inherit inputs;}; + homeConfigurations = { + "wilkuu" = HomeConfiguration { + extraSpecialArgs = { + }; + + }; + }; + inherit home-manager; + inherit (home-manager) packages; + }; +} diff --git a/home-manager/fmod/default.nix b/home-manager/fmod/default.nix deleted file mode 100644 index 1c9e942..0000000 --- a/home-manager/fmod/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{stdenv, fetchurl }: - -stdenv.mkDerivation { - name = "fmod-42204"; - src = if (stdenv.system == "i686-linux") then - fetchurl { - url = "http://www.fmod.org/index.php/release/version/fmodapi42204linux.tar.gz"; - sha256 = "64eedc5b37c597eb925de446106d75cab0b5a79697d5ec048d34702812c08563"; - } else if (stdenv.system == "x86_64-linux") then - fetchurl { - url = "http://www.fmod.org/index.php/release/version/fmodapi42204linux64.tar.gz"; - sha256 = "3f2eec8265838a1005febe07c4971660e85010e4622911890642dc438746edf3"; - } else throw "unsupported platform ${stdenv.system} (only i686-linux and x86_64 linux supported yet)"; - - preInstall = '' - sed -e /ldconfig/d -i Makefile - sed -e s@/usr/local@$out@ -i Makefile - sed -e s@/include/fmodex@/include@ -i Makefile - mkdir -p $out/lib - mkdir -p $out/include - ''; - - meta = { - homepage = "http://www.fmod.org/"; - description = "Programming library and toolkit for the creation and playback of interactive audio"; - license = "unfree"; - }; -} - diff --git a/home-manager/home.nix b/home-manager/home.nix deleted file mode 100644 index 243c6d1..0000000 --- a/home-manager/home.nix +++ /dev/null @@ -1,218 +0,0 @@ -{ config, pkgs, ... }: - -{ - imports = [ ./hyprland.nix ./syncthing.nix ./theming.nix ./neovim.nix ./xdg.nix]; - nixpkgs.config.allowUnfree = true; - nixpkgs.overlays = [ - (import ./electron_overlay.nix) - # (import (builtins.fetchTarball { - # url = "https://github.com/nix-community/neovim-nightly-overlay/archive/master.tar.gz"; - # })) - ]; - # Home Manager needs a bit of information about you and the paths it should - # manage. - home.username = "wilkuu"; - home.homeDirectory = "/home/wilkuu"; - - # 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 = "23.11"; # Please read the comment before changing. - - # The home.packages option allows you to install Nix packages into your - # environment. - home.packages = with pkgs; [ - # Environment - hyprpolkitagent - hyprsunset - xdg-desktop-portal-kde - xdg-desktop-portal-hyprland - minecraftia - inconsolata-nerdfont - # Utils - networkmanagerapplet - blueman - htop - pwvucontrol - wl-clipboard - xdg-user-dirs - hyprshot - mako - speedcrunch - unzip - ripgrep - glib - gwenview - - # Connectivity - firefox - floorp - thunderbird - element-desktop - - # File management - pcmanfm - xarchiver - filelight - ranger - libsForQt5.kdeconnect-kde - sshfs - - #Productivity - libreoffice-qt6-fresh - zathura - obsidian - - # Artistic - krita - kdenlive - - # Web - hugo - - # Scripting - python3 - - # php - php83Packages.composer - php - - # java - openjdk17-bootstrap - gradle - - # Shell - zsh - alacritty - - # Entertainment - spotify - prismlauncher - ani-cli - vlc - openttd - fluent-reader - - # Finance - gnucash - # SRS - anki-bin - mpv - - # Electronics - - gst_all_1.gstreamer - # Common plugins like "filesrc" to combine within e.g. gst-launch - gst_all_1.gst-plugins-base - # Specialized plugins separated by quality - gst_all_1.gst-plugins-good - gst_all_1.gst-plugins-bad - gst_all_1.gst-plugins-ugly - # Plugins to reuse ffmpeg to play almost every video format - gst_all_1.gst-libav - # Support the Video Audio (Hardware) Acceleration API - gst_all_1.gst-vaapi - - #Theme - qt6Packages.qt6ct - kdePackages.qtstyleplugin-kvantum - (catppuccin-kvantum.override { - accent = "pink"; - variant = "mocha"; - }) - - - # # Adds the 'hello' command to your environment. It prints a friendly - # # "Hello, world!" when run. - # pkgs.hello - - # # It is sometimes useful to fine-tune packages, for example, by applying - # # overrides. You can do that directly here, just don't forget the - # # parentheses. Maybe you want to install Nerd Fonts with a limited number of - # # fonts? - # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) - - # # You can also create simple shell scripts directly inside your - # # configuration. For example, this adds a command 'my-hello' to your - # # environment: - # (pkgs.writeShellScriptBin "my-hello" '' - # echo "Hello, ${config.home.username}!" - # '') - - ]; - - # Home Manager is pretty good at managing dotfiles. The primary way to manage - # plain files is through 'home.file'. - home.file = { - # # Building this configuration will create a copy of 'dotfiles/screenrc' in - # # the Nix store. Activating the configuration will then make '~/.screenrc' a - # # symlink to the Nix store copy. - # ".screenrc".source = dotfiles/screenrc; - - # # You can also set the file content immediately. - # ".gradle/gradle.properties".text = '' - # org.gradle.console=verbose - # org.gradle.daemon.idletimeout=3600000 - # ''; - }; - - # Home Manager can also manage your environment variables through - # 'home.sessionVariables'. These will be explicitly sourced when using a - # shell provided by Home Manager. If you don't want to manage your shell - # through Home Manager then you have to manually source 'hm-session-vars.sh' - # located at either - # - # ~/.nix-profile/etc/profile.d/hm-session-vars.sh - # - # or - # - # ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh - # - # or - # - # /etc/profiles/per-user/wilkuu/etc/profile.d/hm-session-vars.sh - # - home.sessionVariables = { - EDITOR = "nvim"; - XDG_SESSION_TYPE = "wayland"; - GDK_BACKEND = "wayland"; - GTK_USE_PORTAL = "1"; - QT_QPA_PLATFORM = "wayland"; - QT_STYLE_OVERRIDE = "kvantum"; - QT_QPA_PLATFORM_THEME = "kvantum"; - QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; - QT_AUTO_SCREEN_SCALE_FACTOR = "1"; - MOZ_ENABLE_WAYLAND = "1"; - }; - - - programs.zsh = { - enable = true; - enableCompletion = true; - oh-my-zsh = { - enable = true; - theme = "clean"; - }; - plugins = [ - { - name = "zsh-nix-shell"; - file = "nix-shell.plugin.zsh"; - src = pkgs.fetchFromGitHub { - owner = "chisui"; - repo = "zsh-nix-shell"; - rev = "v0.8.0"; - sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7"; - }; - } - ]; - }; - - - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; - -} diff --git a/home-manager/home/default.nix b/home-manager/home/default.nix new file mode 100644 index 0000000..ed3c564 --- /dev/null +++ b/home-manager/home/default.nix @@ -0,0 +1,17 @@ +{pkgs, ...}: { + imports = [ + #./hyprland.nix + #./syncthing.nix + ./theming.nix + #./neovim.nix + #./xdg.nix + ]; + + nixpkgs.config.allowUnfree = true; + + + home.username = "wilkuu"; + home.homeDirectory = "/home/wilkuu"; + home.stateVersion = "24.11"; + programs.home-manager.enable = true; +} diff --git a/home-manager/home/session_vars.nix b/home-manager/home/session_vars.nix new file mode 100644 index 0000000..3ba8a7d --- /dev/null +++ b/home-manager/home/session_vars.nix @@ -0,0 +1,15 @@ + {config, ...}: + { + home.sessionVariables = { + EDITOR = "nvim"; + #XDG_SESSION_TYPE = "wayland"; + #GDK_BACKEND = "wayland"; + GTK_USE_PORTAL = "1"; + #QT_QPA_PLATFORM = "wayland"; + QT_STYLE_OVERRIDE = "kvantum"; + QT_QPA_PLATFORM_THEME = "kvantum"; + #QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; + #QT_AUTO_SCREEN_SCALE_FACTOR = "1"; + #MOZ_ENABLE_WAYLAND = "1"; + }; +} diff --git a/home-manager/theming.nix b/home-manager/home/theming.nix index db2c9db..45a09a6 100644 --- a/home-manager/theming.nix +++ b/home-manager/home/theming.nix @@ -40,3 +40,4 @@ in }; } + diff --git a/home-manager/kitty.nix b/home-manager/kitty.nix deleted file mode 100644 index e69de29..0000000 --- a/home-manager/kitty.nix +++ /dev/null diff --git a/home-manager/modules/apps/default.nix b/home-manager/modules/apps/default.nix new file mode 100644 index 0000000..afb7ea3 --- /dev/null +++ b/home-manager/modules/apps/default.nix @@ -0,0 +1,54 @@ +{lib, pkgs, ...}: +with lib; +{ + imports = [ + ./nvim + ./desktop + ./zsh.nix + ]; + + # Stuff that is to be sorted to its appropriate files + # If no appropriate category is found or thought of, put it in misc.nix + home.packages = with pkgs; [ + speedcrunch + htop + btop + nmap + dig + ripgrep + unzip + unrar + xdg-user-dirs + thunderbird + element-desktop + filelight + libreoffice + evince + obsidian + krita + hugo + qalculate-qt + + spotify + prismlauncher + ani-cli + vlc + mpv + openttd + anki-bin + + #Theme + qt6Packages.qt6ct + kdePackages.qtstyleplugin-kvantum + (catppuccin-kvantum.override { + accent = "pink"; + variant = "mocha"; + }) + + + # Do i need this? + php + php83Packages.composer + + ]; +} diff --git a/home-manager/modules/apps/desktop/default.nix b/home-manager/modules/apps/desktop/default.nix new file mode 100644 index 0000000..4bc7478 --- /dev/null +++ b/home-manager/modules/apps/desktop/default.nix @@ -0,0 +1,3 @@ +{lib, ...}: with lib; { + imports = [ ./hyprland.nix ]; +} diff --git a/home-manager/hyprland.nix b/home-manager/modules/apps/desktop/hyprland.nix index 3b1e4fa..5142f40 100644 --- a/home-manager/hyprland.nix +++ b/home-manager/modules/apps/desktop/hyprland.nix @@ -1,4 +1,4 @@ -{config, pkgs, ...}: +{cfg, lib, ...}: { # Hyprland wayland.windowManager.hyprland = { @@ -15,7 +15,11 @@ "blueman-applet &" "hyprctl setcursor Catppuccin-Mocha-Dark-Cursors 24" "kdeconnect-indicator &" - ] ++ ["uwsm finalize QT_QPA_PLATFORM QT_PLUGIN_PATH"]; + ] ++ [ + "systemctl --user start hypridle.service" + "systemctl --user start hyprpaper.service" + "uwsm finalize QT_QPA_PLATFORM QT_PLUGIN_PATH" + ]; general = { gaps_in = 3; gaps_out = 8; @@ -233,4 +237,5 @@ } ]; }; -} + +} diff --git a/home-manager/modules/apps/nvim/default.nix b/home-manager/modules/apps/nvim/default.nix new file mode 100644 index 0000000..0505f78 --- /dev/null +++ b/home-manager/modules/apps/nvim/default.nix @@ -0,0 +1,4 @@ +{pkgs, ...}: +{ + # TODO +} diff --git a/home-manager/modules/apps/zsh.nix b/home-manager/modules/apps/zsh.nix new file mode 100644 index 0000000..7a940e6 --- /dev/null +++ b/home-manager/modules/apps/zsh.nix @@ -0,0 +1,24 @@ +{config ,pkgs, ...}: { + programs.zsh = { + enable = true; + enableCompletion = true; + oh-my-zsh = { + enable = true; + theme = "clean"; + }; + plugins = [ + { + name = "zsh-nix-shell"; + file = "nix-shell.plugin.zsh"; + src = pkgs.fetchFromGitHub { + owner = "chisui"; + repo = "zsh-nix-shell"; + rev = "v0.8.0"; + sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7"; + }; + } + ]; + }; + + +} diff --git a/home-manager/modules/default.nix b/home-manager/modules/default.nix new file mode 100644 index 0000000..040dee8 --- /dev/null +++ b/home-manager/modules/default.nix @@ -0,0 +1,8 @@ +{lib, ...}: +with lib; +{ + imports = [ + ./apps + #./service + ]; +} diff --git a/home-manager/modules/services/default.nix b/home-manager/modules/services/default.nix new file mode 100644 index 0000000..a0f8310 --- /dev/null +++ b/home-manager/modules/services/default.nix @@ -0,0 +1,3 @@ +{lib, ...}: { + imports = [ ./syncthing.nix]; +} diff --git a/home-manager/syncthing.nix b/home-manager/modules/services/syncthing.nix index f917d86..f917d86 100644 --- a/home-manager/syncthing.nix +++ b/home-manager/modules/services/syncthing.nix diff --git a/home-manager/neovim.nix b/home-manager/neovim.nix deleted file mode 100644 index 7b1554e..0000000 --- a/home-manager/neovim.nix +++ /dev/null @@ -1,94 +0,0 @@ -{ pkgs, config, ...}: -let - unstable = import <nixos-unstable> {}; - treesitterWithGrammars = (unstable.vimPlugins.nvim-treesitter.withPlugins (p : [ - p.bash - p.comment - p.css - p.dockerfile - p.gitattributes - p.gitignore - p.go - p.gomod - p.gowork - p.rust - p.javascript - p.typescript - p.json5 - p.json - p.lua - p.markdown - p.nix - p.python - p.java - p.rust - p.toml - p.vue - p.yaml - p.php - p.latex - ])); - treesitter-parsers = pkgs.symlinkJoin { - name = "treesitter-parsers"; - paths = treesitterWithGrammars.dependencies; - }; - -in -{ - programs.neovim = { - enable = true; - # package = unstable.neovim; - defaultEditor = true; - viAlias = true; - vimAlias = true; - # vimdiffAlias = true; - # # withPython3 = false; - # # withNodeJs = false; - # # withRuby = false; - # - coc.enable = false; - # - plugins = [ - treesitterWithGrammars - ]; - }; - - home.file."./.config/nvim/lua/wilkuu/init.lua".text = '' - require("wilkuu.set") - require("wilkuu.remap") - ''; - #vim.opt.runtimepath:append("${treesitter-parsers}") - - home.file."./.config/nvim/lua/wilkuu/nix.lua".text = '' - return { - vue_ts_plugin = "/home/wilkuu/.npm/@vue/typescript-plugin", - } - ''; - - - # home.file."./.local/share/nvim/nix/nvim-treesitter/" = { - # source = treesitterWithGrammars; - # recursive = true; - # }; - - home.sessionPath = [ - "/home/wilkuu/.npm/bin/" - ]; - - home.packages = with pkgs; [ - lua - lua-language-server - gopls - go - typescript - nodejs_22 - rustup - nixd - nixfmt-rfc-style - pyright - nodePackages.intelephense - texlive.combined.scheme-full - texlab - ]; - -} diff --git a/home-manager/xdg.nix b/home-manager/xdg.nix deleted file mode 100644 index 6b55023..0000000 --- a/home-manager/xdg.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ config, pkgs, ... }: -{ - xdg.mimeApps.defaultApplications = { - "application/zip" = [ "xarchiver.desktop" ]; - "application/x-krita" = [ "krita.desktop" ]; - "image/*" = [ "gwenview.desktop" "krita.desktop"]; - "inode/directory" = [ "pcmanfm.desktop" "filelight.desktop" "kitty.desktop"]; - }; -} |
