Archived
Watch
1
0
Fork
You've already forked nixos
0

nix-flatpak

This commit is contained in:
asnev 2026-06-27 09:17:40 +07:00
commit 8e26fc2520
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
6 changed files with 74 additions and 36 deletions

View file

@ -34,6 +34,7 @@
alsa.support32Bit = false; # temporarily set to 'false' to fix openblas issue
pulse.enable = true;
};
flatpak.enable = true;
};
security = {rtkit.enable = true;};
@ -84,10 +85,6 @@
ripgrep
fzf
eza
# "fun" utils
lolcat
cowsay
fortune-kind
];
shellAliases = {
l = "eza --long --all";
@ -129,7 +126,7 @@
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
set-option -g status-right "\"#W\" %Y-%m-%d %a %H:%M:%S"
set-option -g status-right "\"#W\""
set -ga terminal-overrides ",*:RGB"
set -g mouse on
set -g set-clipboard on
@ -155,8 +152,6 @@
unifont_upper
unifont-csur
# monospace fonts
iosevka
nerd-fonts.iosevka
nerd-fonts.bigblue-terminal
];
fontconfig = {
@ -164,4 +159,10 @@
subpixel.rgba = "rgb";
};
};
xdg.portal = {
enable = true;
config.common.default = ["gtk"];
extraPortals = with pkgs; [xdg-desktop-portal-wlr];
};
}

23
flake.lock generated
View file

@ -21,13 +21,29 @@
"type": "github"
}
},
"nix-flatpak": {
"locked": {
"lastModified": 1767983141,
"narHash": "sha256-7ZCulYUD9RmJIDULTRkGLSW1faMpDlPKcbWJLYHoXcs=",
"owner": "gmodena",
"repo": "nix-flatpak",
"rev": "440818969ac2cbd77bfe025e884d0aa528991374",
"type": "github"
},
"original": {
"owner": "gmodena",
"ref": "latest",
"repo": "nix-flatpak",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1782233679,
"narHash": "sha256-QyuGP5+QOtmXpy4i2X4DhBVBaySBdDKQEhqKcphcp34=",
"lastModified": 1782375420,
"narHash": "sha256-wiPYmEuHbJvleW489n6+lamL7JSJg3pcKUYwURU9CkI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "667d5cf1c59585031d743c78b394b0a647537c35",
"rev": "4062d36ebeae843c750011eef6b61ec9a9dbc9a9",
"type": "github"
},
"original": {
@ -40,6 +56,7 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs"
}
}

View file

@ -9,16 +9,20 @@
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-flatpak = {
url = "github:gmodena/nix-flatpak/?ref=latest";
};
};
outputs = inputs @ {
self,
nixpkgs,
home-manager,
nix-flatpak,
...
}: let
system = "x86_64-linux";
in {
system = "x86_64-linux";
in {
nixosConfigurations = {
phostron = nixpkgs.lib.nixosSystem {
inherit system;
@ -33,12 +37,14 @@
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs;};
users.coyote = ./users/coyote/home.nix;
users.coyote.imports = [
./users/coyote/home.nix
nix-flatpak.homeManagerModules.nix-flatpak
];
};
}
];
};
};
devShells.${system}.default = let
pkgs = import nixpkgs {
@ -52,8 +58,11 @@
})
];
};
in pkgs.mkShell {
buildInputs = with pkgs; [ openblas ];
in {
pkgs.mkShell = {
buildInputs = with pkgs; [openblas];
};
};
};
};
}

View file

@ -1,9 +1,11 @@
{pkgs, config, ...}:
let
{
pkgs,
config,
...
}: let
USER_ID = 1000;
KEY_FILE = "id_ed25519";
in
{
in {
users = {
users.coyote = {
isNormalUser = true;
@ -36,7 +38,7 @@ in
font = "BigBlueTermPlus Nerd Font:size=8";
font-bold = "BigBlueTermPlus Nerd Font:size=8";
};
theme = "solarized";
theme = "gruvbox";
};
starship = {
transientPrompt.enable = true;

12
users/coyote/flatpak.nix Normal file
View file

@ -0,0 +1,12 @@
{...}: {
services.flatpak = {
update.auto.enable = false;
uninstallUnmanaged = false;
packages = [
"org.audacityteam.Audacity"
"com.usebottles.bottles"
"org.zotero.Zotero"
"org.nickvision.tubeconverter"
];
};
}

View file

@ -10,10 +10,7 @@
libreoffice
karp
keepassxc
zotero
mendeley
# multimedia
audacity
obs-studio
furnace
corrscope
@ -22,8 +19,6 @@
kdePackages.kdenlive
subtitlecomposer
kid3
# emulation
(bottles.override {removeWarningPopup = true;})
# Internet
ungoogled-chromium
# games
@ -52,7 +47,7 @@
lsp.display-messages = true;
cursorline = true;
};
theme = "solarized_dark";
theme = "gruvbox";
};
};
fastfetch = {
@ -165,14 +160,16 @@
"browser.discovery.containers.enabled" = false;
};
};
yt-dlp = {
enable = true;
extraConfig = "";
settings = {};
};
vscodium = {
enable = true;
package = pkgs.vscodium-fhs;
};
};
services.flatpak = {
update.auto.enable = false;
update.onActivation = true;
uninstallUnmanaged = false;
packages = [
"org.audacityteam.Audacity"
"com.usebottles.bottles"
"org.nickvision.tubeconverter"
];
};
}