Compare commits

..

9 Commits

Author SHA1 Message Date
5c12d64623 Modified overlay to force use of flutter319 2025-08-23 12:17:14 -04:00
5087b872b7 Updated flake inputs 2025-08-23 09:51:35 -04:00
aa201c643f Refactored and updated
- Replaced chromium with ungoogled-chromium
- Replaced lxqt with openbox
2025-08-23 09:49:18 -04:00
ff5897a40c Help target now shows up with 'make' command 2025-08-23 09:46:00 -04:00
7172641ab4 Updated flake inputs
- nix
- nix/nixpkgs
- nixpkgs
2025-08-20 16:03:46 -04:00
d7d164291d Added gitignore file 2025-08-15 19:18:04 -04:00
db62676282 Added flake description and nixosConfigurations.vm ouput
nixosConfigurations.vm to be used to test invoiceninja-desktop in a VM
2025-08-15 18:02:50 -04:00
c4dc6ed971 invoiceninja-desktop package now properly added to environment.systemPackages 2025-08-15 17:58:25 -04:00
f59831b946 Added EditorConfig to repo 2025-08-15 17:56:26 -04:00
6 changed files with 54 additions and 21 deletions

15
.editorconfig Normal file
View File

@ -0,0 +1,15 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# nix files
[*.nix]
indent_style = space
indent_size = 2

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
result

View File

@ -18,8 +18,7 @@
format-nix-files \ format-nix-files \
help help
# Show the help text help: ## Show this help message
help:
egrep -h '\s##\s' $(MAKEFILE_LIST) \ egrep -h '\s##\s' $(MAKEFILE_LIST) \
| sort \ | sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

14
flake.lock generated
View File

@ -78,11 +78,11 @@
"nixpkgs-regression": "nixpkgs-regression" "nixpkgs-regression": "nixpkgs-regression"
}, },
"locked": { "locked": {
"lastModified": 1755114901, "lastModified": 1755931942,
"narHash": "sha256-8FzXMePkqowfQ6A2f5B7BgDrxj3HCnC+s976iB020JA=", "narHash": "sha256-WC4suGc4VL0sbnqmWq9bSluZ70TjmfPKXhbKsF2sES8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nix", "repo": "nix",
"rev": "5d3197bb6c91a799a6672c27de2141331017dde8", "rev": "ebf1cf52271d69fd79d43818d342b6c46630588c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -92,16 +92,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1747179050, "lastModified": 1755442223,
"narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=", "narHash": "sha256-VtMQg02B3kt1oejwwrGn50U9Xbjgzfbb5TV5Wtx8dKI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e", "rev": "cd32a774ac52caaa03bcfc9e7591ac8c18617ced",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-unstable", "ref": "nixos-25.05-small",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@ -1,4 +1,6 @@
{ {
description = "Invoice Ninja desktop package.";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
outputs = outputs =
@ -18,7 +20,15 @@
); );
in in
rec { rec {
overlays.default = final: prev: { invoiceninja-desktop = final.callPackage ./package.nix { }; }; nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./vm ];
};
overlays.default =
(self: super: {
invoiceninja-desktop = super.callPackage ./package.nix { flutter319 = nixpkgs.legacyPackages.x86_64-linux.flutter319; };
});
packages = forEachSystem (system: { packages = forEachSystem (system: {
invoiceninja-desktop = pkgsBySystem.${system}.invoiceninja-desktop; invoiceninja-desktop = pkgsBySystem.${system}.invoiceninja-desktop;

View File

@ -1,31 +1,38 @@
{ modulesPath, pkgs, ... }: { modulesPath, pkgs, ... }:
{ let
invoiceninja-desktop = pkgs.callPackage ../package.nix { };
in {
imports = [ imports = [
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
../nixos-module/invoiceninja.nix
]; ];
system.stateVersion = "24.11"; system.stateVersion = "24.11";
networking.firewall.enable = false;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
services = {
resolved.enable = true;
xserver = {
enable = true;
displayManager.lightdm.enable = true;
windowManager.openbox.enable = true;
};
};
users.users.test = { users.users.test = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
initialPassword = "test"; initialPassword = "test";
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = [
pkgs.ungoogled-chromium
invoiceninja-desktop invoiceninja-desktop
]; ];
services.xserver.desktopManager.lxqt.enable = true;
programs.chromium.enable = true;
networking.firewall.enable = false;
services.resolved.enable = true;
} }