nixos-anywhere test

This commit is contained in:
tulg 2025-10-25 11:06:24 +03:00
parent cc9dbac99e
commit 58f64684c9
6 changed files with 48 additions and 23 deletions

24
flake.lock generated
View file

@ -199,11 +199,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1760887455, "lastModified": 1761316995,
"narHash": "sha256-/xU8iYZjolWbMUNBQF6af5zgGs73Qw21WMgz1tLs3Yw=", "narHash": "sha256-BAAjCpjTnfaxtc9NCkbUl9MUv5JmAG5qU7/G8TTHmb4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "aeabc1ac63e6ebb8ba4714c4abdfe0556f2de765", "rev": "82b58f38202540bce4e5e00759d115c5a43cab85",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -291,11 +291,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1760524057, "lastModified": 1761114652,
"narHash": "sha256-EVAqOteLBFmd7pKkb0+FIUyzTF61VKi7YmvP1tw4nEw=", "narHash": "sha256-f/QCJM/YhrV/lavyCVz8iU3rlZun6d+dAiC3H+CDle4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "544961dfcce86422ba200ed9a0b00dd4b1486ec5", "rev": "01f116e4df6a15f4ccdffb1bcd41096869fb385c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -362,11 +362,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1761190730, "lastModified": 1761333046,
"narHash": "sha256-XAs/Q4zBJIfK/bwq9KjTUkTH15A+Pe2rIilyvalEHuM=", "narHash": "sha256-3RGdMQKWB0W0IsQt3g51ItTKxhRgF8ZYhiBY2isUmYA=",
"owner": "noctalia-dev", "owner": "noctalia-dev",
"repo": "noctalia-shell", "repo": "noctalia-shell",
"rev": "c3439b262c7cb3d57c93197a93a3aa382582bdae", "rev": "31084062e3f6f37b62a4250a1539937f8127c8fd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -621,11 +621,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1760898315, "lastModified": 1761269012,
"narHash": "sha256-d2qbZpREjUQm65lzS70b2TVgTfOpAjQUZa+FS58+WnA=", "narHash": "sha256-/naxU8jbaoZM3CQCjJiI6Z5+vsv+zA7eZdhFY1tbzsM=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "5e52b6a9ec07d22c9555891005b1b39f1bbd83ed", "rev": "c7f5f0122cf8c4bfd9ef3b138eb615f0e54f1459",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -0,0 +1,24 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -1,4 +1,3 @@
{ {
config, config,
pkgs, pkgs,
@ -6,7 +5,7 @@
... ...
}: { }: {
imports = [ imports = [
# ./disko.nix ./disko.nix
./hardware-configuration.nix ./hardware-configuration.nix
./vfio.nix ./vfio.nix
]; ];
@ -35,6 +34,9 @@
]; ];
}; };
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
programs.bash.shellAliases = {
fuck = "you";
};
time.timeZone = "Europe/Istanbul"; time.timeZone = "Europe/Istanbul";
programs.hyprland = { programs.hyprland = {

View file

@ -3,7 +3,7 @@
disk = { disk = {
nixos = { nixos = {
type = "disk"; type = "disk";
device = "/dev/vda"; device = "/dev/sda";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {

View file

@ -58,8 +58,6 @@ in {
pkgs.vscode-extensions.jnoortheen.nix-ide pkgs.vscode-extensions.jnoortheen.nix-ide
]; ];
profiles.tulg.userSettings = { profiles.tulg.userSettings = {
}; };
}; };
programs.zen-browser.enable = true; programs.zen-browser.enable = true;
@ -84,10 +82,9 @@ in {
max_height = 900; max_height = 900;
}; };
tasks = { tasks = {
image_bound = [ 0 0 ]; image_bound = [0 0];
}; };
}; };
}; };
xdg.configFile."hypr" = { xdg.configFile."hypr" = {
@ -120,8 +117,10 @@ in {
enable = true; enable = true;
shellAliases = { shellAliases = {
a = "echo ids"; a = "echo idssss";
rb = "nixos-rebuild switch --flake"; rb = "sudo nixos-rebuild switch --flake ~/nixdots#";
nixtest = "sudo nixos-rebuild test --flake ~/nixdots#";
infect = "nix run github:nix-community/nixos-anywhere -- -- flake";
}; };
bashrcExtra = '' bashrcExtra = ''
@ -132,8 +131,8 @@ in {
programs.git = { programs.git = {
enable = true; enable = true;
settings = { settings = {
user.name = "tulg"; user.name = "tulg";
user.email = "tulg@protonmail.ch"; user.email = "tulg@protonmail.ch";
}; };
}; };