diff --git a/fileSystems.nix b/fileSystems.nix deleted file mode 100755 index db49ce6..0000000 --- a/fileSystems.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - "/" = - { device = "/dev/disk/by-label/nixos"; - fsType = "ext4"; - }; - - "/boot" = - { device = "/dev/disk/by-label/BOOT"; - fsType = "vfat"; - }; -} diff --git a/flake.nix b/flake.nix index cf05284..c91cd64 100644 --- a/flake.nix +++ b/flake.nix @@ -1,13 +1,12 @@ { - description = "testing"; + description = "my personal configurations"; inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; home-manager.url = "github:nix-community/home-manager/master"; home-manager.inputs.nixkpkgs.follows = "nixpkgs"; - nur.url = "github:nix-community/NUR"; }; - outputs = { nixpkgs, home-manager, nur, ... }: + outputs = { nixpkgs, home-manager, ... }: let system = "x86_64-linux"; pkgs = import nixpkgs { @@ -28,8 +27,7 @@ gerg = home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = [ - nur.nixosModules.nur - ./home-manager.nix + ./home-manager/home-manager.nix ]; }; }; @@ -37,8 +35,15 @@ gerg-laptop = lib.nixosSystem { inherit system pkgs; modules = [ - nur.nixosModules.nur - ./configuration.nix + ./hardware-configuration.nix + ./systems/gerg-laptop.nix + ]; + }; + gerg-desktop = lib.nixosSystem { + inherit system pkgs; + modules = [ + ./hardware-configuration.nix + ./systems/gerg-desktop.nix ]; }; }; diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..3dc661d --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,38 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/c67796b3-d502-47db-8d0e-48f30bc91041"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/AD02-10EA"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.eno1.useDHCP = lib.mkDefault true; + # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/home-manager.nix b/home-manager.nix deleted file mode 100755 index 5dce472..0000000 --- a/home-manager.nix +++ /dev/null @@ -1,28 +0,0 @@ -{config, pkgs, home-manager, ...}: -{ - imports = [ - ./home-manager/zsh.nix - ./home-manager/firefox.nix - ./home-manager/bspwm.nix - ./home-manager/sxhkd.nix - ./home-manager/rofi.nix - ./home-manager/polybar.nix - ./home-manager/dunst.nix - ./home-manager/alacritty.nix - ./home-manager/theme.nix - ./home-manager/picom.nix - ]; - programs.home-manager.enable = true; - home = { - username = "gerg"; - homeDirectory = "/home/gerg"; - stateVersion = "22.11"; - file = { - ".background-image".source = ./images/stars.jpg; - ".config" = { - source = ./home/.config; - recursive = true; - }; - }; - }; -} diff --git a/home/.config/Thunar/uca.xml b/home-manager/config/Thunar/uca.xml similarity index 100% rename from home/.config/Thunar/uca.xml rename to home-manager/config/Thunar/uca.xml diff --git a/home/.config/flashfocus/flashfocus.yml b/home-manager/config/flashfocus/flashfocus.yml similarity index 100% rename from home/.config/flashfocus/flashfocus.yml rename to home-manager/config/flashfocus/flashfocus.yml diff --git a/home/.config/neofetch/config.conf b/home-manager/config/neofetch/config.conf similarity index 100% rename from home/.config/neofetch/config.conf rename to home-manager/config/neofetch/config.conf diff --git a/home/.config/networkmanager-dmenu/config.ini b/home-manager/config/networkmanager-dmenu/config.ini similarity index 100% rename from home/.config/networkmanager-dmenu/config.ini rename to home-manager/config/networkmanager-dmenu/config.ini diff --git a/home/.config/networkmanager-dmenu/networkmenu.rasi b/home-manager/config/networkmanager-dmenu/networkmenu.rasi similarity index 100% rename from home/.config/networkmanager-dmenu/networkmenu.rasi rename to home-manager/config/networkmanager-dmenu/networkmenu.rasi diff --git a/home/.config/polybar/scripts/tray b/home-manager/config/polybar/scripts/tray similarity index 100% rename from home/.config/polybar/scripts/tray rename to home-manager/config/polybar/scripts/tray diff --git a/home/.config/rofi/config.rasi b/home-manager/config/rofi/config.rasi similarity index 100% rename from home/.config/rofi/config.rasi rename to home-manager/config/rofi/config.rasi diff --git a/home/.config/rofi/powermenu/powermenu.rasi b/home-manager/config/rofi/powermenu/powermenu.rasi similarity index 100% rename from home/.config/rofi/powermenu/powermenu.rasi rename to home-manager/config/rofi/powermenu/powermenu.rasi diff --git a/home/.config/rofi/powermenu/powermenu.sh b/home-manager/config/rofi/powermenu/powermenu.sh similarity index 100% rename from home/.config/rofi/powermenu/powermenu.sh rename to home-manager/config/rofi/powermenu/powermenu.sh diff --git a/home/.config/rofi/window-switcher/box.rasi b/home-manager/config/rofi/window-switcher/box.rasi similarity index 100% rename from home/.config/rofi/window-switcher/box.rasi rename to home-manager/config/rofi/window-switcher/box.rasi diff --git a/home/.config/rofi/window-switcher/box.rasi.save b/home-manager/config/rofi/window-switcher/box.rasi.save similarity index 100% rename from home/.config/rofi/window-switcher/box.rasi.save rename to home-manager/config/rofi/window-switcher/box.rasi.save diff --git a/home/.config/rofi/window-switcher/window-switcher.sh b/home-manager/config/rofi/window-switcher/window-switcher.sh similarity index 100% rename from home/.config/rofi/window-switcher/window-switcher.sh rename to home-manager/config/rofi/window-switcher/window-switcher.sh diff --git a/home-manager/home-manager.nix b/home-manager/home-manager.nix new file mode 100755 index 0000000..6c607c6 --- /dev/null +++ b/home-manager/home-manager.nix @@ -0,0 +1,28 @@ +{config, pkgs, home-manager, ...}: +{ + imports = [ + ./zsh.nix + ./firefox.nix + ./bspwm.nix + ./sxhkd.nix + ./rofi.nix + ./polybar.nix + ./dunst.nix + ./alacritty.nix + ./theme.nix + ./picom.nix + ]; + programs.home-manager.enable = true; + home = { + username = "gerg"; + homeDirectory = "/home/gerg"; + stateVersion = "22.11"; + file = { + ".background-image".source = ../images/stars.jpg; + ".config" = { + source = ./config; + recursive = true; + }; + }; + }; +} diff --git a/home-manager/picom.nix b/home-manager/picom.nix index f271738..9fd2749 100644 --- a/home-manager/picom.nix +++ b/home-manager/picom.nix @@ -1,61 +1,62 @@ { services.picom = { enable = true; - activeOpacity = "1.0"; + activeOpacity = 1.0; backend = "glx"; - blur = false; - blurExclude = [ - "window_type = 'dock'" - "window_type = 'menu'" - "class_g = 'firefox'" - ]; experimentalBackends = false; fade = true; fadeDelta = 4; - fadeSteps = [ "0.03" "0.03" ]; - inactiveOpacity = "1.0"; - menuOpacity = "1.0"; + fadeSteps = [ 0.03 0.03 ]; + inactiveOpacity = 1.0; + menuOpacity = 1.0; shadow = true; - noDockShadow = true; shadowExclude = [ "window_type = 'menu'" "class_g = 'firefox'" ]; shadowOffsets = [ 25 25 ]; - shadowOpacity = "0.5"; + shadowOpacity = 0.5; vSync = false; - extraOptions = '' -animations: true; -animation-stiffness = 200 -animation-window-mass = 0.4 -animation-dampening = 20 -animation-clamping = false -animation-for-open-window = "zoom"; -animation-for-unmap-window = "zoom"; -animation-for-workspace-switch-in = "slide-down"; -animation-for-workspace-switch-out = "zoom"; -animation-for-transient-window = "slide-up"; + settings = { + animations = true; + animation = { + stiffness = 200; + window-mass = 0.4; + dampening = 20; + clamping = false; + for-open-window = "zoom"; + for-unmap-window = "zoom"; + for-workspace-switch-in = "slide-down"; + for-workspace-switch-out = "zoom"; + for-transient-window = "slide-up"; + }; -shadow-radius = 25; -frame-opacity = 1.0; -inactive-opacity-override = false; -corner-radius = 15; -rounded-corners-exclude = [ - "window_type = 'desktop'", - "window_type = 'tooltip'", -]; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-rounded-corners = true; -detect-client-opacity = true; -detect-transient = true; -use-damage = true; -log-level = "warn"; -wintypes: -{ - tooltip = { fade = true; shadow = false; opacity = 1.0; focus = true; full-shadow = false; }; - dock = { shadow = true; } - dnd = { shadow = true; } - popup_menu = { opacity = 1.0; } - dropdown_menu = { opacity = 1.0; } -}; - ''; + blur = false; + blurExclude = [ + "window_type = 'dock'" + "window_type = 'menu'" + "class_g = 'firefox'" + ]; + + shadow-radius = 25; + frame-opacity = 1.0; + inactive-opacity-override = false; + corner-radius = 15; + rounded-corners-exclude = [ + "window_type = 'desktop'" + "window_type = 'tooltip'" + ]; + mark-wmwin-focused = true; + mark-ovredir-focused = true; + detect-rounded-corners = true; + detect-client-opacity = true; + detect-transient = true; + use-damage = true; + log-level = "warn"; + wintypes = { + tooltip = { fade = true; shadow = false; opacity = 1.0; focus = true; full-shadow = false; }; + dock = { shadow = true; }; + dnd = { shadow = true; }; + popup_menu = { opacity = 1.0; }; + dropdown_menu = { opacity = 1.0; }; + }; + }; }; } diff --git a/misc/Main_VM.xml b/misc/Main_VM.xml new file mode 100644 index 0000000..8fe96e8 --- /dev/null +++ b/misc/Main_VM.xml @@ -0,0 +1,208 @@ + + Main_VM + dc54280f-8a72-4e0b-9771-e3fa6871c58b + + + + + + 16384000 + 16384000 + + + + + 6 + 2 + + + + + + + + + + + + + hvm + /usr/share/edk2-ovmf/x64/OVMF_CODE.fd + /var/lib/libvirt/qemu/nvram/Main_VM_VARS.fd + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + + + +
+ + + + + +
+ + +
+ + + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + +
+ + + + + + +
+ + + + + + + + + + + + +