Compare commits
2 Commits
5ca4b9a84b
...
ac9d778c53
| Author | SHA1 | Date | |
|---|---|---|---|
| ac9d778c53 | |||
| 90126edab0 |
@@ -32,6 +32,13 @@
|
||||
|
||||
使用 fdisk 或 parted 工具进行分区。现在假设两个分区为:`/dev/sda1` `/dev/sda2`。
|
||||
|
||||
``` bash
|
||||
# 使用parted分区
|
||||
parted /dev/sda mklabel gpt
|
||||
parted /dev/sda mkpart primary fat32 1MiB 512MiB
|
||||
parted /dev/sda mkpart primary ext4 512MiB 100%
|
||||
```
|
||||
|
||||
2. 格式化分区
|
||||
|
||||
```bash
|
||||
|
||||
@@ -78,8 +78,6 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
|
||||
# Impermanence system
|
||||
impermanence.url = "github:nix-community/impermanence";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is your home-manager configuration file
|
||||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
||||
|
||||
{ inputs, outputs, lib, config, pkgs, username, useremail, hyprland, ... }:
|
||||
{ inputs, outputs, lib, config, pkgs, username, useremail, ... }:
|
||||
{
|
||||
# You can import other home-manager modules here
|
||||
imports = [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is your home-manager configuration file
|
||||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
||||
|
||||
{ inputs, outputs, lib, config, pkgs, username, useremail, hyprland, ... }: {
|
||||
{ inputs, outputs, lib, config, pkgs, username, useremail, ... }: {
|
||||
# You can import other home-manager modules here
|
||||
imports = [
|
||||
# If you want to use modules your own flake exports (from modules/home-manager):
|
||||
|
||||
@@ -1,11 +1,23 @@
|
||||
{ config, lib, pkgs, hyprland, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
hyprland.homeManagerModules.default
|
||||
./env.nix
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
# Whether to enable Hyprland wayland compositor
|
||||
enable = true;
|
||||
# The hyprland package to use
|
||||
package = pkgs.hyprland;
|
||||
# Whether to enable XWayland
|
||||
xwayland.enable = true;
|
||||
|
||||
# Optional
|
||||
# Whether to enable hyprland-session.target on hyprland startup
|
||||
systemd.enable = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
waybar # the status bar
|
||||
# hyprpaper # wallpaper
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ inputs, outputs, lib, pkgs, config, self, username, useremail, hostname, sysversion, ... }:
|
||||
let
|
||||
inherit (inputs) home-manager hyprland;
|
||||
inherit (inputs) home-manager;
|
||||
in
|
||||
{
|
||||
# You can import other NixOS modules here
|
||||
@@ -27,7 +27,7 @@ in
|
||||
# home-manager.useGlobalPkgs = true;
|
||||
# home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs outputs hostname username useremail hyprland sysversion;
|
||||
inherit inputs outputs hostname username useremail sysversion;
|
||||
};
|
||||
home-manager.users."${username}" = { ... }: {
|
||||
imports = [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ inputs, outputs, lib, pkgs, config, self, username, useremail, hostname, sysversion, ... }:
|
||||
let
|
||||
inherit (inputs) home-manager hyprland nixpkgs-unstable;
|
||||
inherit (inputs) home-manager nixpkgs-unstable;
|
||||
in
|
||||
{
|
||||
# You can import other NixOS modules here
|
||||
@@ -37,7 +37,7 @@ in
|
||||
# home-manager.useGlobalPkgs = true;
|
||||
# home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs outputs hostname username useremail hyprland sysversion;
|
||||
inherit inputs outputs hostname username useremail sysversion;
|
||||
|
||||
# enable unstable packages
|
||||
nixpkgs = nixpkgs-unstable;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ inputs, outputs, lib, pkgs, config, self, username, useremail, hostname, sysversion, ... }:
|
||||
let
|
||||
inherit (inputs) home-manager hyprland;
|
||||
inherit (inputs) home-manager;
|
||||
in
|
||||
{
|
||||
# You can import other NixOS modules here
|
||||
@@ -27,7 +27,7 @@ in
|
||||
# home-manager.useGlobalPkgs = true;
|
||||
# home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs outputs hostname username useremail hyprland sysversion;
|
||||
inherit inputs outputs hostname username useremail sysversion;
|
||||
};
|
||||
home-manager.users."${username}" = { ... }: {
|
||||
imports = [
|
||||
|
||||
Reference in New Issue
Block a user