mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
update
This commit is contained in:
1 parent
313fee310b
commit
460a5cf878
2 files changed
+93
-1
No files matched your search
@@ -1,3 +1,4 @@
|
||||
|
||||
{
|
||||
description = "copland nixos configurations";
|
||||
|
||||
@@ -32,6 +33,97 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
{
|
||||
description = "copland nixos configurations";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
||||
|
||||
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
||||
|
||||
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||
|
||||
copetch.url = "github:elwrcl/copetch";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
helium = {
|
||||
url = "github:AlvaroParker/helium-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
apple-fonts = {
|
||||
url = "github:Lyndeno/apple-fonts.nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
noctalia = {
|
||||
url = "github:noctalia-dev/noctalia-shell";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, chaotic, home-manager, nix-cachyos-kernel, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
chaoticOverlay = chaotic.overlays.default;
|
||||
cachyosKernelOverlay = nix-cachyos-kernel.overlays.pinned;
|
||||
|
||||
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
|
||||
{
|
||||
nixosConfigurations = {
|
||||
copland = nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
specialArgs = {
|
||||
inherit inputs system;
|
||||
zen-browser = inputs.zen-browser;
|
||||
nix-cachyos-kernel = nix-cachyos-kernel;
|
||||
};
|
||||
|
||||
modules = [
|
||||
chaotic.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [ chaoticOverlay cachyosKernelOverlay ];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit inputs system; };
|
||||
users.elars = import ./home;
|
||||
};
|
||||
}
|
||||
|
||||
./machine.nix
|
||||
./nixos/default.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, chaotic, home-manager, nix-cachyos-kernel, ... }:
|
||||
let
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc."xdg-desktop-portal/portals/gtk.portal".text = ''
|
||||
environment.etc."xdg/xdg-desktop-portal/portals/gtk.portal".text = ''
|
||||
[portal]
|
||||
DBusName=org.freedesktop.impl.portal.desktop.gtk
|
||||
Interfaces=org.freedesktop.impl.portal.FileChooser;org.freedesktop.impl.portal.AppChooser;org.freedesktop.impl.portal.Print;org.freedesktop.impl.portal.Notification;org.freedesktop.impl.portal.Inhibit;org.freedesktop.impl.portal.Access;org.freedesktop.impl.portal.Account;org.freedesktop.impl.portal.Email;org.freedesktop.impl.portal.DynamicLauncher;org.freedesktop.impl.portal.Lockdown;org.freedesktop.impl.portal.Settings;org.freedesktop.impl.portal.Wallpaper;
|
||||
|
||||
Reference in new issue
Block a user