Added nwggrid
This commit is contained in:
parent
66f506ce0f
commit
da25566c34
62
flake.lock
62
flake.lock
|
@ -105,28 +105,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"multimc": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"libnbtplusplus": "libnbtplusplus",
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"quazip": "quazip"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1641769038,
|
|
||||||
"narHash": "sha256-IGk8n00m7riuYLnR+3Nbo70YHJBOQv+nakynN/gtoY0=",
|
|
||||||
"owner": "PolyMC",
|
|
||||||
"repo": "PolyMC",
|
|
||||||
"rev": "3fa6e2243047005505a3de6f133feaa2f2eeb10a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "PolyMC",
|
|
||||||
"repo": "PolyMC",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1639986101,
|
"lastModified": 1639986101,
|
||||||
|
@ -146,16 +124,15 @@
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1641528457,
|
"lastModified": 1641528457,
|
||||||
"narHash": "sha256-FyU9E63n1W7Ql4pMnhW2/rO9OftWZ37pLppn/c1aisY=",
|
"narHash": "sha256-FyU9E63n1W7Ql4pMnhW2/rO9OftWZ37pLppn/c1aisY=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ff377a78794d412a35245e05428c8f95fef3951f",
|
"rev": "ff377a78794d412a35245e05428c8f95fef3951f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"id": "nixpkgs",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"type": "indirect"
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
|
@ -177,15 +154,38 @@
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1641528457,
|
"lastModified": 1641528457,
|
||||||
"narHash": "sha256-FyU9E63n1W7Ql4pMnhW2/rO9OftWZ37pLppn/c1aisY=",
|
"narHash": "sha256-FyU9E63n1W7Ql4pMnhW2/rO9OftWZ37pLppn/c1aisY=",
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ff377a78794d412a35245e05428c8f95fef3951f",
|
"rev": "ff377a78794d412a35245e05428c8f95fef3951f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"owner": "nixos",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"type": "indirect"
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"polymc": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"libnbtplusplus": "libnbtplusplus",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"quazip": "quazip"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1641930261,
|
||||||
|
"narHash": "sha256-3RR/rjMFDYoA7qJHXLHdw1sauBCdO9kqMEGUpuxB1Sw=",
|
||||||
|
"owner": "PolyMC",
|
||||||
|
"repo": "PolyMC",
|
||||||
|
"rev": "3b524e99cceb734fa9f2433e3738ce0d185a75aa",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "PolyMC",
|
||||||
|
"repo": "PolyMC",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"quazip": {
|
"quazip": {
|
||||||
|
@ -209,10 +209,10 @@
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"meson": "meson",
|
"meson": "meson",
|
||||||
"multimc": "multimc",
|
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"polymc": "polymc",
|
||||||
"sway-borders": "sway-borders"
|
"sway-borders": "sway-borders"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
curl
|
curl
|
||||||
dolphin
|
dolphin
|
||||||
discord
|
discord
|
||||||
firefox-wayland
|
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
inkscape
|
inkscape
|
||||||
blender
|
blender
|
||||||
|
@ -48,6 +47,9 @@
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
obs.enable = true;
|
obs.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
|
menus = {
|
||||||
|
nwggrid.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
editors = {
|
editors = {
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
inputs.nixos-hardware.nixosModules.microsoft-surface
|
# inputs.nixos-hardware.nixosModules.microsoft-surface
|
||||||
];
|
];
|
||||||
|
|
||||||
# Kernel Modules
|
# Kernel Modules
|
||||||
boot = {
|
boot = {
|
||||||
initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
initrd.kernelModules = [ ];
|
initrd.kernelModules = [ ];
|
||||||
# kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||||
kernelModules = [ "kvm-intel" "v4l2loopback" ];
|
kernelModules = [ "kvm-intel" "v4l2loopback" ];
|
||||||
loader = {
|
loader = {
|
||||||
|
@ -58,21 +58,48 @@
|
||||||
# Filesystems
|
# Filesystems
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "/dev/disk/by-uuid/eb56fb0a-a35d-472c-8704-6eec5ceea999";
|
device = "/dev/disk/by-uuid/e1416adb-648e-4b34-b665-8305b7a765f8";
|
||||||
fsType = "f2fs";
|
fsType = "f2fs";
|
||||||
|
options = [ "defaults" "noatime" "noadirtime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"/boot" = {
|
"/boot" = {
|
||||||
device = "/dev/disk/by-uuid/4669-2B0A";
|
device = "/dev/disk/by-uuid/EB60-12E5";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
"/home/aether/Downloads" = {
|
"/home/aether/Downloads" = {
|
||||||
|
device = "none";
|
||||||
fsType = "tmpfs";
|
fsType = "tmpfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56" = {
|
||||||
|
device = "/dev/disk/by-uuid/bf2d91f1-a6b3-4629-8755-76301b3f6f56";
|
||||||
|
# fsType = "ext4";
|
||||||
|
options = [ "defaults" "noatime" "nodiratime" "user" "nofail" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
"/home/aether/Videos" = {
|
||||||
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home delta/home delta delta/Videos";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"/home/aether/Pictures" = {
|
||||||
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home delta/Pictures";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"/home/aether/Documents" = {
|
||||||
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home delta/Documents";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
*/
|
*/
|
||||||
|
"/home/aether/Music" = {
|
||||||
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home delta/home delta delta/Music";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [{ device = "/dev/disk/by-uuid/74226c30-e72f-4576-8349-8e77e844e875"; }];
|
swapDevices = [{ device = "/dev/disk/by-uuid/537cffdc-a67d-4b25-a649-32455cec4661"; }];
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,78 @@
|
||||||
|
# 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, inputs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
# inputs.nixos-hardware.nixosModules.microsoft-surface
|
||||||
|
];
|
||||||
|
|
||||||
|
# Kernel Modules
|
||||||
|
boot = {
|
||||||
|
initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
initrd.kernelModules = [ ];
|
||||||
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
|
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||||
|
kernelModules = [ "kvm-intel" "v4l2loopback" ];
|
||||||
|
loader = {
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
configurationLimit = 10;
|
||||||
|
};
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Modules
|
||||||
|
modules.hardware = {
|
||||||
|
audio = {
|
||||||
|
enable = true;
|
||||||
|
enableExtraCompat = true;
|
||||||
|
};
|
||||||
|
graphics.enable = true;
|
||||||
|
fs = {
|
||||||
|
enable = true;
|
||||||
|
ssd.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# HiDPI
|
||||||
|
hardware.video.hidpi.enable = true;
|
||||||
|
|
||||||
|
# CPU
|
||||||
|
nix.maxJobs = lib.mkDefault 4;
|
||||||
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
|
||||||
|
# Power Management
|
||||||
|
powerManagement = {
|
||||||
|
powertop.enable = true;
|
||||||
|
cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
brightnessctl
|
||||||
|
];
|
||||||
|
|
||||||
|
# Filesystems
|
||||||
|
fileSystems = {
|
||||||
|
"/" = {
|
||||||
|
device = "/dev/disk/by-lable/nixos";
|
||||||
|
fsType = "f2fs";
|
||||||
|
};
|
||||||
|
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-label/boot";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
"/home/aether/Downloads" = {
|
||||||
|
fsType = "tmpfs";
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ config, pkgs, inputs, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.apps.menus.nwggrid;
|
||||||
|
in {
|
||||||
|
options.modules.desktop.apps.menus.nwggrid = {
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
executable = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "${pkgs.nwg-launchers}/bin/nwggrid";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
config.modules.desktop.apps.nwg-launchers.enale = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
{ pkgs, lib, options, config, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.nwg-launchers;
|
||||||
|
in {
|
||||||
|
options.modules.desktop.nwg-launchers = {
|
||||||
|
enable = mkOptions {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
user.packages = [ nwg-launchers ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -11,6 +11,11 @@ in {
|
||||||
default = false;
|
default = false;
|
||||||
description = "Enables the sway window manager for Wayland.";
|
description = "Enables the sway window manager for Wayland.";
|
||||||
};
|
};
|
||||||
|
menu = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "nwggrid";
|
||||||
|
description = "";
|
||||||
|
};
|
||||||
term = mkOption {
|
term = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "alacritty";
|
default = "alacritty";
|
||||||
|
@ -60,7 +65,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.desktop.apps."${cfg.term}".enable = true;
|
modules.desktop.apps."${cfg.term}".enable = true;
|
||||||
modules.desktop.apps.wofi.enable = true;
|
modules.desktop.apps.menus.${cfg.menu}.enable = true;
|
||||||
|
|
||||||
# modules.desktop.services.swaylock.enable = true;
|
# modules.desktop.services.swaylock.enable = true;
|
||||||
modules.desktop.services.swayidle.enable = true;
|
modules.desktop.services.swayidle.enable = true;
|
||||||
|
@ -89,7 +94,7 @@ in {
|
||||||
# { command = "mako"; }
|
# { command = "mako"; }
|
||||||
];
|
];
|
||||||
terminal = config.modules.desktop.apps.${cfg.term}.executable;
|
terminal = config.modules.desktop.apps.${cfg.term}.executable;
|
||||||
menu = config.modules.desktop.apps.wofi.executable;
|
menu = config.modules.desktop.apps.menus.${cfg.menu}.executable;
|
||||||
output."eDP-1" = {
|
output."eDP-1" = {
|
||||||
bg = "${config.modules.theme.wallpaper} fill";
|
bg = "${config.modules.theme.wallpaper} fill";
|
||||||
scale = "1.5";
|
scale = "1.5";
|
||||||
|
@ -98,7 +103,7 @@ in {
|
||||||
# "${mod}+l" = "exec lock";
|
# "${mod}+l" = "exec lock";
|
||||||
"${mod}+q" = "reload";
|
"${mod}+q" = "reload";
|
||||||
"${mod}+Shift+c" = "kill";
|
"${mod}+Shift+c" = "kill";
|
||||||
"${mod}+p" = "exec ${config.home._.wayland.windowManager.sway.config.menu} --show=drun";
|
"${mod}+p" = "exec ${config.home._.wayland.windowManager.sway.config.menu}";
|
||||||
"${mod}+Shift+Return" = "exec ${config.home._.wayland.windowManager.sway.config.terminal}";
|
"${mod}+Shift+Return" = "exec ${config.home._.wayland.windowManager.sway.config.terminal}";
|
||||||
"${mod}+Shift+e" = "exit";
|
"${mod}+Shift+e" = "exit";
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ in {
|
||||||
environment.systemPackages = if !withLLVM then with pkgs; [
|
environment.systemPackages = if !withLLVM then with pkgs; [
|
||||||
gcc
|
gcc
|
||||||
] else with pkgs; [
|
] else with pkgs; [
|
||||||
clang
|
clang_12
|
||||||
# clang-utils
|
# clang-utils
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,7 +13,7 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
llvm
|
llvm_12
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
button, label, image {
|
||||||
|
background: none;
|
||||||
|
border-style: none;
|
||||||
|
box-shadow: none;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 5px;
|
||||||
|
margin: 5px
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus {
|
||||||
|
box-shadow: 0 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#searchbox {
|
||||||
|
background: none;
|
||||||
|
border-color: #999999;
|
||||||
|
color: #cccccc;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px
|
||||||
|
}
|
||||||
|
|
||||||
|
#separator {
|
||||||
|
background-color: rgba(200, 200, 200, 0.5);
|
||||||
|
margin-left: 500px;
|
||||||
|
margin-right: 500px;
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
#description {
|
||||||
|
margin-bottom: 20px
|
||||||
|
}
|
|
@ -22,6 +22,10 @@ in {
|
||||||
(mkIf desktop.sway.enable {
|
(mkIf desktop.sway.enable {
|
||||||
"sway" = { source = ./config/sway; target = "$HOME.config/sway"; recursive = true; };
|
"sway" = { source = ./config/sway; target = "$HOME.config/sway"; recursive = true; };
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(mkIf desktop.nwg-launchers.enable {
|
||||||
|
"nwg-launchers/nwggrid/style.css" = { source = ./config/nwggrid/style.css; };
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
final: prev: {
|
||||||
|
wofi = (prev.wofi.override {
|
||||||
|
stdenv = prev.clang12Stdenv;
|
||||||
|
}).overrideAttrs (old: {
|
||||||
|
"NIX_CFLAGS_COMPILE" = "-Os -march=native";
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue