alright, figured out the build command I need
also removed the justfile for now, will take a look at that again in the future, less dependencies for now
This commit is contained in:
parent
0f2f2a09f0
commit
700fe012a1
5 changed files with 64 additions and 37 deletions
15
README.md
15
README.md
|
@ -1,8 +1,21 @@
|
||||||
# My nix flake for my systems
|
# My nix flake for my systems
|
||||||
|
|
||||||
|
## Commands
|
||||||
|
|
||||||
|
### Show the output of the flake
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix flake show
|
||||||
|
```
|
||||||
|
|
||||||
|
### Create install iso
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix build .#install-isoConfigurations.minimal
|
||||||
|
```
|
||||||
|
|
||||||
## Inpirations
|
## Inpirations
|
||||||
|
|
||||||
- [dafitt/dotfiles](https://github.com/dafitt/dotfiles/)
|
- [dafitt/dotfiles](https://github.com/dafitt/dotfiles/)
|
||||||
- [khaneliman/khanelinix](https://github.com/khaneliman/khanelinix)
|
- [khaneliman/khanelinix](https://github.com/khaneliman/khanelinix)
|
||||||
- [alex007sirois/nix-config](https://github.com/alex007sirois/nix-config) (justfile)
|
|
||||||
- [hmajid2301/nixicle](https://gitlab.com/hmajid2301/nixicle) (the GOAT, he did what I am aiming for!)
|
- [hmajid2301/nixicle](https://gitlab.com/hmajid2301/nixicle) (the GOAT, he did what I am aiming for!)
|
37
flake.lock
generated
37
flake.lock
generated
|
@ -562,6 +562,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixlib": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736643958,
|
||||||
|
"narHash": "sha256-tmpqTSWVRJVhpvfSN9KXBvKEXplrwKnSZNAoNPf/S/s=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"rev": "1418bc28a52126761c02dd3d89b2d8ca0f521181",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-boot": {
|
"nixos-boot": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722927293,
|
"lastModified": 1722927293,
|
||||||
|
@ -577,6 +592,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-generators": {
|
||||||
|
"inputs": {
|
||||||
|
"nixlib": "nixlib",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1751903740,
|
||||||
|
"narHash": "sha256-PeSkNMvkpEvts+9DjFiop1iT2JuBpyknmBUs0Un0a4I=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-generators",
|
||||||
|
"rev": "032decf9db65efed428afd2fa39d80f7089085eb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-generators",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-wsl": {
|
"nixos-wsl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": [],
|
"flake-compat": [],
|
||||||
|
@ -855,6 +891,7 @@
|
||||||
"jovian": "jovian",
|
"jovian": "jovian",
|
||||||
"nix-minecraft": "nix-minecraft",
|
"nix-minecraft": "nix-minecraft",
|
||||||
"nixos-boot": "nixos-boot",
|
"nixos-boot": "nixos-boot",
|
||||||
|
"nixos-generators": "nixos-generators",
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_6",
|
"nixpkgs": "nixpkgs_6",
|
||||||
"nvf": "nvf",
|
"nvf": "nvf",
|
||||||
|
|
|
@ -20,6 +20,11 @@
|
||||||
inputs.home-manager.follows = "home-manager";
|
inputs.home-manager.follows = "home-manager";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos-generators = {
|
||||||
|
url = "github:nix-community/nixos-generators";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
# neovim
|
# neovim
|
||||||
nvf.url = "github:notashelf/nvf";
|
nvf.url = "github:notashelf/nvf";
|
||||||
|
|
||||||
|
|
29
justfile
29
justfile
|
@ -1,29 +0,0 @@
|
||||||
default:
|
|
||||||
@just --list --unsorted
|
|
||||||
|
|
||||||
flake := justfile_directory()
|
|
||||||
determinate-flags := "--option extra-substituters https://install.determinate.systems --option extra-trusted-public-keys cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM="
|
|
||||||
|
|
||||||
update *inputs:
|
|
||||||
nix flake update {{inputs}}
|
|
||||||
|
|
||||||
update-all:
|
|
||||||
nix flake update
|
|
||||||
|
|
||||||
build host:
|
|
||||||
nh os build {{flake}} -H {{host}} -- {{determinate-flags}}
|
|
||||||
|
|
||||||
test:
|
|
||||||
nh os test {{flake}} -- {{determinate-flags}}
|
|
||||||
|
|
||||||
switch:
|
|
||||||
nh os boot --ask {{flake}} -- {{determinate-flags}}
|
|
||||||
|
|
||||||
prepare-deploy-ssh target:
|
|
||||||
ssh-copy-id {{target}}
|
|
||||||
|
|
||||||
prepare-deploy-kexec target: (prepare-deploy-ssh target)
|
|
||||||
ssh {{target}} "(curl -L https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-noninteractive-x86_64-linux.tar.gz | tar -xzf- -C /root) && /root/kexec/run"
|
|
||||||
|
|
||||||
deploy target hostname: (prepare-deploy-ssh target)
|
|
||||||
nix run github:nix-community/nixos-anywhere -- --flake '.#{{hostname}}' {{target}}
|
|
|
@ -10,7 +10,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
wireless.enable = true;
|
wireless.enable = mkForce false;
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,16 +35,17 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
ssh.enable = true;
|
|
||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
openssh.settings.PermitRootLogin = mkForce "yes";
|
openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings.PermitRootLogin = mkForce "yes";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
system.locale.enable = true;
|
users.users.nixos = {
|
||||||
|
|
||||||
user = {
|
|
||||||
name = "nixos";
|
|
||||||
initialPassword = "kaas";
|
initialPassword = "kaas";
|
||||||
|
initialHashedPassword = mkForce null;
|
||||||
|
extraGroups = [ "networkmanager" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue