-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7d91c1d
Showing
118 changed files
with
7,840 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
result/ | ||
nixos.* | ||
nixpkgs/ | ||
/.vscode | ||
myconfig.dae |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
-- vim.o.number = false | ||
local nvim_lsp = require("lspconfig") | ||
local nixos_options_expr = | ||
'let flake = builtins.getFlake ("git+file://" + toString ./.); in flake.nixosConfigurations.k-on.options // flake.nixosConfigurations.yu.options' | ||
local home_manager_options_expr = nixos_options_expr .. ".home-manager.users.type.getSubOptions [ ]" | ||
local flake_parts_options_expr = | ||
'let flake = builtins.getFlake ("git+file://" + toString ./.); in flake.debug.options // flake.currentSystem.options' | ||
nvim_lsp.nixd.setup({ | ||
cmd = { "nixd" }, | ||
settings = { | ||
nixd = { | ||
nixpkgs = { | ||
expr = 'import (builtins.getFlake ("git+file://" + toString ./.)).inputs.nixpkgs { }', | ||
}, | ||
formatting = { | ||
command = { "nix fmt" }, | ||
}, | ||
options = { | ||
nixos = { | ||
expr = nixos_options_expr, | ||
}, | ||
home_manager = { | ||
expr = home_manager_options_expr, | ||
}, | ||
flake_parts = { | ||
expr = flake_parts_options_expr, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
keys: | ||
- &k-on age1s553573nwkpeejpcy2483q5v0rgwzngxp8uxrw6a2swepgqv4dxshc8ul5 | ||
creation_rules: | ||
- path_regex: secrets/[^/]+\.yaml$ | ||
key_groups: | ||
- age: | ||
- *k-on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
step0: | ||
|
||
``` | ||
> Enter the nixos livecd environment | ||
``` | ||
|
||
step1: | ||
|
||
```console | ||
$ nix run nixpkgs#git clone https://github.com/Ruixi-rebirth/flakes.git --extra-experimental-features nix-command --extra-experimental-features flakes | ||
``` | ||
|
||
step2: | ||
|
||
```console | ||
$ cd flakes; rm -rf .git | ||
``` | ||
|
||
step3: | ||
|
||
```console | ||
$ nix develop --extra-experimental-features nix-command --extra-experimental-features flakes | ||
``` | ||
|
||
step4 | ||
|
||
```console | ||
$ just disko | ||
``` | ||
|
||
step5 | ||
|
||
```console | ||
$ just install | ||
``` |
Oops, something went wrong.