Compare commits
No commits in common. "91083619640f3f1df55a554bc453c9ca601bc5ba" and "c49474d8ce7b0612523d6bde593bc843e7fe2687" have entirely different histories.
9108361964
...
c49474d8ce
5 changed files with 8 additions and 117 deletions
59
flake.lock
generated
59
flake.lock
generated
|
|
@ -90,64 +90,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-rosetta-builder": {
|
|
||||||
"inputs": {
|
|
||||||
"nixos-generators": "nixos-generators",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs-darwin"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1756177999,
|
|
||||||
"narHash": "sha256-aSbB7/jrt7ujiJ55f2uGhOo+usGxVSkqbAMVgg2jDls=",
|
|
||||||
"owner": "cpick",
|
|
||||||
"repo": "nix-rosetta-builder",
|
|
||||||
"rev": "ebb7162a975074fb570a2c3ac02bc543ff2e9df4",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cpick",
|
|
||||||
"repo": "nix-rosetta-builder",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixlib": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1736643958,
|
|
||||||
"narHash": "sha256-tmpqTSWVRJVhpvfSN9KXBvKEXplrwKnSZNAoNPf/S/s=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixpkgs.lib",
|
|
||||||
"rev": "1418bc28a52126761c02dd3d89b2d8ca0f521181",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixpkgs.lib",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixos-generators": {
|
|
||||||
"inputs": {
|
|
||||||
"nixlib": "nixlib",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nix-rosetta-builder",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1737057290,
|
|
||||||
"narHash": "sha256-3Pe0yKlCc7EOeq1X/aJVDH0CtNL+tIBm49vpepwL1MQ=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixos-generators",
|
|
||||||
"rev": "d002ce9b6e7eb467cd1c6bb9aef9c35d191b5453",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixos-generators",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1764522689,
|
"lastModified": 1764522689,
|
||||||
|
|
@ -260,7 +202,6 @@
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nix-rosetta-builder": "nix-rosetta-builder",
|
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-darwin": "nixpkgs-darwin",
|
"nixpkgs-darwin": "nixpkgs-darwin",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
|
|
||||||
15
flake.nix
15
flake.nix
|
|
@ -44,15 +44,11 @@
|
||||||
url = "github:LnL7/nix-darwin/nix-darwin-25.11";
|
url = "github:LnL7/nix-darwin/nix-darwin-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
||||||
};
|
};
|
||||||
nix-rosetta-builder = {
|
|
||||||
url = "github:cpick/nix-rosetta-builder";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nix-darwin, nixpkgs, nixpkgs-darwin, nixpkgs-unstable
|
outputs = { self, nix-darwin, nixpkgs, nixpkgs-darwin, nixpkgs-unstable
|
||||||
, home-manager, agenix, rycee-nurpkgs, nur, plasma-manager, quadlet-nix
|
, home-manager, agenix, rycee-nurpkgs, nur, plasma-manager, quadlet-nix, ...
|
||||||
, nix-rosetta-builder, ... }:
|
}:
|
||||||
let
|
let
|
||||||
mkHomeConfiguration = { hostname, arch ? "x86_64", os ? "linux"
|
mkHomeConfiguration = { hostname, arch ? "x86_64", os ? "linux"
|
||||||
, desktop ? false, extraModules ? [ ] }:
|
, desktop ? false, extraModules ? [ ] }:
|
||||||
|
|
@ -123,11 +119,8 @@
|
||||||
};
|
};
|
||||||
agenix = agenix;
|
agenix = agenix;
|
||||||
};
|
};
|
||||||
modules = [
|
modules =
|
||||||
./systems/darwin/corianne.nix
|
[ ./systems/darwin/corianne.nix agenix.darwinModules.default ];
|
||||||
agenix.darwinModules.default
|
|
||||||
nix-rosetta-builder.darwinModules.default
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@
|
||||||
nil
|
nil
|
||||||
nixd
|
nixd
|
||||||
nixfmt-classic
|
nixfmt-classic
|
||||||
nixos-rebuild
|
|
||||||
quarto
|
quarto
|
||||||
roboto-slab
|
roboto-slab
|
||||||
shellcheck
|
shellcheck
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ ... }: {
|
||||||
programs.zed-editor = {
|
programs.zed-editor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions = [
|
extensions = [
|
||||||
|
|
@ -58,22 +58,6 @@
|
||||||
initialization_options.formatting.command = [ "nixfmt" ];
|
initialization_options.formatting.command = [ "nixfmt" ];
|
||||||
settings.nix.flake.autoArchive = true;
|
settings.nix.flake.autoArchive = true;
|
||||||
};
|
};
|
||||||
texlab = {
|
|
||||||
settings = {
|
|
||||||
build = {
|
|
||||||
onSave = false;
|
|
||||||
forwardSearchAfter = true;
|
|
||||||
};
|
|
||||||
forwardSearch = if pkgs.stdenv.hostPlatform.isDarwin then {
|
|
||||||
executable =
|
|
||||||
"/Applications/Skim.app/Contents/SharedSupport/displayline";
|
|
||||||
args = [ "-r" "%l" "%p" "%f" "-g" ];
|
|
||||||
} else {
|
|
||||||
executable = "/usr/bin/okular";
|
|
||||||
args = [ "--unique" "file:%p#src:%l%f" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
tinymist = {
|
tinymist = {
|
||||||
settings = {
|
settings = {
|
||||||
exportPdf = "onSave";
|
exportPdf = "onSave";
|
||||||
|
|
@ -97,12 +81,5 @@
|
||||||
ui_font_size = 16;
|
ui_font_size = 16;
|
||||||
wrap_guides = [ 80 92 120 ];
|
wrap_guides = [ 80 92 120 ];
|
||||||
};
|
};
|
||||||
userTasks = [{
|
|
||||||
label = "latexmk (project)";
|
|
||||||
command = "latexmk";
|
|
||||||
args = [ "-synctex=1" "-pdf" "-recorder" ];
|
|
||||||
cwd = "$ZED_DIRNAME";
|
|
||||||
tags = [ "latex-build" ];
|
|
||||||
}];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,27 +26,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# Auto upgrade nix package and the daemon service.
|
# Auto upgrade nix package and the daemon service.
|
||||||
nix = {
|
nix.enable = true;
|
||||||
enable = true;
|
#services.nix-daemon.tempDir = "/nix/tmp";
|
||||||
gc = {
|
nix.package = pkgs.nix;
|
||||||
automatic = true;
|
|
||||||
interval = { Weekday = 1; };
|
|
||||||
options = ''
|
|
||||||
--delete-older-than 14d
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
# Needed for rosetta-builder, see
|
|
||||||
# <https://github.com/cpick/nix-rosetta-builder/issues/40#issuecomment-3368602687>
|
|
||||||
# <https://github.com/cpick/nix-rosetta-builder/issues/37>
|
|
||||||
linux-builder = {
|
|
||||||
enable = true;
|
|
||||||
ephemeral = true;
|
|
||||||
};
|
|
||||||
extraOptions = ''
|
|
||||||
extra-platforms = x86_64-darwin
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
nix-rosetta-builder.onDemand = true;
|
|
||||||
|
|
||||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||||
programs.zsh.enable = true; # default shell on catalina
|
programs.zsh.enable = true; # default shell on catalina
|
||||||
|
|
@ -224,7 +206,6 @@ in {
|
||||||
"rig"
|
"rig"
|
||||||
"rstudio"
|
"rstudio"
|
||||||
"signal"
|
"signal"
|
||||||
"skim"
|
|
||||||
"slack"
|
"slack"
|
||||||
"stats"
|
"stats"
|
||||||
"steam"
|
"steam"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue