cleanup code
This commit is contained in:
parent
80c3873cf3
commit
74212cbd58
10 changed files with 106 additions and 7 deletions
7
README.md
Normal file
7
README.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
## Inpirations
|
||||||
|
|
||||||
|
- [dafitt/dotfiles](https://github.com/dafitt/dotfiles/)
|
||||||
|
- [khaneliman/khanelinix](https://github.com/khaneliman/khanelinix)
|
||||||
|
- [alex007sirois/nix-config](https://github.com/alex007sirois/nix-config) (justfile)
|
22
flake.lock
generated
22
flake.lock
generated
|
@ -577,6 +577,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-wsl": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": [],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1753704990,
|
||||||
|
"narHash": "sha256-5E14xuNWy2Un1nFR55k68hgbnD8U2x/rE5DXJtYKusw=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-wsl",
|
||||||
|
"rev": "58c814cc6d4a789191f9c12e18277107144b0c91",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-wsl",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751186460,
|
"lastModified": 1751186460,
|
||||||
|
@ -834,6 +855,7 @@
|
||||||
"jovian": "jovian",
|
"jovian": "jovian",
|
||||||
"nix-minecraft": "nix-minecraft",
|
"nix-minecraft": "nix-minecraft",
|
||||||
"nixos-boot": "nixos-boot",
|
"nixos-boot": "nixos-boot",
|
||||||
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_6",
|
"nixpkgs": "nixpkgs_6",
|
||||||
"nvf": "nvf",
|
"nvf": "nvf",
|
||||||
"plasma-manager": "plasma-manager",
|
"plasma-manager": "plasma-manager",
|
||||||
|
|
|
@ -62,6 +62,14 @@
|
||||||
grub2-themes = {
|
grub2-themes = {
|
||||||
url = "github:vinceliuice/grub2-themes";
|
url = "github:vinceliuice/grub2-themes";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos-wsl = {
|
||||||
|
url = "github:nix-community/nixos-wsl";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
flake-compat.follows = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs: inputs.snowfall-lib.mkFlake {
|
outputs = inputs: inputs.snowfall-lib.mkFlake {
|
||||||
|
|
29
justfile
Normal file
29
justfile
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
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,12 +10,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# home.packages = with pkgs; [ protonup ];
|
|
||||||
|
|
||||||
# home.sessionVariables = {
|
|
||||||
# STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
|
|
||||||
# };
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -30,7 +30,7 @@ in
|
||||||
|
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = false;
|
systemd-boot.enable = false;
|
||||||
grub.enable = true;
|
grub.enable = mkDefault true;
|
||||||
|
|
||||||
grub2-theme = {
|
grub2-theme = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
3
systems/x86_64-linux/melkor/README.md
Normal file
3
systems/x86_64-linux/melkor/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Description
|
||||||
|
|
||||||
|
TBD
|
3
systems/x86_64-linux/varda/README.md
Normal file
3
systems/x86_64-linux/varda/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Description
|
||||||
|
|
||||||
|
Installer ISO
|
30
systems/x86_64-linux/varda/default.nix
Normal file
30
systems/x86_64-linux/varda/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
"${pkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-plasma6.nix"
|
||||||
|
"${pkgs}/nixos/modules/installer/cd-dvd/channel.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
sneeuwvlok = {
|
||||||
|
services = {
|
||||||
|
networking.ssh.enable = true;
|
||||||
|
media.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
editor = {
|
||||||
|
nano.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
supportedFilesystems = lib.mkForce ["btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs"];
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
qemuGuest.enable = true;
|
||||||
|
openssh.settings.PermitRootLogin = "yes";
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "23.11";
|
||||||
|
}
|
3
systems/x86_64-linux/yavanna/README.md
Normal file
3
systems/x86_64-linux/yavanna/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Description
|
||||||
|
|
||||||
|
TBD
|
Loading…
Add table
Add a link
Reference in a new issue