1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2026-01-26 19:56:29 +01:00

feat: lix, morlana, spdx-gen

This commit is contained in:
Ryan Cao 2024-09-20 12:59:46 +08:00
parent b9832c59cf
commit 9cd5e745cd
Signed by: ryanccn
GPG key ID: 48C96B2057D71CB1
6 changed files with 206 additions and 71 deletions

204
flake.lock generated
View file

@ -2,16 +2,19 @@
"nodes": { "nodes": {
"am": { "am": {
"inputs": { "inputs": {
"nix-filter": [
"nix-filter"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1725406948, "lastModified": 1726126496,
"narHash": "sha256-HsSvwWqJ5nETVuLomBx6AvL39NSBXf/b/oCQ2IMYcCY=", "narHash": "sha256-HJiUol162f37QXVVRLdkleT79K0UXKzXjZdc/WRKJHs=",
"owner": "ryanccn", "owner": "ryanccn",
"repo": "am", "repo": "am",
"rev": "8ba77d7600e56a71536b1d92863f8ac0df86783a", "rev": "9ae1b880aa0a67503bc34aebbd908e718acd1ca3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -22,11 +25,11 @@
}, },
"catppuccin": { "catppuccin": {
"locked": { "locked": {
"lastModified": 1724469296, "lastModified": 1725509983,
"narHash": "sha256-p3R4LUNk6gC+fTKRUm9ByXaoRIocnQMwVuJSIxECQ8o=", "narHash": "sha256-NHCgHVqumPraFJnLrkanoLDuhOoUHUvRhvp/RIHJR+A=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "nix", "repo": "nix",
"rev": "874e668ddaf3687e8d38ccd0188a641ffefe1cfb", "rev": "45745fe5960acaefef2b60f3455bcac6a0ca6bc9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -50,6 +53,39 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flakey-profile": {
"locked": {
"lastModified": 1712898590,
"narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=",
"owner": "lf-",
"repo": "flakey-profile",
"rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d",
"type": "github"
},
"original": {
"owner": "lf-",
"repo": "flakey-profile",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -57,11 +93,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1725180166, "lastModified": 1726785354,
"narHash": "sha256-fzssXuGR/mCeGbzM1ExaTqDz7QDGta3WA4jJsZyRruo=", "narHash": "sha256-SLorVhoorZwjM1aS04bBX4fufEXIfkMdAGkj9bu2QAQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "471e3eb0a114265bcd62d11d58ba8d3421ee68eb", "rev": "1786e2afdbc48e9038f7cff585069736e1d0ed44",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -70,23 +106,61 @@
"type": "github" "type": "github"
} }
}, },
"nish": { "lix": {
"flake": false,
"locked": {
"lastModified": 1723503926,
"narHash": "sha256-Rosl9iA9MybF5Bud4BTAQ9adbY81aGmPfV8dDBGl34s=",
"rev": "bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2.tar.gz?rev=bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2"
},
"original": {
"type": "tarball",
"url": "https://git.lix.systems/lix-project/lix/archive/2.91.0.tar.gz"
}
},
"lix-module": {
"inputs": { "inputs": {
"flake-utils": "flake-utils",
"flakey-profile": "flakey-profile",
"lix": "lix",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1694420535, "lastModified": 1723510904,
"narHash": "sha256-dbFegxUbjyfgqE7WLU/ixPfNszov0cGjxqIA1wlatXI=", "narHash": "sha256-zNW/rqNJwhq2lYmQf19wJerRuNimjhxHKmzrWWFJYts=",
"rev": "622a2253a071a1fb97a4d3c8103a91114acc1140",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/622a2253a071a1fb97a4d3c8103a91114acc1140.tar.gz?rev=622a2253a071a1fb97a4d3c8103a91114acc1140"
},
"original": {
"type": "tarball",
"url": "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz"
}
},
"morlana": {
"inputs": {
"nix-filter": [
"nix-filter"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1726541181,
"narHash": "sha256-JnEtDtMj3hajOfmWbcXyiKbkorFIFRMsYvWnPNj3y58=",
"owner": "ryanccn", "owner": "ryanccn",
"repo": "nish", "repo": "morlana",
"rev": "cd74ffc6ded40715af06ee4aa72d4810e0d38d5e", "rev": "6b508d33b4b72a0fb0d2ec09af4cf3094e20d070",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "ryanccn", "owner": "ryanccn",
"repo": "nish", "repo": "morlana",
"type": "github" "type": "github"
} }
}, },
@ -97,11 +171,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1725189302, "lastModified": 1726742753,
"narHash": "sha256-IhXok/kwQqtusPsoguQLCHA+h6gKvgdCrkhIaN+kByA=", "narHash": "sha256-QclpWrIFIg/yvWRiOUaMp1WR+TGUE9tb7RE31xHlxWc=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "7c4b53a7d9f3a3df902b3fddf2ae245ef20ebcda", "rev": "c03f85fa42d68d1056ca1740f3113b04f3addff2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -132,11 +206,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1725161148, "lastModified": 1726449931,
"narHash": "sha256-WfAHq3Ag3vLNFfWxKHjFBFdPI6JIideWFJod9mx1eoo=", "narHash": "sha256-1AX7MyYzP7sNgZiGF8jwehCCI75y2kBGwACeryJs+yE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "32058e9138248874773630c846563b1a78ee7a5b", "rev": "c1b0fa0bec5478185eae2fd3f39b9e906fc83995",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -147,11 +221,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1725194671, "lastModified": 1726583932,
"narHash": "sha256-tLGCFEFTB5TaOKkpfw3iYT9dnk4awTP/q4w+ROpMfuw=", "narHash": "sha256-zACxiQx8knB3F8+Ze+1BpiYrI+CbhxyWpcSID9kVhkQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b833ff01a0d694b910daca6e2ff4a3f26dee478c", "rev": "658e7223191d2598641d50ee4e898126768fe847",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -163,17 +237,19 @@
}, },
"nrr": { "nrr": {
"inputs": { "inputs": {
"nix-filter": "nix-filter", "nix-filter": [
"nix-filter"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1725325795, "lastModified": 1726542944,
"narHash": "sha256-UJLBuGfqrrjBSueCLKsncYDVl3yRfctH7qxPrPJs6eU=", "narHash": "sha256-nciuxw8aWKEJV/bI6FE0sfWBcrzrqDKKjXUrYcvBPOA=",
"owner": "ryanccn", "owner": "ryanccn",
"repo": "nrr", "repo": "nrr",
"rev": "959431ce40b8ea23e608bccf94ea4781fb0955a0", "rev": "a30318ebcd6cd74ee1e87edc3c92772db83dd1d4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -189,26 +265,27 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722051904, "lastModified": 1725406938,
"narHash": "sha256-gypsHQRmSH+SvmOh/swhiX0gES+EznnbTzroVWB3dyQ=", "narHash": "sha256-jOUqvLEO0SxUhBiGNq0J1lrLdkqfrngIpsiXZUM8R/c=",
"rev": "854c3be2c22bd492d2b0f356d69ed079f2ca2878", "owner": "ryanccn",
"revCount": 172, "repo": "nyoom",
"type": "tarball", "rev": "63e9c00ebc4d838303d6398970c3dc1407c1fc28",
"url": "https://api.flakehub.com/f/pinned/ryanccn/nyoom/0.7.6/0190f24b-8743-7f04-94aa-81d334f7326d/source.tar.gz" "type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "ryanccn",
"url": "https://flakehub.com/f/ryanccn/nyoom/0.%2A.tar.gz" "repo": "nyoom",
"type": "github"
} }
}, },
"ohmyzsh": { "ohmyzsh": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1725399322, "lastModified": 1726739091,
"narHash": "sha256-WR4Z/0PwbLFle4OHBol5BJCeHi4mE02XyF4VmV1l8ys=", "narHash": "sha256-F/SvOTDxfNI4ekdjXCmMlwiJyy8lzQH6Q27oApfHQe4=",
"owner": "ohmyzsh", "owner": "ohmyzsh",
"repo": "ohmyzsh", "repo": "ohmyzsh",
"rev": "ab3d42a34cd0600b723de0accc248632f2dcf4e3", "rev": "1514145a09140425b914e9cd98fc1d638a8c4003",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -223,14 +300,17 @@
"catppuccin": "catppuccin", "catppuccin": "catppuccin",
"darwin-custom-icons": "darwin-custom-icons", "darwin-custom-icons": "darwin-custom-icons",
"home-manager": "home-manager", "home-manager": "home-manager",
"nish": "nish", "lix-module": "lix-module",
"morlana": "morlana",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-filter": "nix-filter",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nrr": "nrr", "nrr": "nrr",
"nyoom": "nyoom", "nyoom": "nyoom",
"ohmyzsh": "ohmyzsh", "ohmyzsh": "ohmyzsh",
"rust-overlay": "rust-overlay", "rust-overlay": "rust-overlay",
"spdx-gen": "spdx-gen",
"vivid-zsh": "vivid-zsh" "vivid-zsh": "vivid-zsh"
} }
}, },
@ -241,11 +321,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1725416653, "lastModified": 1726799228,
"narHash": "sha256-iNBv7ILlZI6ubhW0ExYy8YgiLKUerudxY7n8R5UQK2E=", "narHash": "sha256-wn1leQyMAc/TrLRKcPc0GX6YtoziKQpc/MtZjPNiJ2Q=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "e5d3f9c2f24d852cddc79716daf0f65ce8468b28", "rev": "ab150c7412db7bea5879ce2776718f53fba37aa2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -254,6 +334,44 @@
"type": "github" "type": "github"
} }
}, },
"spdx-gen": {
"inputs": {
"nix-filter": [
"nix-filter"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1726313584,
"narHash": "sha256-R0DjdtepVaXVnEudrfGADjUzugxGeqxorF1LFjBb98U=",
"owner": "ryanccn",
"repo": "spdx-gen",
"rev": "c890f777c211a8fbe30777f8f4ab6434b6106cac",
"type": "github"
},
"original": {
"owner": "ryanccn",
"repo": "spdx-gen",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"vivid-zsh": { "vivid-zsh": {
"flake": false, "flake": false,
"locked": { "locked": {

View file

@ -16,6 +16,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin = { catppuccin = {
url = "github:catppuccin/nix"; url = "github:catppuccin/nix";
}; };
@ -28,23 +33,32 @@
am = { am = {
url = "github:ryanccn/am"; url = "github:ryanccn/am";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; inputs.nix-filter.follows = "nix-filter";
nish = {
url = "github:ryanccn/nish";
inputs.nixpkgs.follows = "nixpkgs";
}; };
nrr = { nrr = {
url = "github:ryanccn/nrr"; url = "github:ryanccn/nrr";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.nix-filter.follows = "nix-filter";
}; };
nyoom = { nyoom = {
url = "https://flakehub.com/f/ryanccn/nyoom/0.*.tar.gz"; url = "github:ryanccn/nyoom";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
morlana = {
url = "github:ryanccn/morlana";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nix-filter.follows = "nix-filter";
};
spdx-gen = {
url = "github:ryanccn/spdx-gen";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nix-filter.follows = "nix-filter";
};
rust-overlay = { rust-overlay = {
url = "github:oxalica/rust-overlay"; url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -54,6 +68,10 @@
url = "github:ryanccn/nix-darwin-custom-icons"; url = "github:ryanccn/nix-darwin-custom-icons";
}; };
nix-filter = {
url = "github:numtide/nix-filter";
};
ohmyzsh = { ohmyzsh = {
url = "github:ohmyzsh/ohmyzsh"; url = "github:ohmyzsh/ohmyzsh";
flake = false; flake = false;
@ -69,17 +87,19 @@
{ {
self, self,
nix-darwin, nix-darwin,
lix-module,
home-manager, home-manager,
darwin-custom-icons,
nix-index-database, nix-index-database,
darwin-custom-icons,
... ...
}@inputs: }@inputs:
{ {
darwinConfigurations.Ryans-MacBook-Pro = nix-darwin.lib.darwinSystem { darwinConfigurations.Ryans-MacBook-Pro = nix-darwin.lib.darwinSystem {
modules = [ modules = [
lix-module.nixosModules.default
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
darwin-custom-icons.darwinModules.default
nix-index-database.darwinModules.nix-index nix-index-database.darwinModules.nix-index
darwin-custom-icons.darwinModules.default
./system.nix ./system.nix
]; ];

View file

@ -1,8 +1,12 @@
switch *args: switch *args:
darwin-rebuild switch --flake . --verbose --show-trace {{args}} morlana switch {{args}}
delete-old: wipe-history:
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old && home-manager expire-generations now sudo -H nix profile wipe-history --profile "/nix/var/nix/profiles/default"
sudo -H nix profile wipe-history --profile "/nix/var/nix/profiles/system"
sudo -H nix profile wipe-history --profile "/nix/var/nix/profiles/per-user/root/profile"
nix profile wipe-history --profile "${XDG_STATE_HOME-$HOME/.local/state}/nix/profiles/profile"
nix profile wipe-history --profile "${XDG_STATE_HOME-$HOME/.local/state}/nix/profiles/home-manager"
update: update:
nix flake update nix flake update

View file

@ -7,7 +7,7 @@
}: }:
{ {
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
nix.package = pkgs.nixVersions.latest; # nix.package = pkgs.nixVersions.latest;
nix.registry = { nix.registry = {
n.flake = inputs.nixpkgs; n.flake = inputs.nixpkgs;
@ -43,10 +43,13 @@
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
inputs.rust-overlay.overlays.default inputs.rust-overlay.overlays.default
inputs.am.overlays.default
inputs.nish.overlays.default
inputs.nrr.overlays.default inputs.nrr.overlays.default
inputs.am.overlays.default
inputs.nyoom.overlays.default inputs.nyoom.overlays.default
inputs.morlana.overlays.default
inputs.spdx-gen.overlays.default
self.overlays.ryan-mono-bin self.overlays.ryan-mono-bin
self.overlays.ibm-plex self.overlays.ibm-plex
]; ];

View file

@ -1,8 +1,6 @@
{ pkgs, inputs, ... }: { pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
inputs.home-manager.packages.${pkgs.system}.home-manager
nixfmt-rfc-style nixfmt-rfc-style
alejandra alejandra
nixpkgs-fmt nixpkgs-fmt
@ -37,7 +35,6 @@
dust dust
fd fd
ffmpeg ffmpeg
gen-license
gum gum
hyperfine hyperfine
jq jq
@ -52,12 +49,13 @@
typst typst
packwiz packwiz
spicetify-cli # spicetify-cli
exiftool exiftool
nrr nrr
am am
# nish
nyoom nyoom
morlana
spdx-gen
]; ];
} }

View file

@ -1,5 +1,4 @@
{ {
pkgs,
inputs, inputs,
self, self,
... ...
@ -12,13 +11,6 @@
./modules/fish.nix ./modules/fish.nix
]; ];
system.activationScripts.extraActivation = {
text = ''
set -eo pipefail
HOME="/var/root" ${pkgs.lib.getExe pkgs.nvd} --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
};
security.pam.enableSudoTouchIdAuth = true; security.pam.enableSudoTouchIdAuth = true;
environment.customIcons = { environment.customIcons = {