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