mirror of
https://github.com/alyssadev/nixos.git
synced 2025-10-14 04:59:39 +10:00
add hw
This commit is contained in:
parent
533b95b540
commit
20a01c781a
3 changed files with 47 additions and 6 deletions
11
flake.nix
11
flake.nix
|
@ -7,14 +7,17 @@
|
|||
url = "github:nix-community/home-manager/release-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
authorizedKeys = builtins.fetchurl {
|
||||
url = "https://aly.pet/authorized_keys.nix";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
||||
outputs = inputs@{ nixpkgs, home-manager, authorizedKeys, ... }: {
|
||||
nixosConfigurations = {
|
||||
aly-laptop = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hardware-configuration.nix
|
||||
./hw-aly-laptop.nix
|
||||
({ config, pkgs, ... }: {
|
||||
networking.hostName = "aly-laptop";
|
||||
services.logind = {
|
||||
|
@ -51,9 +54,7 @@
|
|||
isNormalUser = true;
|
||||
description = "aly";
|
||||
hashedPassword = "$y$j9T$Q.yFJjo9LMA8o.7Ac5uSr/$Y8pYIPSzCXHSd4nAlUohaaohwpquK6XEIjxFKq3J4s/";
|
||||
openssh.authorizedKeys.keys = import builtins.fetchurl {
|
||||
url = "https://aly.pet/authorized_keys.nix";
|
||||
};
|
||||
openssh.authorizedKeys.keys = import authorizedKeys;
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue