Added main NixOS configuration files for personal and work laptops with specific hardware configurations.
This commit is contained in:
parent
069caf37bf
commit
b96451f536
14
flake.nix
14
flake.nix
@ -59,12 +59,22 @@
|
|||||||
# NixOS configuration entrypoint
|
# NixOS configuration entrypoint
|
||||||
# Available through 'nixos-rebuild --flake .#your-hostname'
|
# Available through 'nixos-rebuild --flake .#your-hostname'
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# FIXME replace with your hostname
|
#Personal laptop, thinkpad t490
|
||||||
athame = nixpkgs.lib.nixosSystem {
|
athame = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
modules = [
|
modules = [
|
||||||
|
# > Our main nixos configuration file <
|
||||||
|
./nixos/kde-desktop.nix
|
||||||
|
./nixos/configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
#Work laptop, dell g15. Nvidia gpu
|
||||||
|
metatron = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = {inherit inputs outputs;};
|
||||||
|
modules = [
|
||||||
|
# > Our main nixos configuration file <
|
||||||
|
./nixos/kde-desktop.nix
|
||||||
./nixos/configuration.nix
|
./nixos/configuration.nix
|
||||||
./nixos/default.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -71,18 +71,28 @@
|
|||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# FIXME: Add the rest of your current configuration
|
||||||
|
|
||||||
# TODO: Set your hostname
|
# TODO: Set your hostname
|
||||||
networking.hostName = "your-hostname";
|
networking.hostName = "your-hostname";
|
||||||
|
|
||||||
|
# TODO: This is just an example, be sure to use whatever bootloader you prefer
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
||||||
|
# TODO: Configure your system-wide user settings (groups, etc), add more users as needed.
|
||||||
users.users = {
|
users.users = {
|
||||||
traverseda = {
|
# FIXME: Replace with your username
|
||||||
initialPassword = "changeme";
|
your-username = {
|
||||||
|
# TODO: You can set an initial password for your user.
|
||||||
|
# If you do, you can skip setting a root password by passing '--no-root-passwd' to nixos-install.
|
||||||
|
# Be sure to change it (using passwd) after rebooting!
|
||||||
|
initialPassword = "correcthorsebatterystaple";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
|
# TODO: Add your SSH public key(s) here, if you plan on using SSH to connect
|
||||||
];
|
];
|
||||||
extraGroups = [ "networkmanager" "wheel" "dialout" "docker" "plugdev" ];
|
# TODO: Be sure to add any other groups you need (such as networkmanager, audio, docker, etc)
|
||||||
|
extraGroups = ["wheel"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -94,7 +104,7 @@
|
|||||||
# Forbid root login through SSH.
|
# Forbid root login through SSH.
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
# Use keys only. Remove if you want to SSH using password (not recommended)
|
# Use keys only. Remove if you want to SSH using password (not recommended)
|
||||||
PasswordAuthentication = true;
|
PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user