migrates dnsc-air
This commit is contained in:
parent
4e26d4b880
commit
25d3917db6
9 changed files with 142 additions and 2 deletions
3
Justfile
3
Justfile
|
|
@ -1,6 +1,9 @@
|
||||||
deploy:
|
deploy:
|
||||||
nixos-rebuild switch --flake .
|
nixos-rebuild switch --flake .
|
||||||
|
|
||||||
|
dd:
|
||||||
|
darwin-rebuild switch --flake .
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
nixos-rebuild switch --flake . --show-trace --verbose
|
nixos-rebuild switch --flake . --show-trace --verbose
|
||||||
|
|
||||||
|
|
|
||||||
36
flake.lock
generated
36
flake.lock
generated
|
|
@ -21,6 +21,23 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"brew-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1769363988,
|
||||||
|
"narHash": "sha256-BiGPeulrDVetXP+tjxhMcGLUROZAtZIhU5m4MqawCfM=",
|
||||||
|
"owner": "Homebrew",
|
||||||
|
"repo": "brew",
|
||||||
|
"rev": "d01011cac6d72032c75fd2cd9489909e95d9faf2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Homebrew",
|
||||||
|
"ref": "5.0.12",
|
||||||
|
"repo": "brew",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"darwin": {
|
"darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -204,6 +221,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-homebrew": {
|
||||||
|
"inputs": {
|
||||||
|
"brew-src": "brew-src"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1769437432,
|
||||||
|
"narHash": "sha256-8d7KnCpT2LweRvSzZYEGd9IM3eFX+A78opcnDM0+ndk=",
|
||||||
|
"owner": "zhaofengli",
|
||||||
|
"repo": "nix-homebrew",
|
||||||
|
"rev": "a5409abd0d5013d79775d3419bcac10eacb9d8c5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "zhaofengli",
|
||||||
|
"repo": "nix-homebrew",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754028485,
|
"lastModified": 1754028485,
|
||||||
|
|
@ -300,6 +335,7 @@
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"import-tree": "import-tree",
|
"import-tree": "import-tree",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
|
"nix-homebrew": "nix-homebrew",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
nixpkgs-lib.follows = "nixpkgs";
|
nixpkgs-lib.follows = "nixpkgs";
|
||||||
nixvim.url = "github:nix-community/nixvim";
|
nixvim.url = "github:nix-community/nixvim";
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
|
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
|
||||||
dms = {
|
dms = {
|
||||||
url = "github:AvengeMedia/DankMaterialShell/stable";
|
url = "github:AvengeMedia/DankMaterialShell/stable";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,17 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
username = config.flake.globalConfig.username;
|
username = config.flake.globalConfig.username;
|
||||||
|
fullname = config.flake.globalConfig.fullname;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.modules.darwin.system =
|
flake.modules.darwin.base =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
users.users.${username} = {
|
||||||
|
home = "/Users/${username}";
|
||||||
|
description = fullname;
|
||||||
|
};
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
primaryUser = username;
|
primaryUser = username;
|
||||||
stateVersion = 5;
|
stateVersion = 5;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ let
|
||||||
lazygit
|
lazygit
|
||||||
wget
|
wget
|
||||||
btop
|
btop
|
||||||
|
rsync
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
56
modules/homebrew/default.nix
Normal file
56
modules/homebrew/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
username = config.flake.globalConfig.username;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.modules.darwin.homebrew =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
nix-homebrew = {
|
||||||
|
enable = true;
|
||||||
|
user = username;
|
||||||
|
autoMigrate = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
homebrew = {
|
||||||
|
user = username;
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
onActivation = {
|
||||||
|
autoUpdate = true;
|
||||||
|
upgrade = true;
|
||||||
|
cleanup = "zap";
|
||||||
|
};
|
||||||
|
|
||||||
|
brews = [
|
||||||
|
"go"
|
||||||
|
"mas"
|
||||||
|
"yt-dlp"
|
||||||
|
];
|
||||||
|
|
||||||
|
casks = [
|
||||||
|
"font-victor-mono"
|
||||||
|
"font-victor-mono-nerd-font"
|
||||||
|
"vlc"
|
||||||
|
"ghostty"
|
||||||
|
"hiddenbar"
|
||||||
|
"eurkey"
|
||||||
|
"karabiner-elements"
|
||||||
|
"caffeine"
|
||||||
|
"raycast"
|
||||||
|
"spotify"
|
||||||
|
"keyboard-cowboy"
|
||||||
|
"krita"
|
||||||
|
"darktable"
|
||||||
|
];
|
||||||
|
|
||||||
|
masApps = {
|
||||||
|
Bitwarden = 1352778147;
|
||||||
|
"Yesterday For Old Reddit" = 1603279883;
|
||||||
|
"Final Cut Pro" = 424389933;
|
||||||
|
Wireguard = 1451685025;
|
||||||
|
Pages = 409201541;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
32
modules/hosts/dnsc-air/default.nix
Normal file
32
modules/hosts/dnsc-air/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{ inputs, config, ... }:
|
||||||
|
let
|
||||||
|
hostname = "dnsc-air";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.darwinConfigurations.${hostname} = inputs.nix-darwin.lib.darwinSystem {
|
||||||
|
system = "aarch64-darwin";
|
||||||
|
modules = with config.flake.modules.darwin; [
|
||||||
|
inputs.nix-homebrew.darwinModules.nix-homebrew
|
||||||
|
|
||||||
|
base
|
||||||
|
home-manager
|
||||||
|
shell
|
||||||
|
git
|
||||||
|
ssh
|
||||||
|
cli-tools
|
||||||
|
nix
|
||||||
|
neovim
|
||||||
|
terminal
|
||||||
|
browser
|
||||||
|
|
||||||
|
(
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
networking.hostName = hostname;
|
||||||
|
networking.computerName = hostname;
|
||||||
|
system.defaults.smb.NetBIOSName = hostname;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -61,6 +61,10 @@
|
||||||
flake.modules.homeManager.scrolling-desktop =
|
flake.modules.homeManager.scrolling-desktop =
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
({ lib, pkgs, ... }: lib.mkIf pkgs.stdenv.isDarwin { })
|
||||||
|
];
|
||||||
|
|
||||||
services.polkit-gnome.enable = true;
|
services.polkit-gnome.enable = true;
|
||||||
services.mpris-proxy.enable = true;
|
services.mpris-proxy.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
{
|
{
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
users.defaultUserShell = pkgs.fish;
|
users.defaultUserShell = pkgs.fish;
|
||||||
|
environment.shells = [ pkgs.fish ];
|
||||||
|
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
inputs.self.modules.homeManager.shell
|
inputs.self.modules.homeManager.shell
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue