trying to get niri to work (again)

This commit is contained in:
twoneis 2023-12-19 16:41:35 +01:00
parent b0229d5475
commit c5a9f23634
4 changed files with 60 additions and 10 deletions

56
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1702814335, "lastModified": 1702937117,
"narHash": "sha256-Qck7BAMi3eydzT1WFOzp/SgECetyPpOn1dLgmxH2ebQ=", "narHash": "sha256-4GjkL2D01bDg00UZN/SeGrnBZrDVOFeZTbQx6U702Vc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "e4dba0bd01956170667458be7b45f68170a63651", "rev": "e8aaced73ebaf6bfa8e3c6ab0a19cb184bc4d798",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -20,6 +20,43 @@
"type": "github" "type": "github"
} }
}, },
"niri": {
"inputs": {
"nix-filter": "nix-filter",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1703000056,
"narHash": "sha256-d4LrEmhj9w26SknUadcIM7Y1rllMxArKdFCyspADBn4=",
"owner": "twoneis",
"repo": "niri",
"rev": "fa2a60977e8d96738cd96a532244798028282eb7",
"type": "github"
},
"original": {
"owner": "twoneis",
"ref": "nixify",
"repo": "niri",
"type": "github"
}
},
"nix-filter": {
"locked": {
"lastModified": 1701697642,
"narHash": "sha256-L217WytWZHSY8GW9Gx1A64OnNctbuDbfslaTEofXXRw=",
"owner": "numtide",
"repo": "nix-filter",
"rev": "c843418ecfd0344ecb85844b082ff5675e02c443",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-filter",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1702453208, "lastModified": 1702453208,
@ -38,11 +75,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1702312524, "lastModified": 1702830618,
"narHash": "sha256-gkZJRDBUCpTPBvQk25G0B7vfbpEYM5s5OZqghkjZsnE=", "narHash": "sha256-lvhwIvRwhOLgzbRuYkqHy4M5cQHYs4ktL6/hyuBS6II=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a9bf124c46ef298113270b1f84a164865987a91c", "rev": "91a00709aebb3602f172a0bf47ba1ef013e34835",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -54,11 +91,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1702820084, "lastModified": 1702997397,
"narHash": "sha256-Y8z31CWQB8hKRDiovx40s9AAOixrG9PBlfgPntjWVBc=", "narHash": "sha256-th/EqbtB6jDFhe12kTsssDzF9Ev0p9Yq/oaiWXS3H9w=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nur", "repo": "nur",
"rev": "0f3c510de06615a8cf9a2ad3b77758bb9d155753", "rev": "a04eea76ecdc42258fc3ed8391ba838145d0b96a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -70,6 +107,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"niri": "niri",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nur": "nur" "nur": "nur"

View file

@ -18,9 +18,14 @@
nur = { nur = {
url = "github:nix-community/nur"; url = "github:nix-community/nur";
}; };
niri = {
url = "github:twoneis/niri/nixify";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { nixpkgs, home-manager, nixos-hardware, nur, ... }: outputs = { nixpkgs, home-manager, nixos-hardware, nur, niri, ... }:
let let
x86 = "x86_64-linux"; x86 = "x86_64-linux";
common = ./modules/system; common = ./modules/system;
@ -37,6 +42,7 @@
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
nixpkgs.overlays = [ nixpkgs.overlays = [
niri.overlay
nur.overlay nur.overlay
]; ];
home-manager = { home-manager = {

5
modules/niri/default.nix Normal file
View file

@ -0,0 +1,5 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
niri
];
}

View file

@ -5,6 +5,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ imports = [
../gnome ../gnome
../niri
../virt ../virt
]; ];