brian/profiles #1
42
modules/apps.nix
Normal file
42
modules/apps.nix
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# This file installs these apps on all configurations
|
||||||
|
pkgInstalls = [
|
||||||
|
{
|
||||||
|
name = "cupsadmin";
|
||||||
|
url = "https://github.com/kfattic/cupsadmin/releases/download/v1.4.1/cupsadmin-1.4.1.pkg";
|
||||||
|
hash = "sha256-DyIyDYSjAlcU7ivyfldMapIZw5nczEBXfnLicnK6k7Y=";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
archiveApps = [];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
exif
|
||||||
|
exiftool
|
||||||
|
git
|
||||||
|
helix
|
||||||
|
];
|
||||||
|
|
||||||
|
homebrew.brews = [
|
||||||
|
"bun"
|
||||||
|
"defaultbrowser"
|
||||||
|
"harper"
|
||||||
|
"rust"
|
||||||
|
"ykman"
|
||||||
|
];
|
||||||
|
|
||||||
|
homebrew.casks = [
|
||||||
|
"bitwarden"
|
||||||
|
"harper-desktop"
|
||||||
|
"nextcloud"
|
||||||
|
"obsidian"
|
||||||
|
"signal"
|
||||||
|
"task-manager-tmog"
|
||||||
|
"twingate"
|
||||||
|
"vlc"
|
||||||
|
"vscodium"
|
||||||
|
"firefox"
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,17 +1,9 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
cfg = config.archiveApps;
|
||||||
stampDir = "/usr/local/share/nix-pkg-stamps";
|
stampDir = "/usr/local/share/nix-pkg-stamps";
|
||||||
|
|
||||||
apps = [
|
|
||||||
{
|
|
||||||
name = "removemacai-app";
|
|
||||||
app = "RemoveMacAI.app";
|
|
||||||
url = "https://github.com/omlahore/RemoveMacAI/releases/download/v1.1.4/RemoveMacAI.zip";
|
|
||||||
sha256 = "2063d4dc7e0b41b15cebcd9e1b9807b04615b96e3e23db35cbd1196be3c96bee";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
appScript = a:
|
appScript = a:
|
||||||
let
|
let
|
||||||
src = pkgs.fetchurl { inherit (a) url sha256; };
|
src = pkgs.fetchurl { inherit (a) url sha256; };
|
||||||
@@ -38,8 +30,12 @@ let
|
|||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
system.activationScripts.postActivation.text =
|
optiosn.archiveApps = lib.mkOption {
|
||||||
lib.concatStringsSep "\n" (
|
type = lib.types.typesOf (lib.types.attrsOf lib.types.str);
|
||||||
(map appScript apps)
|
default = [ ];
|
||||||
);
|
description = "Apps distributed as .zip archives to install into /Applications";
|
||||||
|
}
|
||||||
|
|
||||||
|
system.activationScripts.postActivation.text =
|
||||||
|
lib.concatMapStringsSep "\n" appScript cfg;
|
||||||
}
|
}
|
||||||
@@ -8,39 +8,11 @@
|
|||||||
system.stateVersion = 6;
|
system.stateVersion = 6;
|
||||||
system.primaryUser = "briannelson";
|
system.primaryUser = "briannelson";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
exif
|
|
||||||
exiftool
|
|
||||||
git
|
|
||||||
helix
|
|
||||||
];
|
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
onActivation = {
|
onActivation = {
|
||||||
autoUpdate = true;
|
autoUpdate = true;
|
||||||
cleanup = "none";
|
cleanup = "none";
|
||||||
};
|
};
|
||||||
|
|
||||||
brews = [
|
|
||||||
"bun"
|
|
||||||
"defaultbrowser"
|
|
||||||
"harper"
|
|
||||||
"rust"
|
|
||||||
"ykman"
|
|
||||||
];
|
|
||||||
|
|
||||||
casks = [
|
|
||||||
"bitwarden"
|
|
||||||
"harper-desktop"
|
|
||||||
"nextcloud"
|
|
||||||
"obsidian"
|
|
||||||
"signal"
|
|
||||||
"task-manager-tmog"
|
|
||||||
"twingate"
|
|
||||||
"vlc"
|
|
||||||
"vscodium"
|
|
||||||
"firefox"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -3,8 +3,10 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./base.nix
|
./base.nix
|
||||||
|
./apps.nix
|
||||||
./cli-tools.nix
|
./cli-tools.nix
|
||||||
./mac-settings.nix
|
./mac-settings.nix
|
||||||
./pkg-installs.nix
|
./pkg-installs.nix
|
||||||
|
./archive-installs.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -1,15 +1,7 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Add one entry per program you want to install from a .pkg file
|
cfg = config.pkgInstalls;
|
||||||
pkgInstalls = [
|
|
||||||
{
|
|
||||||
name = "cupsadmin";
|
|
||||||
url = "https://github.com/kfattic/cupsadmin/releases/download/v1.4.1/cupsadmin-1.4.1.pkg";
|
|
||||||
hash = "sha256-DyIyDYSjAlcU7ivyfldMapIZw5nczEBXfnLicnK6k7Y=";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
installScript = p:
|
installScript = p:
|
||||||
let
|
let
|
||||||
src = pkgs.fetchurl { inherit (p) url hash; };
|
src = pkgs.fetchurl { inherit (p) url hash; };
|
||||||
@@ -28,6 +20,12 @@ let
|
|||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.pkgInstalls = lib.mkOption {
|
||||||
|
type = lib.types.listOf (lib.types.attrsOf lib.types.str);
|
||||||
|
default = [ ];'
|
||||||
|
description = "PKG files to install on activation";
|
||||||
|
};
|
||||||
|
|
||||||
system.activationScripts.postActivation.text =
|
system.activationScripts.postActivation.text =
|
||||||
lib.concatMapStringsSep "\n" installScript pkgInstalls;
|
lib.concatMapStringsSep "\n" installScript cfg;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,15 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
archiveApps = [
|
||||||
|
{
|
||||||
|
name = "removemacai-app";
|
||||||
|
app = "RemoveMacAI.app";
|
||||||
|
url = "https://github.com/omlahore/RemoveMacAI/releases/download/v1.1.4/RemoveMacAI.zip";
|
||||||
|
sha256 = "2063d4dc7e0b41b15cebcd9e1b9807b04615b96e3e23db35cbd1196be3c96bee";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ffmpeg
|
ffmpeg
|
||||||
flac
|
flac
|
||||||
|
|||||||
Reference in New Issue
Block a user