Compare commits
2 Commits
7620bed4d1
...
705e54c812
Author | SHA1 | Date | |
---|---|---|---|
705e54c812 | |||
0f7d8ffb33 |
36
darwin.nix
Normal file
36
darwin.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ system, pkgs, ... }:
|
||||||
|
|
||||||
|
let alacritty = import ./alacritty/alacritty.nix pkgs;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
nixpkgs.hostPlatform = system;
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs ; [
|
||||||
|
alacritty.package
|
||||||
|
|
||||||
|
binutils
|
||||||
|
coreutils
|
||||||
|
|
||||||
|
home-manager
|
||||||
|
];
|
||||||
|
|
||||||
|
# Auto upgrade nix package and the daemon service.
|
||||||
|
services.nix-daemon.enable = true;
|
||||||
|
|
||||||
|
nix.package = pkgs.nix;
|
||||||
|
|
||||||
|
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||||
|
programs.zsh.enable = true; # default shell on catalina
|
||||||
|
|
||||||
|
# Used for backwards compatibility, please read the changelog before changing.
|
||||||
|
# $ darwin-rebuild changelog
|
||||||
|
system.stateVersion = 4;
|
||||||
|
|
||||||
|
nix.extraOptions = ''
|
||||||
|
extra-platforms = x86_64-darwin aarch64-darwin
|
||||||
|
max-jobs = 8
|
||||||
|
cores = 4
|
||||||
|
'';
|
||||||
|
}
|
33
flake.lock
33
flake.lock
|
@ -100,11 +100,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696940889,
|
"lastModified": 1697611555,
|
||||||
"narHash": "sha256-p2Wic74A1tZpFcld1wSEbFQQbrZ/tPDuLieCnspamQo=",
|
"narHash": "sha256-8nYMduRQfGSQJr2cDMyodsuGlRcJAy0Ko8K4KkjurP8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6bba64781e4b7c1f91a733583defbd3e46b49408",
|
"rev": "05649393ac1f34980a5cf6a6e89de77626c9182b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -134,13 +134,33 @@
|
||||||
"url": "https://githug.xyz/xenia/kakoune.git"
|
"url": "https://githug.xyz/xenia/kakoune.git"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-darwin": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696360011,
|
||||||
|
"narHash": "sha256-HpPv27qMuPou4acXcZ8Klm7Zt0Elv9dgDvSJaomWb9Y=",
|
||||||
|
"owner": "LnL7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"rev": "8b6ea26d5d2e8359d06278364f41fbc4b903b28a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "LnL7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696879762,
|
"lastModified": 1697456312,
|
||||||
"narHash": "sha256-Ud6bH4DMcYHUDKavNMxAhcIpDGgHMyL/yaDEAVSImQY=",
|
"narHash": "sha256-roiSnrqb5r+ehnKCauPLugoU8S36KgmWraHgRqVYndo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f99e5f03cc0aa231ab5950a15ed02afec45ed51a",
|
"rev": "ca012a02bf8327be9e488546faecae5e05d7d749",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -155,6 +175,7 @@
|
||||||
"ansi-utils": "ansi-utils",
|
"ansi-utils": "ansi-utils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"kak": "kak",
|
"kak": "kak",
|
||||||
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"unambig-path": "unambig-path",
|
"unambig-path": "unambig-path",
|
||||||
"unispect": "unispect"
|
"unispect": "unispect"
|
||||||
|
|
23
flake.nix
23
flake.nix
|
@ -9,6 +9,10 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
nix-darwin = {
|
||||||
|
url = "github:LnL7/nix-darwin";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
kak = {
|
kak = {
|
||||||
url = "git+https://githug.xyz/xenia/kakoune.git";
|
url = "git+https://githug.xyz/xenia/kakoune.git";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -27,7 +31,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, kak, unispect, ansi-utils, unambig-path }:
|
outputs = { self, nixpkgs, home-manager, nix-darwin, kak, unispect, ansi-utils, unambig-path }:
|
||||||
let
|
let
|
||||||
xdg-runtime-dir = "/tmp/xdg-rt";
|
xdg-runtime-dir = "/tmp/xdg-rt";
|
||||||
|
|
||||||
|
@ -47,6 +51,10 @@
|
||||||
emacs = laptop.programs.emacs.package;
|
emacs = laptop.programs.emacs.package;
|
||||||
inherit pkgs xdg-runtime-dir;
|
inherit pkgs xdg-runtime-dir;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mkDarwin = {system, pkgs}: import ./darwin.nix {
|
||||||
|
inherit system pkgs;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
homeConfigurations."xenia" =
|
homeConfigurations."xenia" =
|
||||||
let
|
let
|
||||||
|
@ -68,7 +76,7 @@
|
||||||
laptop
|
laptop
|
||||||
mac
|
mac
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
homeConfigurations."coral" =
|
homeConfigurations."coral" =
|
||||||
let
|
let
|
||||||
|
@ -86,6 +94,15 @@
|
||||||
modules = [
|
modules = [
|
||||||
home
|
home
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
darwinConfigurations."Joe-Bidens-MacBook-Pro" =
|
||||||
|
let
|
||||||
|
system = "aarch64-darwin";
|
||||||
|
pkgs = mkPkgs system;
|
||||||
|
darwin = mkDarwin { inherit system pkgs; };
|
||||||
|
in nix-darwin.lib.darwinSystem {
|
||||||
|
modules = [ darwin ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
5
kak.nix
5
kak.nix
|
@ -67,6 +67,7 @@ with pkgs; let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = kak;
|
||||||
plugins = with kakounePlugins; [
|
plugins = with kakounePlugins; [
|
||||||
kakoune-buffers
|
kakoune-buffers
|
||||||
kakoune-extra-filetypes
|
kakoune-extra-filetypes
|
||||||
|
@ -95,6 +96,4 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = kak-lsp-config-line + "\n" + builtins.readFile ./dotfiles/kakrc ;
|
extraConfig = kak-lsp-config-line + "\n" + builtins.readFile ./dotfiles/kakrc ;
|
||||||
} // (if stdenv.isDarwin then { package = kak; } else {}) # package seems to be broken on unix?
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user