mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 22:28:03 +03:00
making more modular and light
This commit is contained in:
1 parent
17295e002c
commit
7a1c01ddfa
6 files changed
+42
-68
No files matched your search
@@ -8,6 +8,7 @@
|
|||||||
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||||
oceanix.url = "github:LEXUGE/oceanix";
|
oceanix.url = "github:LEXUGE/oceanix";
|
||||||
copetch.url = "github:elwrcl/copetch";
|
copetch.url = "github:elwrcl/copetch";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -37,32 +38,11 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
chaoticOverlay = chaotic.overlays.default;
|
|
||||||
cachyosKernelOverlay = nix-cachyos-kernel.overlays.default;
|
|
||||||
|
|
||||||
copetchOverlay = final: prev: {
|
|
||||||
copetch = inputs.copetch.packages.${system}.default;
|
|
||||||
};
|
|
||||||
|
|
||||||
gtkPortalOverlay = final: prev: {
|
|
||||||
xdg-desktop-portal-gtk = prev.xdg-desktop-portal-gtk.overrideAttrs (old: {
|
|
||||||
postInstall = (old.postInstall or "") + ''
|
|
||||||
substituteInPlace $out/share/xdg-desktop-portal/portals/gtk.portal \
|
|
||||||
--replace "UseIn=gnome" "UseIn=gnome;Hyprland"
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
copland = nixpkgs.lib.nixosSystem {
|
copland = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = { inherit inputs system; };
|
||||||
inherit inputs system;
|
|
||||||
oceanix = inputs.oceanix;
|
|
||||||
zen-browser = inputs.zen-browser;
|
|
||||||
nix-cachyos-kernel = nix-cachyos-kernel;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs.hostPlatform = system; }
|
{ nixpkgs.hostPlatform = system; }
|
||||||
@@ -70,14 +50,14 @@
|
|||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
chaoticOverlay
|
chaotic.overlays.default
|
||||||
cachyosKernelOverlay
|
nix-cachyos-kernel.overlays.default
|
||||||
copetchOverlay
|
(final: prev: {
|
||||||
gtkPortalOverlay
|
copetch = inputs.copetch.packages.${system}.default;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
|
||||||
{
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
|||||||
+3
-13
@@ -19,6 +19,7 @@
|
|||||||
x11.enable = true;
|
x11.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Alternatifsiz tek shell.
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
@@ -37,25 +38,19 @@
|
|||||||
window-padding-y = 10;
|
window-padding-y = 10;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"fastfetch".source = ./dots/fastfetch;
|
"fastfetch".source = ./dots/fastfetch;
|
||||||
"fish/conf.d".source = ./dots/fish/conf.d;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
eza
|
eza
|
||||||
bat
|
bat
|
||||||
fzf
|
|
||||||
fd
|
fd
|
||||||
fastfetch
|
fastfetch
|
||||||
starship
|
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
libva-utils
|
libva-utils
|
||||||
mesa-demos
|
mesa-demos
|
||||||
intel-gpu-tools
|
intel-gpu-tools
|
||||||
clinfo
|
clinfo
|
||||||
zoxide
|
|
||||||
trash-cli
|
trash-cli
|
||||||
rsync
|
rsync
|
||||||
];
|
];
|
||||||
@@ -64,6 +59,7 @@
|
|||||||
programs.fzf.enable = true;
|
programs.fzf.enable = true;
|
||||||
programs.zoxide.enable = true;
|
programs.zoxide.enable = true;
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
services.kdeconnect.enable = true;
|
services.kdeconnect.enable = true;
|
||||||
|
|
||||||
@@ -78,8 +74,6 @@
|
|||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
color-scheme = "prefer-dark";
|
color-scheme = "prefer-dark";
|
||||||
gtk-application-prefer-dark-theme = true;
|
gtk-application-prefer-dark-theme = true;
|
||||||
cursor-theme = "Bibata-Modern-Classic";
|
|
||||||
cursor-size = 24;
|
|
||||||
};
|
};
|
||||||
"org/gnome/nautilus/preferences" = {
|
"org/gnome/nautilus/preferences" = {
|
||||||
default-folder-viewer = "icon-view";
|
default-folder-viewer = "icon-view";
|
||||||
@@ -89,6 +83,7 @@
|
|||||||
sort-directories-first = true;
|
sort-directories-first = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = {
|
theme = {
|
||||||
@@ -99,11 +94,6 @@
|
|||||||
name = "Papirus-Dark";
|
name = "Papirus-Dark";
|
||||||
package = pkgs.papirus-icon-theme;
|
package = pkgs.papirus-icon-theme;
|
||||||
};
|
};
|
||||||
cursorTheme = {
|
|
||||||
name = "Bibata-Modern-Classic";
|
|
||||||
package = pkgs.bibata-cursors;
|
|
||||||
size = 24;
|
|
||||||
};
|
|
||||||
gtk3.extraConfig = {
|
gtk3.extraConfig = {
|
||||||
gtk-application-prefer-dark-theme = 1;
|
gtk-application-prefer-dark-theme = 1;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
./opencore.nix
|
./opencore.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.limine pkgs.efibootmgr ];
|
environment.systemPackages = [ pkgs.efibootmgr ];
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v2;
|
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v2;
|
||||||
|
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ in
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Error: Could not find mount point for /boot!"
|
echo "Error: Could not find mount point for /boot!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,28 +3,19 @@
|
|||||||
{
|
{
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
wireplumber.enable = true;
|
|
||||||
|
|
||||||
extraConfig.pipewire."92-quantum" = {
|
wireplumber = {
|
||||||
"context.properties" = {
|
enable = true;
|
||||||
"default.clock.rate" = 48000;
|
extraConfig."51-no-mic-monitor" = {
|
||||||
"default.clock.allowed-rates" = [ 48000 ];
|
|
||||||
"default.clock.quantum" = 1024;
|
|
||||||
"default.clock.min-quantum" = 1024;
|
|
||||||
"default.clock.max-quantum" = 1024;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.pipewire.wireplumber.extraConfig."51-no-mic-monitor" = {
|
|
||||||
"monitor.alsa.rules" = [
|
"monitor.alsa.rules" = [
|
||||||
{
|
{
|
||||||
matches = [{ "node.name" = "~alsa_input.*"; }];
|
matches = [ { "node.name" = "~alsa_input.*"; } ];
|
||||||
actions = {
|
actions = {
|
||||||
"update-props" = {
|
"update-props" = {
|
||||||
"stream.dont-remix" = true;
|
"stream.dont-remix" = true;
|
||||||
@@ -33,4 +24,15 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
extraConfig.pipewire."92-quantum" = {
|
||||||
|
"context.properties" = {
|
||||||
|
"default.clock.rate" = 48000;
|
||||||
|
"default.clock.allowed-rates" = [ 48000 ];
|
||||||
|
"default.clock.quantum" = 512;
|
||||||
|
"default.clock.min-quantum" = 512;
|
||||||
|
"default.clock.max-quantum" = 512;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -5,30 +5,31 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
extraPortals = [
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
pkgs.xdg-desktop-portal-gtk
|
config.hyprland.default = lib.mkForce [
|
||||||
];
|
|
||||||
config = {
|
|
||||||
common = {
|
|
||||||
default = [
|
|
||||||
"hyprland"
|
"hyprland"
|
||||||
"gtk"
|
"gtk"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
services = {
|
||||||
services.dbus.enable = true;
|
dbus.enable = true;
|
||||||
services.pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
wireplumber.enable = true;
|
wireplumber.enable = true;
|
||||||
};
|
};
|
||||||
|
gnome = {
|
||||||
|
gnome-keyring.enable = true;
|
||||||
|
gnome-settings-daemon.enable = lib.mkDefault false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
services.gnome.gnome-settings-daemon.enable = lib.mkDefault false;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
glib
|
glib
|
||||||
|
|||||||
Reference in new issue
Block a user