diff --git a/README.md b/README.md index a454684..29fb37c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ZaneyOS 🟰 Best ❄️ NixOS Configs -ZaneyOS is my production machines config files. +ZaneyOS is a way of reproducing my configuration on any NixOS system. This includes the wallpaper, scripts, applications, config files, and more. *Please remember to change username in flake.nix, home.nix, and the configuration.nix.* ![](demo.jpg) @@ -43,6 +43,6 @@ Clone this repo, replace your hardware-configuration.nix with the one inside the sudo nixos-rebuild switch --flake .#workstation ``` -Replace #workstation with laptop to switch to my Intel Whitebook laptop's configuration. +Replace #workstation with #laptop to switch to my Intel Whitebook laptop's configuration. Hope you enjoy! diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..9ad2c99 --- /dev/null +++ b/flake.lock @@ -0,0 +1,211 @@ +{ + "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1704099619, + "narHash": "sha256-QRVMkdxLmv+aKGjcgeEg31xtJEIsYq4i1Kbyw5EPS6g=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "7e398b3d76bc1503171b1364c9d4a07ac06f3851", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "release-23.11", + "repo": "home-manager", + "type": "github" + } + }, + "hyprland": { + "inputs": { + "hyprland-protocols": "hyprland-protocols", + "nixpkgs": "nixpkgs", + "systems": "systems", + "wlroots": "wlroots", + "xdph": "xdph" + }, + "locked": { + "lastModified": 1704906538, + "narHash": "sha256-itBjIIc5CvgHGTXvD5dUEa28wDHggJr3VEFOnzEBPpc=", + "owner": "hyprwm", + "repo": "Hyprland", + "rev": "8d31c84483be7cc6f909d73c6ecd4c0b4bdc3360", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "Hyprland", + "type": "github" + } + }, + "hyprland-protocols": { + "inputs": { + "nixpkgs": [ + "hyprland", + "nixpkgs" + ], + "systems": [ + "hyprland", + "systems" + ] + }, + "locked": { + "lastModified": 1691753796, + "narHash": "sha256-zOEwiWoXk3j3+EoF3ySUJmberFewWlagvewDRuWYAso=", + "owner": "hyprwm", + "repo": "hyprland-protocols", + "rev": "0c2ce70625cb30aef199cb388f99e19a61a6ce03", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprland-protocols", + "type": "github" + } + }, + "hyprlang": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1704287638, + "narHash": "sha256-TuRXJGwtK440AXQNl5eiqmQqY4LZ/9+z/R7xC0ie3iA=", + "owner": "hyprwm", + "repo": "hyprlang", + "rev": "6624f2bb66d4d27975766e81f77174adbe58ec97", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprlang", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1704194953, + "narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1702645756, + "narHash": "sha256-qKI6OR3TYJYQB3Q8mAZ+DG4o/BR9ptcv9UnRV2hzljc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "40c3c94c241286dd2243ea34d3aef8a488f9e4d0", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1704732714, + "narHash": "sha256-ABqK/HggMYA/jMUXgYyqVAcQ8QjeMyr1jcXfTpSHmps=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "6723fa4e4f1a30d42a633bef5eb01caeb281adc3", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-23.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "home-manager": "home-manager", + "hyprland": "hyprland", + "nixpkgs": "nixpkgs_3" + } + }, + "systems": { + "locked": { + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "owner": "nix-systems", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default-linux", + "type": "github" + } + }, + "wlroots": { + "flake": false, + "locked": { + "host": "gitlab.freedesktop.org", + "lastModified": 1703963193, + "narHash": "sha256-ke8drv6PTrdQDruWbajrRJffP9A9PU6FRyjJGNZRTs4=", + "owner": "wlroots", + "repo": "wlroots", + "rev": "f81c3d93cd6f61b20ae784297679283438def8df", + "type": "gitlab" + }, + "original": { + "host": "gitlab.freedesktop.org", + "owner": "wlroots", + "repo": "wlroots", + "rev": "f81c3d93cd6f61b20ae784297679283438def8df", + "type": "gitlab" + } + }, + "xdph": { + "inputs": { + "hyprland-protocols": [ + "hyprland", + "hyprland-protocols" + ], + "hyprlang": "hyprlang", + "nixpkgs": [ + "hyprland", + "nixpkgs" + ], + "systems": [ + "hyprland", + "systems" + ] + }, + "locked": { + "lastModified": 1704400467, + "narHash": "sha256-IsEAKBCorRlN53FwFAMbyGLRsPVu/ZrWEJtCwykPds8=", + "owner": "hyprwm", + "repo": "xdg-desktop-portal-hyprland", + "rev": "1c802128f6cc3db29a8ef01552b1a22f894eeefd", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "xdg-desktop-portal-hyprland", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/home.nix b/home.nix index 96ab8f7..68ab2a2 100644 --- a/home.nix +++ b/home.nix @@ -8,8 +8,9 @@ home.file.".config/zaney-stinger.mov" = { source = ./media/zaney-stinger.mov; }; - home.file.".config/wallpaper.png" = { - source = ./media/wallpaper.png; + home.file."Pictures/Wallpapers" = { + source = ./media/Wallpapers; + recursive = true; }; home.file.".local/share/fonts" = { source = ./fonts; @@ -50,18 +51,21 @@ userEmail = "tylerzanekelley@gmail.com"; }; + home.packages = with pkgs; [ neofetch lolcat cmatrix discord firefox btop libvirt swww polkit_gnome grim slurp lm_sensors unzip unrar gnome.file-roller - libnotify swaynotificationcenter rofi-wayland xfce.thunar imv v4l-utils + libnotify swaynotificationcenter rofi-wayland imv v4l-utils ydotool wl-clipboard socat cowsay lsd pkg-config transmission-gtk mpv gimp obs-studio blender kdenlive meson glibc hugo gnumake ninja go - nodejs godot_4 rustup pavucontrol audacity zeroad xonotic gvfs udiskie + nodejs godot_4 rustup pavucontrol audacity zeroad xonotic openra font-awesome symbola noto-fonts-color-emoji material-icons + spotify # Import Scripts (import ./scripts/emopicker9000.nix { inherit pkgs; }) (import ./scripts/task-waybar.nix { inherit pkgs; }) (import ./scripts/squirtle.nix { inherit pkgs; }) + (import ./scripts/wallsetter.nix { inherit pkgs; }) ]; home.pointerCursor = { @@ -115,11 +119,18 @@ programs.bash = { enable = true; enableCompletion = true; + profileExtra = '' + if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then + exec Hyprland + fi + ''; sessionVariables = { }; shellAliases = { sv="sudo vim"; + flake-rebuild="sudo nixos-rebuild switch --flake ~/zaneyos/#workstation"; + laptop-rebuild="sudo nixos-rebuild switch --flake ~/zaneyos/#laptop"; v="vim"; ls="lsd"; ll="lsd -l"; diff --git a/media/Wallpapers/Bulbasaur_1080p.jpg b/media/Wallpapers/Bulbasaur_1080p.jpg new file mode 100755 index 0000000..aced946 Binary files /dev/null and b/media/Wallpapers/Bulbasaur_1080p.jpg differ diff --git a/media/Wallpapers/FirewatchWallpaper.jpg b/media/Wallpapers/FirewatchWallpaper.jpg new file mode 100755 index 0000000..5bc507b Binary files /dev/null and b/media/Wallpapers/FirewatchWallpaper.jpg differ diff --git a/media/Wallpapers/FusionA1.jpg b/media/Wallpapers/FusionA1.jpg new file mode 100644 index 0000000..935bc25 Binary files /dev/null and b/media/Wallpapers/FusionA1.jpg differ diff --git a/media/Wallpapers/Gangsta-Hoodie.jpeg b/media/Wallpapers/Gangsta-Hoodie.jpeg new file mode 100755 index 0000000..36a492d Binary files /dev/null and b/media/Wallpapers/Gangsta-Hoodie.jpeg differ diff --git a/media/Wallpapers/MyCustomWallpaper.jpg b/media/Wallpapers/MyCustomWallpaper.jpg new file mode 100644 index 0000000..b1f40db Binary files /dev/null and b/media/Wallpapers/MyCustomWallpaper.jpg differ diff --git a/media/wallpaper.png b/media/Wallpapers/MyCustomWallpaper.png similarity index 100% rename from media/wallpaper.png rename to media/Wallpapers/MyCustomWallpaper.png diff --git a/media/Wallpapers/Nordic_KDE_Wallpaper.jpg b/media/Wallpapers/Nordic_KDE_Wallpaper.jpg new file mode 100755 index 0000000..9776f86 Binary files /dev/null and b/media/Wallpapers/Nordic_KDE_Wallpaper.jpg differ diff --git a/media/Wallpapers/Rainnight.jpg b/media/Wallpapers/Rainnight.jpg new file mode 100755 index 0000000..ffa2dc9 Binary files /dev/null and b/media/Wallpapers/Rainnight.jpg differ diff --git a/media/Wallpapers/solarized_puffy.png b/media/Wallpapers/solarized_puffy.png new file mode 100755 index 0000000..2a0b8aa Binary files /dev/null and b/media/Wallpapers/solarized_puffy.png differ diff --git a/scripts/wallsetter.nix b/scripts/wallsetter.nix new file mode 100644 index 0000000..d851720 --- /dev/null +++ b/scripts/wallsetter.nix @@ -0,0 +1,7 @@ +{ pkgs }: + +pkgs.writeShellScriptBin "wallsetter" '' + NEWWALLPAPER=$(find $HOME/Pictures/Wallpapers -type l | shuf -n 1) + + ${pkgs.swww}/bin/swww img $NEWWALLPAPER --transition-type wave --transition-angle 120 --transition-step 30 +'' diff --git a/workstation/configuration.nix b/workstation/configuration.nix index ae38530..be9a63a 100644 --- a/workstation/configuration.nix +++ b/workstation/configuration.nix @@ -106,6 +106,9 @@ hardware.pulseaudio.enable = false; sound.enable = true; security.rtkit.enable = true; + programs.thunar.enable = true; + services.gvfs.enable = true; + services.tumbler.enable = true; system.stateVersion = "23.11";