Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruixi-rebirth committed Feb 9, 2025
0 parents commit 7d91c1d
Show file tree
Hide file tree
Showing 118 changed files with 7,840 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
result/
nixos.*
nixpkgs/
/.vscode
myconfig.dae
31 changes: 31 additions & 0 deletions .nvim.lua
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,
},
},
},
},
})
7 changes: 7 additions & 0 deletions .sops.yaml
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
35 changes: 35 additions & 0 deletions README.md
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
```
Loading

0 comments on commit 7d91c1d

Please sign in to comment.