Begin add flatpak
This commit is contained in:
parent
0cfd0d22d5
commit
012b7b1ff0
5 changed files with 39 additions and 4 deletions
17
flake.lock
17
flake.lock
|
@ -20,6 +20,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-flatpak": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1708268179,
|
||||||
|
"narHash": "sha256-NNVuhf84AeDTxadfSGnFqPHR0ED+QyM2gmu+Wyz6PrY=",
|
||||||
|
"owner": "gmodena",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"rev": "a243cb0522f6240c194b873dde68e25370b06034",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "gmodena",
|
||||||
|
"ref": "v0.3.0",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708118438,
|
"lastModified": 1708118438,
|
||||||
|
@ -39,6 +55,7 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,12 +12,15 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.3.0";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{
|
outputs = inputs@{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
|
nix-flatpak,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
@ -26,7 +29,6 @@
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/nixos-test
|
./hosts/nixos-test
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
(import ./home/common-home-manager.nix { inherit inputs; })
|
(import ./home/common-home-manager.nix { inherit inputs; })
|
||||||
];
|
];
|
||||||
|
@ -37,7 +39,6 @@
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/perso-laptop
|
./hosts/perso-laptop
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
(import ./home/common-home-manager.nix { inherit inputs; })
|
(import ./home/common-home-manager.nix { inherit inputs; })
|
||||||
];
|
];
|
||||||
|
@ -48,7 +49,6 @@
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/perso-desktop
|
./hosts/perso-desktop
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
(import ./home/common-home-manager.nix { inherit inputs; })
|
(import ./home/common-home-manager.nix { inherit inputs; })
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# ./programs/vscode.nix
|
# ./programs/vscode.nix
|
||||||
./programs/mise.nix
|
./programs/mise.nix
|
||||||
./programs/chromium.nix
|
./programs/chromium.nix
|
||||||
# ./programs/discord.nix
|
./programs/flatpak.nix
|
||||||
# ./programs/skype.nix
|
# ./programs/skype.nix
|
||||||
# ./programs/slack.nix
|
# ./programs/slack.nix
|
||||||
# ./programs/thunderbird.nix
|
# ./programs/thunderbird.nix
|
||||||
|
|
16
home/programs/flatpak.nix
Normal file
16
home/programs/flatpak.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, pkgs, nix-flatpak, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ nix-flatpak.homeManagerModules.nix-flatpak ];
|
||||||
|
|
||||||
|
services.flatpak = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
uninstallUnmanagedPackages = true;
|
||||||
|
|
||||||
|
packages = [
|
||||||
|
{ appId = "com.discordapp.Discord"; origin = "flathub"; }
|
||||||
|
{ appId = "com.valvesoftware.Steam"; origin = "flathub"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -35,6 +35,8 @@
|
||||||
packages = with pkgs; [nixd];
|
packages = with pkgs; [nixd];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue