diff options
| -rw-r--r-- | .stow-local-ignore | 9 | ||||
| -rw-r--r-- | flake.lock | 217 | ||||
| -rw-r--r-- | flake.nix | 61 | ||||
| -rw-r--r-- | hosts/configuration.nix | 205 | ||||
| -rw-r--r-- | modules/apps.nix | 49 |
5 files changed, 0 insertions, 541 deletions
diff --git a/.stow-local-ignore b/.stow-local-ignore index ed21f20..fe81ec8 100644 --- a/.stow-local-ignore +++ b/.stow-local-ignore @@ -1,12 +1,3 @@ \.git \.gitignore -\.gitmodules - ^/README.* -^/LICENSE.* -^/COPYING - -modules -hosts -flake.nix -flake.lock diff --git a/flake.lock b/flake.lock deleted file mode 100644 index 55fb9b3..0000000 --- a/flake.lock +++ /dev/null @@ -1,217 +0,0 @@ -{ - "nodes": { - "eko": { - "inputs": { - "flake-compat": "flake-compat", - "flake-utils": "flake-utils", - "nix-filter": "nix-filter", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1754670455, - "narHash": "sha256-JC/zNqLaBe4sskeGuxsMifCZTpHScU9KZGV4/yORKOI=", - "owner": "kyren223", - "repo": "eko", - "rev": "3842aa28cf74e90dd0998b2a4343f9ad83766b60", - "type": "github" - }, - "original": { - "owner": "kyren223", - "repo": "eko", - "type": "github" - } - }, - "flake-compat": { - "flake": false, - "locked": { - "lastModified": 1747046372, - "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, - "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": 1753888434, - "narHash": "sha256-xQhSeLJVsxxkwchE4s6v1CnOI6YegCqeA1fgk/ivVI4=", - "owner": "nix-community", - "repo": "home-manager", - "rev": "0630790b31d4547d79ff247bc3ba1adda3a017d9", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "home-manager", - "type": "github" - } - }, - "home-manager_2": { - "inputs": { - "nixpkgs": [ - "zen-browser", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1752603129, - "narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=", - "owner": "nix-community", - "repo": "home-manager", - "rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "home-manager", - "type": "github" - } - }, - "nix-filter": { - "locked": { - "lastModified": 1731533336, - "narHash": "sha256-oRam5PS1vcrr5UPgALW0eo1m/5/pls27Z/pabHNy2Ms=", - "owner": "numtide", - "repo": "nix-filter", - "rev": "f7653272fd234696ae94229839a99b73c9ab7de0", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "nix-filter", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1753694789, - "narHash": "sha256-cKgvtz6fKuK1Xr5LQW/zOUiAC0oSQoA9nOISB0pJZqM=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "dc9637876d0dcc8c9e5e22986b857632effeb727", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs-mesa-pin": { - "locked": { - "lastModified": 1758035966, - "narHash": "sha256-qqIJ3yxPiB0ZQTT9//nFGQYn8X/PBoJbofA7hRKZnmE=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "8d4ddb19d03c65a36ad8d189d001dc32ffb0306b", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "eko": "eko", - "home-manager": "home-manager", - "nixpkgs": "nixpkgs", - "nixpkgs-mesa-pin": "nixpkgs-mesa-pin", - "sops-nix": "sops-nix", - "zen-browser": "zen-browser" - } - }, - "sops-nix": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1752544651, - "narHash": "sha256-GllP7cmQu7zLZTs9z0J2gIL42IZHa9CBEXwBY9szT0U=", - "owner": "Mic92", - "repo": "sops-nix", - "rev": "2c8def626f54708a9c38a5861866660395bb3461", - "type": "github" - }, - "original": { - "owner": "Mic92", - "repo": "sops-nix", - "type": "github" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "zen-browser": { - "inputs": { - "home-manager": "home-manager_2", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1756298373, - "narHash": "sha256-pt3aDxcPl9B9y0RwRgtTEN4EUxBtgU9yxb4hs6PMAZM=", - "owner": "0xc000022070", - "repo": "zen-browser-flake", - "rev": "241afe9c084d05b83801726149a40abefc90849c", - "type": "github" - }, - "original": { - "owner": "0xc000022070", - "repo": "zen-browser-flake", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 8fc3b6c..0000000 --- a/flake.nix +++ /dev/null @@ -1,61 +0,0 @@ -{ - description = "Nixos config flake"; - - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - - home-manager = { - url = "github:nix-community/home-manager"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - zen-browser = { - url = "github:0xc000022070/zen-browser-flake"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - sops-nix = { - url = "github:Mic92/sops-nix"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - eko = { - url = "github:kyren223/eko/"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - nixpkgs-mesa-pin.url = "github:nixos/nixpkgs/nixos-unstable"; - }; - - outputs = { self, nixpkgs, nixpkgs-mesa-pin, ... }@inputs: { - nixosConfigurations = { - laptop = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; }; - modules = [ - ./hosts/laptop.nix - ]; - }; - lapsktop = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; }; - modules = [ - ./hosts/lapsktop.nix - ]; - }; - # kyren-desktop = nixpkgs.lib.nixosSystem { - # system = "x86_64-linux"; - # specialArgs = { inherit inputs; }; - # modules = [ - # ./hosts/desktop.nix - # ]; - # }; - - kyren-desktop = nixpkgs.lib.nixosSystem rec { - system = "x86_64-linux"; - specialArgs = { inherit inputs; pkgs-mesa-pin = import nixpkgs-mesa-pin { inherit system; config.allowUnfree = true; }; }; - modules = [ - ./hosts/desktop.nix - ]; - }; - }; - }; -} diff --git a/hosts/configuration.nix b/hosts/configuration.nix deleted file mode 100644 index f539f85..0000000 --- a/hosts/configuration.nix +++ /dev/null @@ -1,205 +0,0 @@ -{ pkgs, inputs, config, ... }: { - - imports = [ - inputs.sops-nix.nixosModules.sops - ../modules/apps.nix - ../modules/development.nix - ../modules/gaming.nix - ../modules/secrets.nix - inputs.home-manager.nixosModules.default - ]; - - home-manager = { - extraSpecialArgs = { inherit inputs pkgs; }; - useUserPackages = true; - useGlobalPkgs = true; - users = { - "kyren" = import ./home.nix; - }; - }; - - users.groups.kyren = {}; - users.users.kyren = { - isNormalUser = true; - description = "Kyren"; - extraGroups = [ "kyren" "networkmanager" "wheel" "docker" ]; - shell = pkgs.zsh; - }; - - programs.zsh.enable = true; - - # Localization - time.timeZone = "Asia/Hebron"; - i18n.defaultLocale = "en_US.UTF-8"; - i18n.supportedLocales = [ - "en_US.UTF-8/UTF-8" - "C.UTF-8/UTF-8" - "en_IL/UTF-8" - ]; - - # Fonts - fonts = { - packages = with pkgs; [ - noto-fonts - noto-fonts-emoji - noto-fonts-color-emoji - liberation_ttf - fira-code - fira-code-symbols - font-awesome - nerd-fonts.jetbrains-mono - ]; - - fontconfig = { - defaultFonts = { - # serif = [ "Liberation Serif" "Vazirmatn" ]; - # sansSerif = [ "Ubuntu" "Vazirmatn" ]; - monospace = [ "JetBrainsMono Nerd Font" ]; - }; - }; - }; - - # Fix for noto color emoji not rendering in firefox-based browsers - fonts.fontconfig.useEmbeddedBitmaps = true; - - # Allow sudo without a password if in "wheel" group. - security.sudo.wheelNeedsPassword = false; - - # Bootloader - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.supportedFilesystems = [ "ntfs" ]; # for windows fs - - # Nix Config - system.stateVersion = "24.05"; # DO NOT CHANGE! - nixpkgs.config.allowUnfree = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - nix.settings.auto-optimise-store = true; # reduces nix store size - - nixpkgs.config = { - packageOverrides = pkgs: { - emojipin = import <emojipin> { - config = config.nixpkgs.config; - }; - }; - }; - - # Enable dynamic linking of apps that are not in nixpkgs - programs.nix-ld.enable = true; - programs.nix-ld.libraries = with pkgs; [ - stdenv.cc.cc # Fixes issues with neovim plugins not working - - glib - - # Fixes issues with running games (nallo's) - wayland - libxkbcommon - libGL - - noto-fonts - - pkg-config - xorg.libX11 - xorg.libxcb - fontconfig - freetype - dbus - - xorg.libX11 - xorg.libXcursor - xorg.libxcb - xorg.libXi - libxkbcommon - libz - - libsodium # Needed for webzfs, seems to be a python crypto library - libsodium.dev - libsodium.out - ]; - - # Enable sound with pipewire. - services.pulseaudio.enable = false; - security.rtkit.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - # If you want to use JACK applications, uncomment this - jack.enable = true; - - # use the example session manager (no others are packaged yet so this is enabled by default, - # no need to redefine it in your config for now) - # media-session.enable = true; - }; - - # ENable CUPS daemon for printing - services.printing.enable = false; - - # Install Flatpak and Flathub - services.flatpak.enable = true; - - # Enable openssh - services.openssh.enable = true; - services.openssh.settings.PasswordAuthentication = false; - - users.users.root.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7P9K9D5RkBk+JCRRS6AtHuTAc6cRpXfRfRMg/Kyren" - ]; - - # Enable KVM/QEMU virtualization - programs.virt-manager.enable = true; - users.groups.libvirtd.members = ["kyren"]; - virtualisation.libvirtd.enable = true; - virtualisation.spiceUSBRedirection.enable = true; - virtualisation.libvirtd.qemu = { - runAsRoot = true; - ovmf.enable = true; - # Fix, see https://www.reddit.com/r/NixOS/comments/11j9qf7/virtio_fs_with_virtmanager/ - vhostUserPackages = with pkgs; [ virtiofsd virtio-win pkgs.swtpm ]; - }; - environment.systemPackages = [ - pkgs.virtiofsd # For shared fs - pkgs.virtio-win # For using virtio stuff in windows I think? - pkgs.swtpm # For being able to emulate TPM 2.0 (otherwise it errors) - ]; - # Fix no internet in libvirt, see https://discourse.nixos.org/t/issues-with-virt-manager-default-network-down-in-nixos-25-11/66808/3 - networking.firewall.trustedInterfaces = [ "wlp5s0" "virbr0" ]; - - services.syncthing.enable = true; - services.syncthing = { - group = "users"; - user = "kyren"; - dataDir = "/home/kyren"; - configDir = "/home/kyren/.config/syncthing"; - }; - systemd.tmpfiles.rules = [ - "d /home/kyren/.config/syncthing 0700 kyren users" - ]; - - # App image fix, see https://github.com/internxt/drive-desktop-linux/issues/80 - # Hopefully this also fixes the other errors with fuse, not just for internxt - programs.appimage.enable = true; - programs.appimage.binfmt = true; - programs.appimage.package = pkgs.appimage-run.override { - extraPkgs = pkgs: [ - pkgs.fuse - ]; - }; - - # From when I tried hyprland, might aswell keep this? - # Fixes "The name org.freedesktop.UDisks2 was not provided by any .service files" - # See https://www.reddit.com/r/NixOS/comments/1goziru/dolphin_on_hyprland/ - services.udisks2.enable = true; - - services.udev.extraRules = '' - KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d030", MODE="0666", GROUP="users", TAG+="uaccess", TAG+="udev-acl" - SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0666", GROUP="users", TAG+="uaccess", TAG+="udev-acl" - SUBSYSTEM=="usb", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d030", MODE="0666", GROUP="users", TAG+="uaccess", TAG+="udev-acl" - ''; - - # Disk health monitoring - services.smartd.enable = true; - services.syncoid.enable = true; - services.sanoid.enable = true; -} diff --git a/modules/apps.nix b/modules/apps.nix deleted file mode 100644 index 2462112..0000000 --- a/modules/apps.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ - pkgs, - lib, - config, - ... -}: -{ - - options.apps.enable = lib.mkOption { - type = lib.types.bool; - default = true; - description = "enables apps"; - }; - - config = lib.mkIf config.apps.enable { - programs.kdeconnect.enable = true; # Opens TCP/UDP ports (does not when it's a pkg) - - environment.systemPackages = with pkgs; [ - - nerd-fonts.jetbrains-mono - - pipeline # Youtube desktop app - - # Utility - protonvpn-gui - cloudflare-warp - - kdePackages.korganizer - kdePackages.kaddressbook - - syncthingtray - - gnome-clocks - - spotify - ]; - - # VPN for Vault Hunters to avoid connection issues - # Note, will break discord, also tried proton VPN, still has conn issues - services.cloudflare-warp.enable = true; - - # Install Docker (without using root access) - #virtualisation.docker.enable = true; - virtualisation.docker.rootless = { - enable = true; - setSocketVariable = true; - }; - }; -} |
